dplayx: Declare some functions static.

This commit is contained in:
Andrew Talbot 2007-01-06 19:31:56 +00:00 committed by Alexandre Julliard
parent 482eebab9a
commit f0763b91ab
4 changed files with 20 additions and 21 deletions

View File

@ -199,14 +199,16 @@ static DPSESSIONDESC2* sessionData = NULL;
/* static DPSESSIONDESC2* sessionData[ numSupportedSessions ]; */ /* static DPSESSIONDESC2* sessionData[ numSupportedSessions ]; */
/* Function prototypes */ /* Function prototypes */
DWORD DPLAYX_SizeOfLobbyDataA( LPDPLCONNECTION lpDplData ); static DWORD DPLAYX_SizeOfLobbyDataA( LPDPLCONNECTION lpDplData );
DWORD DPLAYX_SizeOfLobbyDataW( LPDPLCONNECTION lpDplData ); static DWORD DPLAYX_SizeOfLobbyDataW( LPDPLCONNECTION lpDplData );
void DPLAYX_CopyConnStructA( LPDPLCONNECTION dest, LPDPLCONNECTION src ); static void DPLAYX_CopyConnStructA( LPDPLCONNECTION dest, LPDPLCONNECTION src );
void DPLAYX_CopyConnStructW( LPDPLCONNECTION dest, LPDPLCONNECTION src ); static void DPLAYX_CopyConnStructW( LPDPLCONNECTION dest, LPDPLCONNECTION src );
BOOL DPLAYX_IsAppIdLobbied( DWORD dwAppId, LPDPLAYX_LOBBYDATA* dplData ); static BOOL DPLAYX_IsAppIdLobbied( DWORD dwAppId, LPDPLAYX_LOBBYDATA* dplData );
void DPLAYX_InitializeLobbyDataEntry( LPDPLAYX_LOBBYDATA lpData ); static void DPLAYX_InitializeLobbyDataEntry( LPDPLAYX_LOBBYDATA lpData );
BOOL DPLAYX_CopyIntoSessionDesc2A( LPDPSESSIONDESC2 lpSessionDest, static BOOL DPLAYX_CopyIntoSessionDesc2A( LPDPSESSIONDESC2 lpSessionDest,
LPCDPSESSIONDESC2 lpSessionSrc ); LPCDPSESSIONDESC2 lpSessionSrc );
static BOOL DPLAYX_GetThisLobbyHandles( LPHANDLE lphStart, LPHANDLE lphDeath,
LPHANDLE lphConnRead, BOOL bClearSetHandles );
@ -527,10 +529,10 @@ BOOL DPLAYX_SetLobbyHandles( DWORD dwAppID,
return TRUE; return TRUE;
} }
BOOL DPLAYX_GetThisLobbyHandles( LPHANDLE lphStart, static BOOL DPLAYX_GetThisLobbyHandles( LPHANDLE lphStart,
LPHANDLE lphDeath, LPHANDLE lphDeath,
LPHANDLE lphConnRead, LPHANDLE lphConnRead,
BOOL bClearSetHandles ) BOOL bClearSetHandles )
{ {
LPDPLAYX_LOBBYDATA lpLData; LPDPLAYX_LOBBYDATA lpLData;

View File

@ -51,9 +51,6 @@ BOOL DPLAYX_AnyLobbiesWaitingForConnSettings(void);
BOOL DPLAYX_SetLobbyHandles( DWORD dwAppID, BOOL DPLAYX_SetLobbyHandles( DWORD dwAppID,
HANDLE hStart, HANDLE hDeath, HANDLE hConnRead ); HANDLE hStart, HANDLE hDeath, HANDLE hConnRead );
BOOL DPLAYX_GetThisLobbyHandles( LPHANDLE lphStart,
LPHANDLE lphDeath,
LPHANDLE lphConnRead, BOOL bClearSetHandles );
LPDPSESSIONDESC2 DPLAYX_CopyAndAllocateLocalSession( UINT* index ); LPDPSESSIONDESC2 DPLAYX_CopyAndAllocateLocalSession( UINT* index );
BOOL DPLAYX_CopyLocalSession( UINT* index, LPDPSESSIONDESC2 lpsd ); BOOL DPLAYX_CopyLocalSession( UINT* index, LPDPSESSIONDESC2 lpsd );

View File

@ -50,7 +50,7 @@ typedef struct IDirectPlayLobby3Impl IDirectPlayLobby3WImpl;
HRESULT DPL_CreateCompoundAddress ( LPCDPCOMPOUNDADDRESSELEMENT lpElements, DWORD dwElementCount, HRESULT DPL_CreateCompoundAddress ( LPCDPCOMPOUNDADDRESSELEMENT lpElements, DWORD dwElementCount,
LPVOID lpAddress, LPDWORD lpdwAddressSize, BOOL bAnsiInterface ); LPVOID lpAddress, LPDWORD lpdwAddressSize, BOOL bAnsiInterface );
HRESULT DPL_CreateAddress( REFGUID guidSP, REFGUID guidDataType, LPCVOID lpData, DWORD dwDataSize, static HRESULT DPL_CreateAddress( REFGUID guidSP, REFGUID guidDataType, LPCVOID lpData, DWORD dwDataSize,
LPVOID lpAddress, LPDWORD lpdwAddressSize, BOOL bAnsiInterface ); LPVOID lpAddress, LPDWORD lpdwAddressSize, BOOL bAnsiInterface );
@ -62,7 +62,7 @@ static HRESULT WINAPI DPL_ConnectEx( IDirectPlayLobbyAImpl* This,
DWORD dwFlags, REFIID riid, DWORD dwFlags, REFIID riid,
LPVOID* lplpDP, IUnknown* pUnk ); LPVOID* lplpDP, IUnknown* pUnk );
BOOL DPL_CreateAndSetLobbyHandles( DWORD dwDestProcessId, HANDLE hDestProcess, static BOOL DPL_CreateAndSetLobbyHandles( DWORD dwDestProcessId, HANDLE hDestProcess,
LPHANDLE lphStart, LPHANDLE lphDeath, LPHANDLE lphStart, LPHANDLE lphDeath,
LPHANDLE lphRead ); LPHANDLE lphRead );
@ -610,7 +610,7 @@ static HRESULT WINAPI IDirectPlayLobbyWImpl_CreateAddress
lpAddress, lpdwAddressSize, FALSE ); lpAddress, lpdwAddressSize, FALSE );
} }
HRESULT DPL_CreateAddress( static HRESULT DPL_CreateAddress(
REFGUID guidSP, REFGUID guidSP,
REFGUID guidDataType, REFGUID guidDataType,
LPCVOID lpData, LPCVOID lpData,
@ -1143,7 +1143,7 @@ static BOOL CALLBACK RunApplicationA_EnumLocalApplications
return TRUE; /* Keep enumerating, haven't found the application yet */ return TRUE; /* Keep enumerating, haven't found the application yet */
} }
BOOL DPL_CreateAndSetLobbyHandles( DWORD dwDestProcessId, HANDLE hDestProcess, static BOOL DPL_CreateAndSetLobbyHandles( DWORD dwDestProcessId, HANDLE hDestProcess,
LPHANDLE lphStart, LPHANDLE lphDeath, LPHANDLE lphStart, LPHANDLE lphDeath,
LPHANDLE lphRead ) LPHANDLE lphRead )
{ {

View File

@ -67,7 +67,7 @@ struct NSCache
typedef struct NSCache NSCache, *lpNSCache; typedef struct NSCache NSCache, *lpNSCache;
/* Function prototypes */ /* Function prototypes */
DPQ_DECL_DELETECB( cbDeleteNSNodeFromHeap, lpNSCacheData ); static DPQ_DECL_DELETECB( cbDeleteNSNodeFromHeap, lpNSCacheData );
/* Name Server functions /* Name Server functions
* --------------------- * ---------------------
@ -245,7 +245,7 @@ HRESULT NS_SendSessionRequestBroadcast( LPCGUID lpcGuid,
} }
/* Delete a name server node which has been allocated on the heap */ /* Delete a name server node which has been allocated on the heap */
DPQ_DECL_DELETECB( cbDeleteNSNodeFromHeap, lpNSCacheData ) static DPQ_DECL_DELETECB( cbDeleteNSNodeFromHeap, lpNSCacheData )
{ {
/* NOTE: This proc doesn't deal with the walking pointer */ /* NOTE: This proc doesn't deal with the walking pointer */