crm_err("Signon to CIB failed: %s", cib_error2string(rc)); return FALSE; } rc = the_cib->cmds->set_op_callback(the_cib, cibadmin_op_callback); if(rc != cib_ok) { crm_err("Failed to set callback: %s", cib_error2string(rc)); return FALSE;
crm_err("Signon to CIB failed: %s", cib_error2string(rc)); fprintf(stderr, "Signon to CIB failed: %s\n", cib_error2string(rc)); } else { rc = the_cib->cmds->set_op_callback( the_cib, cibadmin_op_callback); if(rc != cib_ok) { crm_err("Failed to set callback: %s", cib_error2string(rc)); fprintf(stderr,"Failed to set callback: %s\n", cib_error2string(rc)); }
do_init(void){	enum cib_errors rc = cib_ok;		/* docs say only do this once, but in their code they do it every time! */	xmlInitParser(); 	the_cib = cib_new();	rc = the_cib->cmds->signon(the_cib, cib_command);	if(rc != cib_ok) {		crm_err("Signon to CIB failed: %s", cib_error2string(rc));		return FALSE;	}	rc = the_cib->cmds->set_op_callback(the_cib, cibadmin_op_callback);	if(rc != cib_ok) {		crm_err("Failed to set callback: %s", cib_error2string(rc));		return FALSE;	}		return TRUE;}