aboutsummaryrefslogtreecommitdiffstats
path: root/tbl_qcmd.h
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2017-03-04 18:10:49 +0000
committerFreeArtMan <dos21h@gmail.com>2017-03-04 18:10:49 +0000
commit5453a41e1bf0555ca391ea37faafd64889069789 (patch)
treea3eb91295aef3566e7ad92a6c2a9b596ed585bce /tbl_qcmd.h
parent65e7a20b5d440b0c224a665fccdb5c9d475fa509 (diff)
downloadagni-5453a41e1bf0555ca391ea37faafd64889069789.tar.gz
agni-5453a41e1bf0555ca391ea37faafd64889069789.zip
Fixed cmd/exec table
Diffstat (limited to 'tbl_qcmd.h')
-rw-r--r--tbl_qcmd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tbl_qcmd.h b/tbl_qcmd.h
index b598ebb..a872a72 100644
--- a/tbl_qcmd.h
+++ b/tbl_qcmd.h
@@ -111,6 +111,7 @@ typedef struct tble_cmd_param
char *param;
} tble_cmd_param;
+
/*
Fields:
*/
@@ -123,6 +124,11 @@ typedef struct tble_cmd_resp
char *resp;
} tble_cmd_resp;
+#define TBL_RSP_NONE 0 //default value
+#define TBL_RSP_NORESP 1 //no response
+#define TBL_RSP_ERR 2 //error happened with thread
+#define TBL_RSP_OK 4 //response
+
/*
create exec command, used to add to table
Input:
@@ -180,6 +186,9 @@ tble_exec *tbl_exec_search_cmd(tbl_exec *tbl, tble_qcmd *cmd);
int tbl_exec_print(tble_exec *tble, int flags);
+int tbl_exec_tbl_free(tbl_exec *tbl);
+int tbl_exec_tel_free(tble_exec *tble);
+
/*
print all entries in table
Input: