diff options
Diffstat (limited to 'tbl_qcmd.h')
-rw-r--r-- | tbl_qcmd.h | 35 |
1 files changed, 21 insertions, 14 deletions
@@ -173,19 +173,6 @@ 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 @@ -275,7 +262,27 @@ Output: int tbl_qcmd_del(tbl_qcmd *tbl, int idx); +/* +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); + + + +/* +Return command if there is ont that matching this id +Return + !NULL - pointer to table elemnt NONFREE + NULL - nothing found or error +*/ +tble_qcmd* tbl_qcmd_match_id(tbl_qcmd *tbl, int idx); /* @@ -285,7 +292,7 @@ Input: tbl - array of executed cmds resp - response recieved, match it to table values Output: - >0 - + >0 - command -1 - if there was some kind of mistake */ int tbl_qcmd_resp(tbl_qcmd *tbl, tble_cmd_resp *resp); |