Skip to content
Snippets Groups Projects
Commit 45df1a8b authored by dmitriy.gerasimov's avatar dmitriy.gerasimov
Browse files

Merge branch 'feature-3516' into 'master'

added context parameter to the console command

See merge request !24
parents afe7ab84 97457ef3
No related branches found
No related tags found
1 merge request!24added context parameter to the console command
......@@ -77,7 +77,7 @@ typedef struct tx_cond_template{
static tx_cond_template_t *s_tx_cond_templates = NULL;
const char *c_wallets_path = NULL;
static int s_cli_vpn_cdb(int a_argc, char ** a_argv, char **a_str_reply);
static int s_cli_vpn_cdb(int a_argc, char ** a_argv, void *arg_func, char **a_str_reply);
/**
* @brief dap_chain_net_srv_vpn_cdb_init
......@@ -98,7 +98,7 @@ int dap_chain_net_srv_vpn_cdb_init(dap_http_t * a_http)
}
}
dap_chain_node_cli_cmd_item_create ("vpn_cdb", s_cli_vpn_cdb , "VPN Central DataBase (CDB) commands",
dap_chain_node_cli_cmd_item_create ("vpn_cdb", s_cli_vpn_cdb, NULL, "VPN Central DataBase (CDB) commands",
"vpn_cdb user create --login <Login> --password <Password> [--first_name <First Name] [--last_name <Last Name>] [--email <Email>]"
"[--acive_days <Setup active day thats left for user >]\n"
"\tCreate user with login, password and some more optional fields\n\n"
......@@ -217,7 +217,7 @@ int dap_chain_net_srv_vpn_cdb_init(dap_http_t * a_http)
}
static int s_cli_vpn_cdb(int a_argc, char ** a_argv, char **a_str_reply)
static int s_cli_vpn_cdb(int a_argc, char ** a_argv, void *arg_func, char **a_str_reply)
{
const char *l_user_str = NULL;
int l_arg_index = 1;
......
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