diff options
author | FreeArtMan <dos21h@gmail.com> | 2017-03-18 20:30:06 +0000 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2017-03-18 20:30:06 +0000 |
commit | 0ae9dc3dfe4b1bd24a0d0385480d9ad7d07d0976 (patch) | |
tree | f51cbf81033fd9f87373c27c0c81d6b6c59396e9 /tbl_qcmd.h | |
parent | 39c0045fbb2f511484d5effb69c987906d0b52d8 (diff) | |
download | agni-0ae9dc3dfe4b1bd24a0d0385480d9ad7d07d0976.tar.gz agni-0ae9dc3dfe4b1bd24a0d0385480d9ad7d07d0976.zip |
Basic response from 2 command, works for privatemessages
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); |