aboutsummaryrefslogtreecommitdiffstats
path: root/tbl_qcmd.h
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2017-04-20 16:17:32 +0100
committerFreeArtMan <dos21h@gmail.com>2017-04-20 16:17:32 +0100
commitfc91eba3845a9e9c741da41ba467c042cbb4ca85 (patch)
tree8f2e0fb9ac5aa873e1e53a6dbde7338bc1866be9 /tbl_qcmd.h
parent5007608202739ed1835ffc10a54dba02bc0f361f (diff)
downloadagni-fc91eba3845a9e9c741da41ba467c042cbb4ca85.tar.gz
agni-fc91eba3845a9e9c741da41ba467c042cbb4ca85.zip
callback execution works
Diffstat (limited to 'tbl_qcmd.h')
-rw-r--r--tbl_qcmd.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/tbl_qcmd.h b/tbl_qcmd.h
index 5f66386..43357e5 100644
--- a/tbl_qcmd.h
+++ b/tbl_qcmd.h
@@ -173,6 +173,17 @@ Output:
*/
int tbl_exec_in_s(tbl_exec *tbl, char *cmd);
+/*
+Input:
+ tbl - table of executed commands
+ cmd - command to execute
+ resp - response from command, just string
+Output:
+ >=0 - index in list of commands
+ -1 - somethign whent wrong
+*/
+int tbl_exec_run(tbl_exec *tbl, char *cmd, void **resp);
+
/*
if command is found then return pointer to it