CRM_DEV_ASSERT(node != NULL);  if(find_entity(parent, op->task, rsc->id) != NULL) {  return;
crm_malloc0(entry, sizeof(notify_entry_t)); entry->rsc = rsc; entry->node = node; n_data->stop=g_list_append(n_data->stop, entry); );
register_activity(	resource_t *rsc, action_t *op, node_t *node, crm_data_t *parent){	crm_data_t *target = NULL;/* 	const char *value = NULL; *//* 	value = g_hash_table_lookup(op->extra, "notify_type"); *//* 	if(safe_str_neq(value, "pre")) { *//* 		/\* only add once *\/ *//* 		return; *//* 	} */	CRM_DEV_ASSERT(node != NULL);	if(find_entity(parent, op->task, rsc->id) != NULL) {		/* only add once */		return;	}		crm_debug_3("Creating entry for %s: %s (%s)",op->uuid,rsc->id,op->task);		target = create_xml_node(parent, op->task); 	crm_xml_add(target, XML_ATTR_ID, rsc->id);	crm_xml_add(target, XML_LRM_ATTR_TARGET, node->details->uname);	crm_xml_add(target, XML_LRM_ATTR_TARGET_UUID, node->details->id);}