static void mgt_cli_init_cls(void) { cls = VCLS_New(mgt_cli_cb_before, mgt_cli_cb_after, params->cli_buffer); AN(cls); AZ(VCLS_AddFunc(cls, MCF_NOAUTH, cli_auth)); AZ(VCLS_AddFunc(cls, MCF_AUTH, cli_proto)); AZ(VCLS_AddFunc(cls, MCF_AUTH, cli_debug)); AZ(VCLS_AddFunc(cls, MCF_AUTH, cli_stv)); AZ(VCLS_AddFunc(cls, MCF_AUTH, cli_askchild)); }
void mgt_cli_init_cls(void) { mgt_cls = VCLS_New(mgt_cli_cb_before, mgt_cli_cb_after, &mgt_param.cli_buffer, &mgt_param.cli_limit); AN(mgt_cls); VCLS_AddFunc(mgt_cls, MCF_NOAUTH, cli_auth); VCLS_AddFunc(mgt_cls, MCF_AUTH, cli_proto); VCLS_AddFunc(mgt_cls, MCF_AUTH, cli_debug); VCLS_AddFunc(mgt_cls, MCF_AUTH, cli_askchild); }
void CLI_Init(void) { Lck_New(&cli_mtx, lck_cli); cli_thread = pthread_self(); cls = VCLS_New(cli_cb_before, cli_cb_after, params->cli_buffer); AN(cls); CLI_AddFuncs(master_cmds); }
void CLI_Init(void) { Lck_New(&cli_mtx, lck_cli); cli_thread = pthread_self(); cls = VCLS_New(cli_cb_before, cli_cb_after, &cache_param->cli_buffer, &cache_param->cli_limit); AN(cls); CLI_AddFuncs(cli_cmds); }
void mgt_cli_init_cls(void) { mgt_cls = VCLS_New(NULL); AN(mgt_cls); VCLS_SetLimit(mgt_cls, &mgt_param.cli_limit); VCLS_SetHooks(mgt_cls, mgt_cli_cb_before, mgt_cli_cb_after); VCLS_AddFunc(mgt_cls, MCF_NOAUTH, cli_auth); VCLS_AddFunc(mgt_cls, MCF_AUTH, cli_proto); VCLS_AddFunc(mgt_cls, MCF_AUTH, cli_debug); VCLS_AddFunc(mgt_cls, MCF_AUTH, cli_askchild); }