summaryrefslogtreecommitdiffstats
path: root/socket_server.h
diff options
context:
space:
mode:
authorSuper User2008-02-03 13:47:33 +0100
committerSuper User2008-02-03 13:47:33 +0100
commit5ad4c41dc406a15beaa0a7b73d9dada1df74f939 (patch)
tree4c46478eb2ed26258b4d4727ebf47b62318c6794 /socket_server.h
parentwork on asterisk channel driver (diff)
downloadlcr-5ad4c41dc406a15beaa0a7b73d9dada1df74f939.tar.gz
lcr-5ad4c41dc406a15beaa0a7b73d9dada1df74f939.tar.xz
lcr-5ad4c41dc406a15beaa0a7b73d9dada1df74f939.zip
now gives warning if mISDN branch is wrong.
also some work on chan_lcr. modified: Makefile modified: apppbx.cpp modified: bchannel.c modified: chan_lcr.c modified: chan_lcr.h modified: dss1.cpp modified: dss1.h modified: extension.c modified: extension.h modified: genrc.c modified: ie.cpp renamed: admin_client.c -> lcradmin.c renamed: admin.h -> lcrsocket.h modified: mISDN.cpp modified: main.h renamed: admin_server.c -> socket_server.c renamed: admin_server.h -> socket_server.h modified: todo.txt
Diffstat (limited to 'socket_server.h')
-rw-r--r--socket_server.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/socket_server.h b/socket_server.h
new file mode 100644
index 0000000..305deb5
--- /dev/null
+++ b/socket_server.h
@@ -0,0 +1,40 @@
+/*****************************************************************************\
+** **
+** PBX4Linux **
+** **
+**---------------------------------------------------------------------------**
+** Copyright: Andreas Eversberg **
+** **
+** Administration tool header file (server) **
+** **
+\*****************************************************************************/
+
+#include "lcrsocket.h"
+
+struct admin_queue {
+ struct admin_queue *next;
+ ulong offset; /* current offset writing */
+ ulong num; /* number of admin messages */
+ struct admin_message am[0];
+};
+
+struct admin_list {
+ struct admin_list *next;
+ int sock;
+ int sockserial;
+ char remote_name[32]; /* socket is connected remote application */
+ struct admin_trace_req trace; /* stores trace, if detail != 0 */
+ unsigned long epointid;
+ struct admin_queue *response;
+};
+
+extern struct admin_list *admin_first;
+int admin_init(void);
+void admin_cleanup(void);
+int admin_handle(void);
+void admin_call_response(int adminid, int message, char *connected, int cause, int location, int notify);
+int admin_message_to_join(struct admin_message *msg, int remote_id);
+int admin_message_from_join(int remote_id, unsigned long ref, int message_type, union parameter *param);
+
+
+