Skip to content
Snippets Groups Projects
Commit f790f531 authored by Roman Khlopkov's avatar Roman Khlopkov 🔜
Browse files

[*] Linux build restored

parent 0aac23e3
No related branches found
No related tags found
1 merge request!52hotfix-4271
......@@ -99,8 +99,7 @@ void element_py_func_del_all(){
}
}
static int wrapping_cmdfunc(int argc, char **argv, void * arg_func, char **str_reply){
UNUSED(arg_func);
static int wrapping_cmdfunc(int argc, char **argv, char **str_reply){
size_t id_str_replay = elements_str_reply_add(str_reply);
PyObject *obj_argv = stringToPyList(argc, argv);
PyObject *obj_id_str_replay = PyLong_FromSize_t(id_str_replay);
......@@ -137,7 +136,7 @@ PyObject *dap_chain_node_cli_cmd_item_create_py(PyObject *a_self, PyObject *a_ar
}
}
element_py_func_add(name, obj_cmdfunc);
dap_chain_node_cli_cmd_item_create(name, wrapping_cmdfunc, NULL, doc, doc_ex);
dap_chain_node_cli_cmd_item_create(name, wrapping_cmdfunc, doc, doc_ex);
return PyLong_FromLong(0);
}
......
......@@ -30,7 +30,7 @@ extern "C" {
#endif
void dap_chain_plugins_command_create(void);
int dap_chain_plugins_command_handler(int a_argc, char **a_argv, void *a_arg_func, char **a_str_reply);
int dap_chain_plugins_command_handler(int a_argc, char **a_argv, char **a_str_reply);
#ifdef __cplusplus
}
......
......@@ -12,7 +12,7 @@ static bool s_l_restart_plugins = false;
void dap_chain_plugins_command_create(void){
if (!s_l_restart_plugins){
dap_chain_node_cli_cmd_item_create("plugins", dap_chain_plugins_command_handler, NULL,
dap_chain_node_cli_cmd_item_create("plugins", dap_chain_plugins_command_handler,
"Commands for working with plugins.",
"plugins list \t- show list plugins \n"
"plugins show --name <name_plugin> \t-show information for plugin \n"
......@@ -21,8 +21,7 @@ void dap_chain_plugins_command_create(void){
s_l_restart_plugins = true;
}
}
int dap_chain_plugins_command_handler(int a_argc, char **a_argv, void *a_arg_func, char **a_str_reply){
(void)a_arg_func;
int dap_chain_plugins_command_handler(int a_argc, char **a_argv, char **a_str_reply){
enum {
CMD_NONE, CMD_LIST, CMD_SHOW_NAME, CMD_RESTART, CMD_RELOAD_NAME
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment