xrdp/sesman/xwait.h
matt335672 34ad55faa6 xwait changes (breaks compile)
The wait_for_xserver() call is refactored so that it can
be called from root context to wait for an X server run by
a specific user.
2023-03-24 10:54:04 +00:00

30 lines
593 B
C

#ifndef XWAIT_H
#define XWAIT_H
#include <sys/types.h>
enum xwait_status
{
XW_STATUS_OK = 0,
XW_STATUS_MISC_ERROR,
XW_STATUS_TIMED_OUT,
XW_STATUS_FAILED_TO_START
};
/**
*
* @brief waits for X to start
* @param uid User to run program under
* @param env_names Environment to set for user (names)
* @param env_values Environment to set for user (values)
* @param display number
* @return status
*
*/
enum xwait_status
wait_for_xserver(uid_t uid,
struct list *env_names,
struct list *env_values,
int display);
#endif