dplayx: Constify some variables.

This commit is contained in:
Andrew Talbot 2007-04-26 22:45:27 +01:00 committed by Alexandre Julliard
parent ff40f3d2d3
commit 43b278c5f1
5 changed files with 20 additions and 20 deletions

View File

@ -54,12 +54,12 @@ static lpPlayerList DP_FindPlayer( IDirectPlay2AImpl* This, DPID dpid );
static lpPlayerData DP_CreatePlayer( IDirectPlay2Impl* iface, LPDPID lpid, static lpPlayerData DP_CreatePlayer( IDirectPlay2Impl* iface, LPDPID lpid,
LPDPNAME lpName, DWORD dwFlags, LPDPNAME lpName, DWORD dwFlags,
HANDLE hEvent, BOOL bAnsi ); HANDLE hEvent, BOOL bAnsi );
static BOOL DP_CopyDPNAMEStruct( LPDPNAME lpDst, LPDPNAME lpSrc, BOOL bAnsi ); static BOOL DP_CopyDPNAMEStruct( LPDPNAME lpDst, const DPNAME *lpSrc, BOOL bAnsi );
static void DP_SetPlayerData( lpPlayerData lpPData, DWORD dwFlags, static void DP_SetPlayerData( lpPlayerData lpPData, DWORD dwFlags,
LPVOID lpData, DWORD dwDataSize ); LPVOID lpData, DWORD dwDataSize );
static lpGroupData DP_CreateGroup( IDirectPlay2AImpl* iface, LPDPID lpid, static lpGroupData DP_CreateGroup( IDirectPlay2AImpl* iface, const DPID *lpid,
LPDPNAME lpName, DWORD dwFlags, const DPNAME *lpName, DWORD dwFlags,
DPID idParent, BOOL bAnsi ); DPID idParent, BOOL bAnsi );
static void DP_SetGroupData( lpGroupData lpGData, DWORD dwFlags, static void DP_SetGroupData( lpGroupData lpGData, DWORD dwFlags,
LPVOID lpData, DWORD dwDataSize ); LPVOID lpData, DWORD dwDataSize );
@ -919,8 +919,8 @@ static HRESULT WINAPI DirectPlay2WImpl_Close
} }
static static
lpGroupData DP_CreateGroup( IDirectPlay2AImpl* This, LPDPID lpid, lpGroupData DP_CreateGroup( IDirectPlay2AImpl* This, const DPID *lpid,
LPDPNAME lpName, DWORD dwFlags, const DPNAME *lpName, DWORD dwFlags,
DPID idParent, BOOL bAnsi ) DPID idParent, BOOL bAnsi )
{ {
lpGroupData lpGData; lpGroupData lpGData;
@ -1290,7 +1290,7 @@ static lpPlayerList DP_FindPlayer( IDirectPlay2AImpl* This, DPID dpid )
} }
/* Basic area for Dst must already be allocated */ /* Basic area for Dst must already be allocated */
static BOOL DP_CopyDPNAMEStruct( LPDPNAME lpDst, LPDPNAME lpSrc, BOOL bAnsi ) static BOOL DP_CopyDPNAMEStruct( LPDPNAME lpDst, const DPNAME *lpSrc, BOOL bAnsi )
{ {
if( lpSrc == NULL ) if( lpSrc == NULL )
{ {

View File

@ -199,10 +199,10 @@ static DPSESSIONDESC2* sessionData = NULL;
/* static DPSESSIONDESC2* sessionData[ numSupportedSessions ]; */ /* static DPSESSIONDESC2* sessionData[ numSupportedSessions ]; */
/* Function prototypes */ /* Function prototypes */
static DWORD DPLAYX_SizeOfLobbyDataA( LPDPLCONNECTION lpDplData ); static DWORD DPLAYX_SizeOfLobbyDataA( const DPLCONNECTION *lpDplData );
static DWORD DPLAYX_SizeOfLobbyDataW( LPDPLCONNECTION lpDplData ); static DWORD DPLAYX_SizeOfLobbyDataW( const DPLCONNECTION *lpDplData );
static void DPLAYX_CopyConnStructA( LPDPLCONNECTION dest, LPDPLCONNECTION src ); static void DPLAYX_CopyConnStructA( LPDPLCONNECTION dest, const DPLCONNECTION *src );
static void DPLAYX_CopyConnStructW( LPDPLCONNECTION dest, LPDPLCONNECTION src ); static void DPLAYX_CopyConnStructW( LPDPLCONNECTION dest, const DPLCONNECTION *src );
static BOOL DPLAYX_IsAppIdLobbied( DWORD dwAppId, LPDPLAYX_LOBBYDATA* dplData ); static BOOL DPLAYX_IsAppIdLobbied( DWORD dwAppId, LPDPLAYX_LOBBYDATA* dplData );
static void DPLAYX_InitializeLobbyDataEntry( LPDPLAYX_LOBBYDATA lpData ); static void DPLAYX_InitializeLobbyDataEntry( LPDPLAYX_LOBBYDATA lpData );
static BOOL DPLAYX_CopyIntoSessionDesc2A( LPDPSESSIONDESC2 lpSessionDest, static BOOL DPLAYX_CopyIntoSessionDesc2A( LPDPSESSIONDESC2 lpSessionDest,
@ -658,7 +658,7 @@ HRESULT DPLAYX_GetConnectionSettingsA
} }
/* Assumption: Enough contiguous space was allocated at dest */ /* Assumption: Enough contiguous space was allocated at dest */
void DPLAYX_CopyConnStructA( LPDPLCONNECTION dest, LPDPLCONNECTION src ) void DPLAYX_CopyConnStructA( LPDPLCONNECTION dest, const DPLCONNECTION *src )
{ {
BYTE* lpStartOfFreeSpace; BYTE* lpStartOfFreeSpace;
@ -780,7 +780,7 @@ HRESULT DPLAYX_GetConnectionSettingsW
} }
/* Assumption: Enough contiguous space was allocated at dest */ /* Assumption: Enough contiguous space was allocated at dest */
void DPLAYX_CopyConnStructW( LPDPLCONNECTION dest, LPDPLCONNECTION src ) void DPLAYX_CopyConnStructW( LPDPLCONNECTION dest, const DPLCONNECTION *src )
{ {
BYTE* lpStartOfFreeSpace; BYTE* lpStartOfFreeSpace;
@ -855,7 +855,7 @@ void DPLAYX_CopyConnStructW( LPDPLCONNECTION dest, LPDPLCONNECTION src )
HRESULT DPLAYX_SetConnectionSettingsA HRESULT DPLAYX_SetConnectionSettingsA
( DWORD dwFlags, ( DWORD dwFlags,
DWORD dwAppID, DWORD dwAppID,
LPDPLCONNECTION lpConn ) const DPLCONNECTION *lpConn )
{ {
LPDPLAYX_LOBBYDATA lpDplData; LPDPLAYX_LOBBYDATA lpDplData;
@ -917,7 +917,7 @@ HRESULT DPLAYX_SetConnectionSettingsA
HRESULT DPLAYX_SetConnectionSettingsW HRESULT DPLAYX_SetConnectionSettingsW
( DWORD dwFlags, ( DWORD dwFlags,
DWORD dwAppID, DWORD dwAppID,
LPDPLCONNECTION lpConn ) const DPLCONNECTION *lpConn )
{ {
LPDPLAYX_LOBBYDATA lpDplData; LPDPLAYX_LOBBYDATA lpDplData;
@ -961,7 +961,7 @@ HRESULT DPLAYX_SetConnectionSettingsW
return DP_OK; return DP_OK;
} }
DWORD DPLAYX_SizeOfLobbyDataA( LPDPLCONNECTION lpConn ) DWORD DPLAYX_SizeOfLobbyDataA( const DPLCONNECTION *lpConn )
{ {
DWORD dwTotalSize = sizeof( DPLCONNECTION ); DWORD dwTotalSize = sizeof( DPLCONNECTION );
@ -1008,7 +1008,7 @@ DWORD DPLAYX_SizeOfLobbyDataA( LPDPLCONNECTION lpConn )
return dwTotalSize; return dwTotalSize;
} }
DWORD DPLAYX_SizeOfLobbyDataW( LPDPLCONNECTION lpConn ) DWORD DPLAYX_SizeOfLobbyDataW( const DPLCONNECTION *lpConn )
{ {
DWORD dwTotalSize = sizeof( DPLCONNECTION ); DWORD dwTotalSize = sizeof( DPLCONNECTION );

View File

@ -38,10 +38,10 @@ HRESULT DPLAYX_GetConnectionSettingsW ( DWORD dwAppID,
HRESULT DPLAYX_SetConnectionSettingsA ( DWORD dwFlags, HRESULT DPLAYX_SetConnectionSettingsA ( DWORD dwFlags,
DWORD dwAppID, DWORD dwAppID,
LPDPLCONNECTION lpConn ); const DPLCONNECTION *lpConn );
HRESULT DPLAYX_SetConnectionSettingsW ( DWORD dwFlags, HRESULT DPLAYX_SetConnectionSettingsW ( DWORD dwFlags,
DWORD dwAppID, DWORD dwAppID,
LPDPLCONNECTION lpConn ); const DPLCONNECTION *lpConn );
BOOL DPLAYX_CreateLobbyApplication( DWORD dwAppID ); BOOL DPLAYX_CreateLobbyApplication( DWORD dwAppID );
BOOL DPLAYX_DestroyLobbyApplication( DWORD dwAppID ); BOOL DPLAYX_DestroyLobbyApplication( DWORD dwAppID );

View File

@ -211,7 +211,7 @@ void NS_SetLocalAddr( LPVOID lpNSInfo, LPCVOID lpHdr, DWORD dwHdrSize )
*/ */
HRESULT NS_SendSessionRequestBroadcast( LPCGUID lpcGuid, HRESULT NS_SendSessionRequestBroadcast( LPCGUID lpcGuid,
DWORD dwFlags, DWORD dwFlags,
LPSPINITDATA lpSpData ) const SPINITDATA *lpSpData )
{ {
DPSP_ENUMSESSIONSDATA data; DPSP_ENUMSESSIONSDATA data;

View File

@ -46,7 +46,7 @@ void NS_ReplyToEnumSessionsRequest( LPCVOID lpcMsg,
HRESULT NS_SendSessionRequestBroadcast( LPCGUID lpcGuid, HRESULT NS_SendSessionRequestBroadcast( LPCGUID lpcGuid,
DWORD dwFlags, DWORD dwFlags,
LPSPINITDATA lpSpData ); const SPINITDATA *lpSpData );
BOOL NS_InitializeSessionCache( LPVOID* lplpNSInfo ); BOOL NS_InitializeSessionCache( LPVOID* lplpNSInfo );