aboutsummaryrefslogtreecommitdiffstats
path: root/tbl_qcmd.h
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2017-09-05 19:56:33 +0100
committerFreeArtMan <dos21h@gmail.com>2017-09-05 19:56:33 +0100
commit7b529a3875d2987b62e5fb5349fdfba36a59a7c3 (patch)
treeef87aae5273d82c8e7922fbb8ec102e90dc66b24 /tbl_qcmd.h
parenta910bc4131984ca5a1e0860dc89073586197a4ba (diff)
downloadagni-7b529a3875d2987b62e5fb5349fdfba36a59a7c3.tar.gz
agni-7b529a3875d2987b62e5fb5349fdfba36a59a7c3.zip
server->event thread messaging, command execution and response.
Diffstat (limited to 'tbl_qcmd.h')
-rw-r--r--tbl_qcmd.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/tbl_qcmd.h b/tbl_qcmd.h
index bef4043..26f805e 100644
--- a/tbl_qcmd.h
+++ b/tbl_qcmd.h
@@ -66,6 +66,7 @@ typedef struct tble_qcmd
int timestamp; //when command started to execute
int state; //command execution state
int timeout; //timeout time for command
+ char *ircident; //username,mask,host fam!~fam@localhost.localdomain
char *cmd; //cmd name ALLOC
char *param; //params ALLOC
mqd_t out_q; //UNUSED
@@ -81,12 +82,13 @@ typedef struct tble_qcmd
#define TBL_PF_QCMD_TIMESTAMP 1<<3
#define TBL_PF_QCMD_STATE 1<<4
#define TBL_PF_QCMD_TIMEOUT 1<<5
-#define TBL_PF_QCMD_CMD 1<<6
-#define TBL_PF_QCMD_PARAM 1<<7
-#define TBL_PF_QCMD_OUT_Q 1<<8
-#define TBL_PF_QCMD_IN_Q 1<<9
-#define TBL_PF_QCMD_TID 1<<10
-#define TBL_PF_QCMD_TIDX 1<<11
+#define TBL_PF_QCMD_IRCIDENT 1<<6
+#define TBL_PF_QCMD_CMD 1<<7
+#define TBL_PF_QCMD_PARAM 1<<8
+#define TBL_PF_QCMD_OUT_Q 1<<9
+#define TBL_PF_QCMD_IN_Q 1<<10
+#define TBL_PF_QCMD_TID 1<<11
+#define TBL_PF_QCMD_TIDX 1<<12
#define TBL_PF_QCMD_ALL 0x0fffffff
@@ -113,6 +115,7 @@ typedef struct tble_cmd_param
int id; //uniq id for cmd_param
int qid; //command id that created this param
mqd_t out_q;
+ char *ircident;
char *cmd;
char *param;
} tble_cmd_param;