library/src/events/BP-Events.cc
// will search the event manager to determine if an event manager exists with the given name.  This
// routine returns a hash table keyed entry.
will search the event manager to determine if an event manager exists with the given name.  This
routine returns a hash table keyed entry.
will search the event manager to determine if an event manager exists with the given name . This routine returns a hash table keyed entry .
P_BP_HASH_TABLE_KEYED_ENTRY BP_EventMgrLookupManagerKeyedEntryByNameInGHT(char *mgr_name)
{
	if(!mgr_name)
		return NULL;
	if(BP_StringIsReasonablePrintableString(mgr_name, bpstrlen(mgr_name), BP_FALSE, BP_FALSE) != ERR_SUCCESS)
		return NULL;
	char * table_path_actual[10] = {0};
	BP_HASH_TABLE_TRAVERSAL_PATH table_path = (char **) &table_path_actual;
	table_path[0] = "system";
	table_path[1] = "event_managment";
	table_path[2] = mgr_name;
	table_path[3] = NULL;
	P_BP_HASH_TABLE_KEYED_ENTRY tmp_lookup = BP_HashRegLookupTableByPath(NULL, table_path);
	if(tmp_lookup)
		return tmp_lookup;
	return NULL;
}
P_BP_HASH_TABLE_KEYED_ENTRY BP_EventMgrLookupManagerKeyedEntryByNameInGHT ( char * mgr_name ) { if ( ! mgr_name ) return NULL ; if ( BP_StringIsReasonablePrintableString ( mgr_name , bpstrlen ( mgr_name ) , BP_FALSE , BP_FALSE ) != ERR_SUCCESS ) return NULL ; char * table_path_actual [ 10 ] = { 0 } ; BP_HASH_TABLE_TRAVERSAL_PATH table_path = ( char * * ) & table_path_actual ; table_path [ 0 ] = " " ; table_path [ 1 ] = " " ; table_path [ 2 ] = mgr_name ; table_path [ 3 ] = NULL ; P_BP_HASH_TABLE_KEYED_ENTRY tmp_lookup = BP_HashRegLookupTableByPath ( NULL , table_path ) ; if ( tmp_lookup ) return tmp_lookup ; return NULL ; }
will search the event manager to determine if an event manager exists with the given name.
will search the event manager to determine if an event manager exists with the given name .
// ensure we have a manager name // exit immediately if the name isn't reasonable // create a table path on the stack for ease of use // reference to the local stack // set path to /system/event_managment // attempt lookup for /system/event_managment/mgr_name // ensure we have a correct lookup // return NULL on failure