cl_log(LOG_INFO, "Signing in with Heartbeat"); if (hb_cluster->llc_ops->signon(hb_cluster, crm_system_name)!= HA_OK) {
cl_log(LOG_INFO, "Signing in with Heartbeat"); if (hb_cluster->llc_ops->signon(hb_cluster, client_name)!= HA_OK) {
register_with_ha(ll_cluster_t *hb_cluster, const char *crm_system_name,				 gboolean (*dispatch_method)(int fd, gpointer user_data),				 void (*message_callback)(const struct ha_msg* msg, void* private_data),				 GDestroyNotify cleanup_method){    cl_log(LOG_DEBUG, "Register with HA");    //	(void)_heartbeat_h_Id;    (void)_ha_msg_h_Id;        cl_log(LOG_INFO, "Signing in with Heartbeat");    if (hb_cluster->llc_ops->signon(hb_cluster, crm_system_name)!= HA_OK) {		cl_log(LOG_ERR, "Cannot sign on with heartbeat");		cl_log(LOG_ERR, "REASON: %s", hb_cluster->llc_ops->errmsg(hb_cluster));		return FALSE;    }      const char* ournode = NULL;    cl_log(LOG_INFO, "Finding our node name");    if ((ournode = hb_cluster->llc_ops->get_mynodeid(hb_cluster)) == NULL) {		cl_log(LOG_ERR, "get_mynodeid() failed");		return FALSE;    }    cl_log(LOG_INFO, "Hostname: %s", ournode);	/*     cl_log(LOG_INFO, "Be informed of link status changes"); *//*     if (hb_cluster->llc_ops->set_ifstatus_callback(hb_cluster, LinkStatus, NULL) *//* 	!=HA_OK){ *//* 	cl_log(LOG_ERR, "Cannot set if status callback"); *//* 	cl_log(LOG_ERR, "REASON: %s", hb_cluster->llc_ops->errmsg(hb_cluster)); *//* 	return FALSE; *//*     } */    cl_log(LOG_INFO, "Be informed of CRM messages");    if (hb_cluster->llc_ops->set_msg_callback(hb_cluster, "CRM", message_callback, hb_cluster)		!=HA_OK){		cl_log(LOG_ERR, "Cannot set CRM message callback");		cl_log(LOG_ERR, "REASON: %s", hb_cluster->llc_ops->errmsg(hb_cluster));		return FALSE;    }    G_main_add_fd(G_PRIORITY_HIGH, 				  hb_cluster->llc_ops->inputfd(hb_cluster),				  FALSE, 				  dispatch_method, 				  hb_cluster,  // usrdata 				  cleanup_method);    /* it seems we need to poke the message receiving stuff in order for it to     *    start seeing messages.  Its like it gets blocked or something.     */    dispatch_method(0, hb_cluster);    return TRUE;    }