send_hello_message(crmd_channel, adminuid, daemon_name, "0", "1");
send_hello_message(crmd_channel, adminuid, crm_system_name, "0", "1");
do_init(void){/*     cl_log_set_logfile(DAEMON_LOG); *//* //    if (crm_debug()) { *//*     cl_log_set_debugfile(DAEMON_DEBUG); *///    }    xmlInitParser();  // docs say only do this once, but in their code they do it every time!    (void)_ha_msg_h_Id;        /* change the logging facility to the one used by heartbeat daemon */    ll_cluster_t*	hb_cluster = ll_cluster_new("heartbeat");        int facility;    cl_log(LOG_INFO, "Switching to Heartbeat logger");    if ((facility = hb_cluster->llc_ops->get_logfacility(hb_cluster))>0) {	cl_log_set_facility(facility);    }    adminuid = ha_malloc(sizeof(char)*11);    snprintf(adminuid, 10, "%d", getpid());    adminuid[10] = '\0';    crmd_channel = init_client_ipc_comms(CRM_SYSTEM_CRMD, admin_msg_callback);    send_hello_message(crmd_channel, adminuid, daemon_name, "0", "1");    return hb_cluster;}