library/src/events/BP-Events.cc
// Display an event processor.  Requires a valid manager to use as a reference
// point when displaying data.
Display an event processor.  Requires a valid manager to use as a reference
point when displaying data.
Display an event processor . Requires a valid manager to use as a reference point when displaying data .
BP_ERROR_T BP_EventMgrDisplayProcessor(P_BP_EVENT_MANAGER mgr, P_BP_EVENT_PROCESSOR processor)
{
	BP_EVENTMGR_VALIDATE_WORKING_ENVIRONMENT(ERR_FAILURE);
	if(!mgr)
		return ERR_FAILURE;
	if(!processor)
		return ERR_FAILURE;
	printf("\n\t [+] Event Processor %p");
	printf("\n\t     lock:                %p", &processor->lock);
	printf("\n\t     uuid:                %s", processor->uuid);
	printf("\n\t     name:                %s", processor->name);
	printf("\n\t     description:         %s", processor->description);
	printf("\n\t     compute_target_type: ");
	switch(processor->compute_target_type)
	{
		case BP_EVENT_PROCESSOR_COMPUTE_TARGET_TYPE_CPU_THREAD:
			printf("BP_EVENT_PROCESSOR_COMPUTE_TARGET_TYPE_CPU_THREAD");
			break;
		case BP_EVENT_PROCESSOR_COMPUTE_TARGET_TYPE_GPU_THREAD:
			printf("BP_EVENT_PROCESSOR_COMPUTE_TARGET_TYPE_GPU_THREAD");
			break;
		default:
			break;
	}
	printf("\n");
	return ERR_SUCCESS;
}
BP_ERROR_T BP_EventMgrDisplayProcessor ( P_BP_EVENT_MANAGER mgr , P_BP_EVENT_PROCESSOR processor ) { BP_EVENTMGR_VALIDATE_WORKING_ENVIRONMENT ( ERR_FAILURE ) ; if ( ! mgr ) return ERR_FAILURE ; if ( ! processor ) return ERR_FAILURE ; printf ( " \n \t " ) ; printf ( " \n \t " , & processor -> lock ) ; printf ( " \n \t " , processor -> uuid ) ; printf ( " \n \t " , processor -> name ) ; printf ( " \n \t " , processor -> description ) ; printf ( " \n \t " ) ; switch ( processor -> compute_target_type ) { case BP_EVENT_PROCESSOR_COMPUTE_TARGET_TYPE_CPU_THREAD : printf ( " " ) ; break ; case BP_EVENT_PROCESSOR_COMPUTE_TARGET_TYPE_GPU_THREAD : printf ( " " ) ; break ; default : break ; } printf ( " \n " ) ; return ERR_SUCCESS ; }
Display an event processor.
Display an event processor .
// ensure we have a correct working environment within the event manager // return indicating success