From 8c97104aa6fac4a7ed54d97bbcb1aed5e2398713 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sat, 30 Sep 2017 11:41:40 +0100 Subject: Added command type detection --- tbl_qcmd.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'tbl_qcmd.c') 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; } } -- cgit v1.2.3