memset(new_cib->cmds, 0, sizeof(cib_api_operations_t));
cib_new(void){	cib_t* new_cib = NULL;	if(configured_variant != cib_native) {		crm_err("Only the native CIB type is currently implemented");		return NULL;	}	if(cib_op_callback_table != NULL) {		g_hash_table_destroy(cib_op_callback_table);		cib_op_callback_table = NULL;	}	if(cib_op_callback_table == NULL) {		cib_op_callback_table = g_hash_table_new_full(			g_direct_hash, g_direct_equal,			NULL, g_hash_destroy_str);	}	crm_malloc0(new_cib, sizeof(cib_t));	new_cib->call_id = 1;	new_cib->type  = cib_none;	new_cib->state = cib_disconnected;	new_cib->op_callback	= NULL;	new_cib->variant_opaque = NULL;	new_cib->notify_list    = NULL;	/* the rest will get filled in by the variant constructor */	crm_malloc0(new_cib->cmds, sizeof(cib_api_operations_t));	memset(new_cib->cmds, 0, sizeof(cib_api_operations_t));	new_cib->cmds->set_op_callback     = cib_client_set_op_callback;	new_cib->cmds->add_notify_callback = cib_client_add_notify_callback;	new_cib->cmds->del_notify_callback = cib_client_del_notify_callback;		new_cib->cmds->noop    = cib_client_noop;	new_cib->cmds->ping    = cib_client_ping;	new_cib->cmds->query   = cib_client_query;	new_cib->cmds->sync    = cib_client_sync;	new_cib->cmds->query_from = cib_client_query_from;	new_cib->cmds->sync_from  = cib_client_sync_from;		new_cib->cmds->is_master  = cib_client_is_master;	new_cib->cmds->set_master = cib_client_set_master;	new_cib->cmds->set_slave  = cib_client_set_slave;	new_cib->cmds->set_slave_all = cib_client_set_slave_all;	new_cib->cmds->bump_epoch = cib_client_bump_epoch;	new_cib->cmds->create  = cib_client_create;	new_cib->cmds->modify  = cib_client_modify;	new_cib->cmds->update  = cib_client_update;	new_cib->cmds->replace = cib_client_replace;	new_cib->cmds->delete  = cib_client_delete;	new_cib->cmds->erase   = cib_client_erase;	new_cib->cmds->quit    = cib_client_quit;	new_cib->cmds->delete_absolute  = cib_client_delete_absolute;		cib_native_new(new_cib);	if(verify_cib_cmds(new_cib) == FALSE) {		return NULL;	}		return new_cib;}