crm_debug("Client %s registered with apphb", app_instance);
crm_devel("Client %s registered with apphb", app_instance);
register_with_apphb(const char *client_name,		    gboolean(*tickle_fn)(gpointer data)){	char	app_instance[APPNAME_LEN];	int     hb_intvl_ms = wdt_interval_ms * 2;	int     rc = 0;	/* Register with apphb */	crm_info("Signing in with AppHb");	sprintf(app_instance, "%s_%ld", client_name, (long)getpid());  	crm_info("Client %s registering with apphb", app_instance);	rc = apphb_register(client_name, app_instance);    	if (rc < 0) {		cl_perror("%s registration failure", app_instance);		exit(1);	}  	crm_debug("Client %s registered with apphb", app_instance);  	crm_info("Client %s setting %d ms apphb heartbeat interval",		 app_instance, hb_intvl_ms);	rc = apphb_setinterval(hb_intvl_ms);	if (rc < 0) {		cl_perror("%s setinterval failure", app_instance);		exit(2);	}  	/* regularly tell apphb that we are alive */	crm_info("Setting up AppHb Heartbeat");	Gmain_timeout_add(wdt_interval_ms, tickle_fn, NULL);}