Пример #1
0
void set_deinit(void)
{
	service_unbind_command(groupsvs, &gs_set);

	command_delete(&gs_set_email, gs_set_cmdtree);
	command_delete(&gs_set_url, gs_set_cmdtree);
	command_delete(&gs_set_description, gs_set_cmdtree);
	command_delete(&gs_set_channel, gs_set_cmdtree);
	command_delete(&gs_set_open, gs_set_cmdtree);
	command_delete(&gs_set_public, gs_set_cmdtree);

	mowgli_patricia_destroy(gs_set_cmdtree, NULL, NULL);
}
Пример #2
0
static int on_RPL_NAMREPLY(int parc, const char *parv[], void *priv)
{
	struct a_route_ctx *ctx = priv;
	struct a_net_chan *nc;

	if (parc < 2)
		return 0;
	if (!(nc = netdata_chan(ctx->net, parv[0])))
		return 0;

	if (!(nc->flags & NET_CHAN_COLLECTING_NAMES)) {
		nc->flags |= NET_CHAN_COLLECTING_NAMES;
		mowgli_patricia_destroy(nc->users, on_RPL_NAMREPLY_cb, NULL);
		nc->users = create_users_patricia(ctx->net);
	}
}
Пример #3
0
void _moddeinit(module_unload_intent_t intent)
{
	service_named_unbind_command("operserv", &os_set);
	command_delete(&os_set_recontime, os_set_cmdtree);
	command_delete(&os_set_maxlogins, os_set_cmdtree);
	command_delete(&os_set_maxnicks, os_set_cmdtree);
	command_delete(&os_set_maxusers, os_set_cmdtree);
	command_delete(&os_set_maxchans, os_set_cmdtree);
	command_delete(&os_set_mdlimit, os_set_cmdtree);
	command_delete(&os_set_klinetime, os_set_cmdtree);
	command_delete(&os_set_commitinterval, os_set_cmdtree);
	command_delete(&os_set_chanexpire, os_set_cmdtree);
	command_delete(&os_set_maxchanacs, os_set_cmdtree);
	command_delete(&os_set_maxfounders, os_set_cmdtree);
	command_delete(&os_set_akicktime, os_set_cmdtree);
	command_delete(&os_set_spam, os_set_cmdtree);
	command_delete(&os_set_nickexpire, os_set_cmdtree);
	command_delete(&os_set_enforceprefix, os_set_cmdtree);
	mowgli_patricia_destroy(os_set_cmdtree, NULL, NULL);
}
Пример #4
0
void _moddeinit(module_unload_intent_t intent)
{
	service_named_unbind_command("groupserv", &gs_set);

	mowgli_patricia_destroy(gs_set_cmdtree, NULL, NULL);
}
Пример #5
0
void _moddeinit(module_unload_intent_t intent)
{
	mowgli_heap_destroy(chanacs_ext_heap);
	mowgli_patricia_delete(*exttarget_tree, "chanacs");
	mowgli_patricia_destroy(chanacs_exttarget_tree, NULL, NULL);
}
Пример #6
0
void _moddeinit(module_unload_intent_t intent)
{
	service_named_unbind_command("chanserv", &cs_clear);

	mowgli_patricia_destroy(cs_clear_cmds, NULL, NULL);
}