예제 #1
0
파일: event.c 프로젝트: AlessioLeo/FreeRDP
void freerdp_event_free(wMessage* event)
{
	if (event)
	{
		if (event->Free)
			event->Free(event);

		switch (GetMessageClass(event->id))
		{
			case CliprdrChannel_Class:
				freerdp_cliprdr_event_free(event);
				break;

			case TsmfChannel_Class:
				freerdp_tsmf_event_free(event);
				break;

			case RailChannel_Class:
				freerdp_rail_event_free(event);
				break;
		}

		free(event);
	}
}
예제 #2
0
파일: event.c 프로젝트: ArvidNorr/FreeRDP
void freerdp_event_free(RDP_EVENT* event)
{
	if (event != NULL)
	{
		if (event->on_event_free_callback != NULL)
			event->on_event_free_callback(event);

		switch (event->event_class)
		{
			case RDP_EVENT_CLASS_CLIPRDR:
				freerdp_cliprdr_event_free(event);
				break;
			case RDP_EVENT_CLASS_TSMF:
				freerdp_tsmf_event_free(event);
				break;
			case RDP_EVENT_CLASS_RAIL:
				freerdp_rail_event_free(event);
				break;
		}
		xfree(event);
	}
}