crm_data_t *target = NULL;
notify_entry_t *entry = NULL; native_variant_data_t *native_data = NULL; get_native_variant_data(native_data, rsc);  if(safe_str_eq(op->task, CRMD_ACTION_START)) { crm_malloc0(entry, sizeof(notify_entry_t)); entry->rsc = rsc; if(native_data->color != NULL) { entry->node = native_data->color->details->chosen_node; } n_data->start = g_list_append(n_data->start, entry);  } else { slist_iter( node, node_t, native_data->running_on, lpc,
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);}