library/src/webchat/BP-WebChat.cc
// thread entry point for our application handler.  This must be
// added to whichever event handler you want to hook it into at runtime
// in order for it to work. (BP_EventMgrAddProcessor)
thread entry point for our application handler.  This must be
added to whichever event handler you want to hook it into at runtime
in order for it to work.
thread entry point for our application handler . This must be added to whichever event handler you want to hook it into at runtime in order for it to work .
BP_EVENT_PROCESSOR_FUNC( BP_WebChatThreadCallbackEntryPoint )
{
	BP_EVENT_PROCESSOR_ENTRY;
	P_BP_WEBCHAT_EVENT_DATA webchat_event_data = (P_BP_WEBCHAT_EVENT_DATA) event->event_data;
	if(!webchat_event_data)
	{
		BP_EVENT_PROCESSOR_EXIT;
	}
	printf("\n HERE HERE THIS IS THE EVENT DATA POINTER: %p (event) - %p (webchat event)", event, webchat_event_data);
	P_BP_WEBCHAT webchat = webchat_event_data->webchat;
	if(!webchat)
	{
		printf("\n [!!] Critical: webchat session has not been passed in.");
		BP_EVENT_PROCESSOR_EXIT;
	}
	if(webchat_event_data->event_type == BP_WEBCHAT_EVENT_USER_GET_METADATA)
	{
		printf("\n Metadata processor event has been picked up ok.");
	}
	BP_EVENT_PROCESSOR_EXIT;
}
BP_EVENT_PROCESSOR_FUNC ( BP_WebChatThreadCallbackEntryPoint ) { BP_EVENT_PROCESSOR_ENTRY ; P_BP_WEBCHAT_EVENT_DATA webchat_event_data = ( P_BP_WEBCHAT_EVENT_DATA ) event -> event_data ; if ( ! webchat_event_data ) { BP_EVENT_PROCESSOR_EXIT ; } printf ( " \n " , event , webchat_event_data ) ; P_BP_WEBCHAT webchat = webchat_event_data -> webchat ; if ( ! webchat ) { printf ( " \n " ) ; BP_EVENT_PROCESSOR_EXIT ; } if ( webchat_event_data -> event_type == BP_WEBCHAT_EVENT_USER_GET_METADATA ) { printf ( " \n " ) ; } BP_EVENT_PROCESSOR_EXIT ; }
thread entry point for our application handler.
thread entry point for our application handler .
// processor entry macro // set tor event data // set webchat handle // ensure we have tor // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // %%% Process Start Event %%%%%%%%%%%%%%%%%%%%%%%%%% // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // process start event if set // exit event processor