backup
[lcr.git] / admin_server.h
1 /*****************************************************************************\
2 **                                                                           **
3 ** PBX4Linux                                                                 **
4 **                                                                           **
5 **---------------------------------------------------------------------------**
6 ** Copyright: Andreas Eversberg                                              **
7 **                                                                           **
8 ** Administration tool header file (server)                                  **
9 **                                                                           **
10 \*****************************************************************************/
11
12 #include "admin.h"
13
14 struct admin_queue {
15         struct admin_queue      *next;
16         ulong                   offset; /* current offset writing */
17         ulong                   num; /* number of admin messages */
18         struct admin_message    am[0];
19 };
20
21 struct admin_list {
22         struct admin_list *next;
23         int sock;
24         int sockserial;
25         unsigned long epointid;
26         struct admin_queue *response;
27 };
28
29 int admin_init(void);
30 void admin_cleanup(void);
31 int admin_handle(void);
32 void admin_call_response(int adminid, int message, char *connected, int cause, int location, int notify);
33
34
35