Adding upstream version 0.4.1.
[debian/lxdm.git] / src / lxcom.h
1 #ifndef _LXCOM_H_
2 #define LXCOM_H_
3
4 void lxcom_init(const char *sock);
5 void lxcom_raise_signal(int sig);
6 gboolean lxcom_send(const char *sock,const char *buf,char **res);
7 int lxcom_add_child_watch(int pid,void (*func)(void*,int,int),void *data);
8 int lxcom_del_child_watch(int pid);
9 int lxcom_set_signal_handler(int sig,void (*func)(void *,int),void *data);
10 int lxcom_add_cmd_handler(int user,GString * (*func)(void *,int,int,char **),void *data);
11 int lxcom_del_cmd_handler(int user);
12
13 extern volatile sig_atomic_t lxcom_last_sig;
14
15 #endif/*_LXCOM_H_*/
16