summaryrefslogtreecommitdiff
path: root/tbl_qcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tbl_qcmd.c')
-rw-r--r--tbl_qcmd.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/tbl_qcmd.c b/tbl_qcmd.c
index d3e0d7f..adc3503 100644
--- a/tbl_qcmd.c
+++ b/tbl_qcmd.c
@@ -135,12 +135,21 @@ int tbl_exec_run(tbl_exec *tbl, char *cmd, void **resp)
//PRINT("CALLBACK PARAMS %s\n", clbk_data);
- ret_resp = el->callback(clbk_data); //no params for now
-
+ if (el->type == TBL_T_SIMPLE)
+ {
+ ret_resp = el->callback(clbk_data); //no params for now
+ } else if (el->type == TBL_T_RPC)
+ {
+ ERROR("Not implemented\n");
+ } else if (el->type == TBL_T_LUA)
+ {
+ ERROR("Not implemented\n");
+ }
//return
if (ret_resp != NULL)
{
*resp = ret_resp;
+ //return executed command id
ret = i;
}
}