puts("set_monitor..."); lrm_mon_t* mon = g_new(lrm_mon_t, 1); mon->op_type = "status"; mon->params = NULL; mon->timeout = 0; mon->user_data = NULL; mon->mode = LRM_MONITOR_SET; mon->interval = 2; mon->target = 1; rsc->ops->set_monitor(rsc,mon); printf_mon(mon); mon = g_new(lrm_mon_t, 1);
do_lrm_invoke(long long action,	     enum crmd_fsa_cause cause,	     enum crmd_fsa_state cur_state,	     enum crmd_fsa_input current_input,	     void *data){	FNIN();	cl_log(LOG_ERR, "Action %s (%.16llx) not supported\n",	       fsa_action2string(action), action);#if 0	rsc_id_t rid;	puts("add_rsc...");	uuid_generate(rid);	lrm->lrm_ops->add_rsc(lrm, rid, "lsb", "lsb_initscript_sim.sh", NULL);	puts("get_rsc...");	lrm_rsc_t*	rsc = lrm->lrm_ops->get_rsc(lrm, rid);	printf_rsc(rsc);		puts("set_monitor...");	lrm_mon_t* mon = g_new(lrm_mon_t, 1);	mon->op_type = "status";	mon->params = NULL;	mon->timeout = 0;	mon->user_data = NULL;	mon->mode = LRM_MONITOR_SET;	mon->interval = 2;	mon->target = 1;	rsc->ops->set_monitor(rsc,mon);	printf_mon(mon);	mon = g_new(lrm_mon_t, 1);	mon->op_type = "status";	mon->params = NULL;	mon->timeout = 0;	mon->user_data = NULL;	mon->mode = LRM_MONITOR_CHANGE;	mon->interval = 2;	mon->target = 1;	rsc->ops->set_monitor(rsc,mon);	printf_mon(mon);	puts("perform_op...");	lrm_op_t* op = g_new(lrm_op_t, 1);	op->op_type = "start";	op->params = NULL;	op->timeout = 0;	op->user_data = strdup("It is a start op!");	rsc->ops->perform_op(rsc,op);	printf_op(op);	sleep(10);		op = g_new(lrm_op_t, 1);	op->op_type = "stop";	op->params = NULL;	op->timeout = 0;	op->user_data = strdup("It is a stop op!");	rsc->ops->perform_op(rsc,op);	printf_op(op);	sleep(10);	puts("rcvmsg...");	while (TRUE) {		lrm->lrm_ops->rcvmsg(lrm,TRUE);	}#endif		FNRET(I_NULL);}