2022-11-20 05:43:00 +03:00
|
|
|
#ifndef XWAIT_H
|
|
|
|
#define XWAIT_H
|
2023-03-09 13:36:43 +03:00
|
|
|
|
2023-03-10 19:52:12 +03:00
|
|
|
#include <sys/types.h>
|
|
|
|
|
2023-03-09 13:36:43 +03:00
|
|
|
enum xwait_status
|
|
|
|
{
|
|
|
|
XW_STATUS_OK = 0,
|
|
|
|
XW_STATUS_MISC_ERROR,
|
|
|
|
XW_STATUS_TIMED_OUT,
|
|
|
|
XW_STATUS_FAILED_TO_START
|
|
|
|
};
|
|
|
|
|
2022-11-20 05:43:00 +03:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @brief waits for X to start
|
2023-03-10 19:52:12 +03:00
|
|
|
* @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)
|
2022-11-20 05:43:00 +03:00
|
|
|
* @param display number
|
2023-03-09 13:36:43 +03:00
|
|
|
* @return status
|
2022-11-20 05:43:00 +03:00
|
|
|
*
|
|
|
|
*/
|
2023-03-09 13:36:43 +03:00
|
|
|
enum xwait_status
|
2023-03-10 19:52:12 +03:00
|
|
|
wait_for_xserver(uid_t uid,
|
|
|
|
struct list *env_names,
|
|
|
|
struct list *env_values,
|
|
|
|
int display);
|
2022-11-20 05:43:00 +03:00
|
|
|
#endif
|