#ifndef __MDM_H__ #define __MDM_H__ #include "config.h" /* Milsko */ #include #include /* External */ #include /* Standard */ #include #include #include #include #include #include #include #include #include #include /* login.c */ extern MwWidget root; typedef enum session_type { MDM_SESSION_TYPE_X, MDM_SESSION_TYPE_WAYLAND, } session_type_t; typedef struct session_environment { char* run; char* try_run; session_type_t session_type; char* desktop_names; } session_environment_t; void login_window(void); /* main.c */ extern gid_t gid; extern uid_t uid; extern session_environment_t* env; /* xserver.c */ extern pthread_t xthread; extern pthread_mutex_t xmutex; extern Display* xdisplay; int launch_x(void); int x_width(void); int x_height(void); int init_x(void); void loop_x(void); void kill_x(void); /* config.c */ extern char* config_picture; void parse_config(void); #endif