summaryrefslogtreecommitdiffstats
path: root/admin.h
diff options
context:
space:
mode:
authorSuper User2007-07-07 17:13:20 +0200
committerSuper User2007-07-07 17:13:20 +0200
commit3754d8f73ff7cb55e204f7ede6569028407a00e5 (patch)
treead989d2f0beba3a985ac4f53c973afa630c56de1 /admin.h
parentbackup (diff)
downloadlcr-3754d8f73ff7cb55e204f7ede6569028407a00e5.tar.gz
lcr-3754d8f73ff7cb55e204f7ede6569028407a00e5.tar.xz
lcr-3754d8f73ff7cb55e204f7ede6569028407a00e5.zip
backup
compiles, runs, but not enough debugged
Diffstat (limited to 'admin.h')
-rw-r--r--admin.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/admin.h b/admin.h
index f86036f..40a0cb8 100644
--- a/admin.h
+++ b/admin.h
@@ -9,7 +9,7 @@
** **
\*****************************************************************************/
-#define SOCKET_NAME "/var/run/PBX4Linux.socket"
+#define SOCKET_NAME "/var/run/LCR.socket"
/* structures that define message between admin-tool and pbx */
@@ -22,6 +22,8 @@ enum { /* messages */
ADMIN_RESPONSE_CMD_DIAL,
ADMIN_REQUEST_CMD_RELEASE,
ADMIN_RESPONSE_CMD_RELEASE,
+ ADMIN_REQUEST_CMD_BLOCK,
+ ADMIN_RESPONSE_CMD_BLOCK,
ADMIN_REQUEST_STATE,
ADMIN_RESPONSE_STATE,
ADMIN_RESPONSE_S_INTERFACE,
@@ -44,6 +46,8 @@ enum { /* messages */
struct admin_response_cmd {
int error; /* error code 0 = ok*/
char message[256]; /* info / response text */
+ int block;
+ int portnum;
};
struct admin_response_state {
@@ -57,12 +61,13 @@ struct admin_response_state {
};
struct admin_response_interface {
- int portnum;
char interface_name[32];
+ int portnum;
+ int block;
int ntmode;
int ptp;
int pri;
- int iftype;
+ int extension;
int use; /* number of ports that use this interface */
int l1link; /* down(0) or up(1) */
int l2link; /* down(0) or up(1) */