source/Sources/AirPlayReceiverServer.c
static void _RemoveHTTPServerConnectionsOfType( AirPlayReceiverServerRef inServer, HTTPServerRef inHTTPServer, AirPlayHTTPConnectionTypes inConnectionTypeToRemove )
{
	AirPlayReceiverServer_RemoveHTTPConnectionsParams * params	= NULL;
	
	if( !inHTTPServer )			return;
	
	params = (AirPlayReceiverServer_RemoveHTTPConnectionsParams *) calloc( 1, sizeof( *params ) );
	require( params, exit );
	
	CFRetain( inHTTPServer );			// it will be released in _RemoveHTTPServerConnections
	params->httpServer = inHTTPServer;
	params->connectionTypeToRemove = inConnectionTypeToRemove;
	
	dispatch_sync_f( inServer->httpQueue, params, _RemoveHTTPServerConnections );
	params = NULL;
	
exit:
	if( params ) free( params );
}
//===========================================================================================================================
//	_RemoveHTTPServerConnectionsOfType
//
//  This function should NOT be called on inServer->httpQueue.
//===========================================================================================================================
_RemoveHTTPServerConnectionsOfType
This function should NOT be called on inServer->httpQueue.
_RemoveHTTPServerConnectionsOfType This function should NOT be called on inServer - > httpQueue .
static void _RemoveHTTPServerConnectionsOfType( AirPlayReceiverServerRef inServer, HTTPServerRef inHTTPServer, AirPlayHTTPConnectionTypes inConnectionTypeToRemove )
{
	AirPlayReceiverServer_RemoveHTTPConnectionsParams * params	= NULL;
	if( !inHTTPServer )			return;
	params = (AirPlayReceiverServer_RemoveHTTPConnectionsParams *) calloc( 1, sizeof( *params ) );
	require( params, exit );
	CFRetain( inHTTPServer );			
	params->httpServer = inHTTPServer;
	params->connectionTypeToRemove = inConnectionTypeToRemove;
	dispatch_sync_f( inServer->httpQueue, params, _RemoveHTTPServerConnections );
	params = NULL;
exit:
	if( params ) free( params );
}
static void _RemoveHTTPServerConnectionsOfType ( AirPlayReceiverServerRef inServer , HTTPServerRef inHTTPServer , AirPlayHTTPConnectionTypes inConnectionTypeToRemove ) { AirPlayReceiverServer_RemoveHTTPConnectionsParams * params = NULL ; if ( ! inHTTPServer ) return ; params = ( AirPlayReceiverServer_RemoveHTTPConnectionsParams * ) calloc ( 1 , sizeof ( * params ) ) ; require ( params , exit ) ; CFRetain ( inHTTPServer ) ; params -> httpServer = inHTTPServer ; params -> connectionTypeToRemove = inConnectionTypeToRemove ; dispatch_sync_f ( inServer -> httpQueue , params , _RemoveHTTPServerConnections ) ; params = NULL ; exit : if ( params ) free ( params ) ; }
_RemoveHTTPServerConnectionsOfType
This function should NOT be called on inServer->httpQueue.
_RemoveHTTPServerConnectionsOfType This function should NOT be called on inServer - > httpQueue .
// it will be released in _RemoveHTTPServerConnections