diff options
Diffstat (limited to 'tbl_qcmd.h')
-rw-r--r-- | tbl_qcmd.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -9,6 +9,8 @@ #include "debug.h" #include "util.h" +#include "irc_parse.h" + #define EXEC_CURRENT 0 //executes in current thread #define EXEC_SEPERATE 1 //executes in seperate thread @@ -67,6 +69,7 @@ typedef struct tble_qcmd mqd_t in_q; //UNUSED int tid; //table id int tidx; //table unique id of executor, check if still there ;] + irc_token *tok; //parsed irc command, needed only by irc consumer thread } tble_qcmd; //list of print fields @@ -171,6 +174,20 @@ Output: int tbl_exec_in_s(tbl_exec *tbl, char *cmd); /* +add parsed token to command list +Input: + tbl - executed command + tk - token, its going to be copies, so fill free to FREE +Output: + 0 - if everything whent ok + -1 - if there was some kind of mistake +*/ +int tbl_qcmd_add_tok(tble_qcmd *tbl, irc_token *tk); + + + + +/* if command is found then return pointer to it if you passs pointer further then if its will be freed or deleted from the list your programm will segfault @@ -258,6 +275,9 @@ Output: int tbl_qcmd_del(tbl_qcmd *tbl, int idx); + + + /* if there is response then try to match response and return code to executed command requester |