-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsocket_server.h
40 lines (33 loc) · 1.63 KB
/
socket_server.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*****************************************************************************\
** **
** PBX4Linux **
** **
**---------------------------------------------------------------------------**
** Copyright: Andreas Eversberg **
** **
** Administration tool header file (server) **
** **
\*****************************************************************************/
#include "lcrsocket.h"
struct admin_queue {
struct admin_queue *next;
unsigned int offset; /* current offset writing */
unsigned int num; /* number of admin messages */
struct admin_message am[0];
};
struct admin_list {
struct admin_list *next;
int sock;
struct lcr_fd fd;
int sockserial;
char remote_name[32]; /* socket is connected remote application */
struct admin_trace_req trace; /* stores trace, if detail != 0 */
unsigned int epointid;
struct admin_queue *response;
};
extern struct admin_list *admin_first;
int admin_init(void);
void admin_cleanup(void);
void admin_call_response(int adminid, int message, const char *connected, int cause, int location, int notify);
int admin_message_to_lcr(struct admin_message *msg, int remote_id);
int admin_message_from_lcr(int remote_id, unsigned int ref, int message_type, union parameter *param);