Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
43b278c5
Commit
43b278c5
authored
Apr 26, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dplayx: Constify some variables.
parent
ff40f3d2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
20 deletions
+20
-20
dplay.c
dlls/dplayx/dplay.c
+6
-6
dplayx_global.c
dlls/dplayx/dplayx_global.c
+10
-10
dplayx_global.h
dlls/dplayx/dplayx_global.h
+2
-2
name_server.c
dlls/dplayx/name_server.c
+1
-1
name_server.h
dlls/dplayx/name_server.h
+1
-1
No files found.
dlls/dplayx/dplay.c
View file @
43b278c5
...
...
@@ -54,12 +54,12 @@ static lpPlayerList DP_FindPlayer( IDirectPlay2AImpl* This, DPID dpid );
static
lpPlayerData
DP_CreatePlayer
(
IDirectPlay2Impl
*
iface
,
LPDPID
lpid
,
LPDPNAME
lpName
,
DWORD
dwFlags
,
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
,
LPVOID
lpData
,
DWORD
dwDataSize
);
static
lpGroupData
DP_CreateGroup
(
IDirectPlay2AImpl
*
iface
,
LPDPID
lpid
,
LPDPNAME
lpName
,
DWORD
dwFlags
,
static
lpGroupData
DP_CreateGroup
(
IDirectPlay2AImpl
*
iface
,
const
DPID
*
lpid
,
const
DPNAME
*
lpName
,
DWORD
dwFlags
,
DPID
idParent
,
BOOL
bAnsi
);
static
void
DP_SetGroupData
(
lpGroupData
lpGData
,
DWORD
dwFlags
,
LPVOID
lpData
,
DWORD
dwDataSize
);
...
...
@@ -919,8 +919,8 @@ static HRESULT WINAPI DirectPlay2WImpl_Close
}
static
lpGroupData
DP_CreateGroup
(
IDirectPlay2AImpl
*
This
,
LPDPID
lpid
,
LPDPNAME
lpName
,
DWORD
dwFlags
,
lpGroupData
DP_CreateGroup
(
IDirectPlay2AImpl
*
This
,
const
DPID
*
lpid
,
const
DPNAME
*
lpName
,
DWORD
dwFlags
,
DPID
idParent
,
BOOL
bAnsi
)
{
lpGroupData
lpGData
;
...
...
@@ -1290,7 +1290,7 @@ static lpPlayerList DP_FindPlayer( IDirectPlay2AImpl* This, DPID dpid )
}
/* 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
)
{
...
...
dlls/dplayx/dplayx_global.c
View file @
43b278c5
...
...
@@ -199,10 +199,10 @@ static DPSESSIONDESC2* sessionData = NULL;
/* static DPSESSIONDESC2* sessionData[ numSupportedSessions ]; */
/* Function prototypes */
static
DWORD
DPLAYX_SizeOfLobbyDataA
(
LPDPLCONNECTION
lpDplData
);
static
DWORD
DPLAYX_SizeOfLobbyDataW
(
LPDPLCONNECTION
lpDplData
);
static
void
DPLAYX_CopyConnStructA
(
LPDPLCONNECTION
dest
,
LPDPLCONNECTION
src
);
static
void
DPLAYX_CopyConnStructW
(
LPDPLCONNECTION
dest
,
LPDPLCONNECTION
src
);
static
DWORD
DPLAYX_SizeOfLobbyDataA
(
const
DPLCONNECTION
*
lpDplData
);
static
DWORD
DPLAYX_SizeOfLobbyDataW
(
const
DPLCONNECTION
*
lpDplData
);
static
void
DPLAYX_CopyConnStructA
(
LPDPLCONNECTION
dest
,
const
DPLCONNECTION
*
src
);
static
void
DPLAYX_CopyConnStructW
(
LPDPLCONNECTION
dest
,
const
DPLCONNECTION
*
src
);
static
BOOL
DPLAYX_IsAppIdLobbied
(
DWORD
dwAppId
,
LPDPLAYX_LOBBYDATA
*
dplData
);
static
void
DPLAYX_InitializeLobbyDataEntry
(
LPDPLAYX_LOBBYDATA
lpData
);
static
BOOL
DPLAYX_CopyIntoSessionDesc2A
(
LPDPSESSIONDESC2
lpSessionDest
,
...
...
@@ -658,7 +658,7 @@ HRESULT DPLAYX_GetConnectionSettingsA
}
/* 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
;
...
...
@@ -780,7 +780,7 @@ HRESULT DPLAYX_GetConnectionSettingsW
}
/* 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
;
...
...
@@ -855,7 +855,7 @@ void DPLAYX_CopyConnStructW( LPDPLCONNECTION dest, LPDPLCONNECTION src )
HRESULT
DPLAYX_SetConnectionSettingsA
(
DWORD
dwFlags
,
DWORD
dwAppID
,
LPDPLCONNECTION
lpConn
)
const
DPLCONNECTION
*
lpConn
)
{
LPDPLAYX_LOBBYDATA
lpDplData
;
...
...
@@ -917,7 +917,7 @@ HRESULT DPLAYX_SetConnectionSettingsA
HRESULT
DPLAYX_SetConnectionSettingsW
(
DWORD
dwFlags
,
DWORD
dwAppID
,
LPDPLCONNECTION
lpConn
)
const
DPLCONNECTION
*
lpConn
)
{
LPDPLAYX_LOBBYDATA
lpDplData
;
...
...
@@ -961,7 +961,7 @@ HRESULT DPLAYX_SetConnectionSettingsW
return
DP_OK
;
}
DWORD
DPLAYX_SizeOfLobbyDataA
(
LPDPLCONNECTION
lpConn
)
DWORD
DPLAYX_SizeOfLobbyDataA
(
const
DPLCONNECTION
*
lpConn
)
{
DWORD
dwTotalSize
=
sizeof
(
DPLCONNECTION
);
...
...
@@ -1008,7 +1008,7 @@ DWORD DPLAYX_SizeOfLobbyDataA( LPDPLCONNECTION lpConn )
return
dwTotalSize
;
}
DWORD
DPLAYX_SizeOfLobbyDataW
(
LPDPLCONNECTION
lpConn
)
DWORD
DPLAYX_SizeOfLobbyDataW
(
const
DPLCONNECTION
*
lpConn
)
{
DWORD
dwTotalSize
=
sizeof
(
DPLCONNECTION
);
...
...
dlls/dplayx/dplayx_global.h
View file @
43b278c5
...
...
@@ -38,10 +38,10 @@ HRESULT DPLAYX_GetConnectionSettingsW ( DWORD dwAppID,
HRESULT
DPLAYX_SetConnectionSettingsA
(
DWORD
dwFlags
,
DWORD
dwAppID
,
LPDPLCONNECTION
lpConn
);
const
DPLCONNECTION
*
lpConn
);
HRESULT
DPLAYX_SetConnectionSettingsW
(
DWORD
dwFlags
,
DWORD
dwAppID
,
LPDPLCONNECTION
lpConn
);
const
DPLCONNECTION
*
lpConn
);
BOOL
DPLAYX_CreateLobbyApplication
(
DWORD
dwAppID
);
BOOL
DPLAYX_DestroyLobbyApplication
(
DWORD
dwAppID
);
...
...
dlls/dplayx/name_server.c
View file @
43b278c5
...
...
@@ -211,7 +211,7 @@ void NS_SetLocalAddr( LPVOID lpNSInfo, LPCVOID lpHdr, DWORD dwHdrSize )
*/
HRESULT
NS_SendSessionRequestBroadcast
(
LPCGUID
lpcGuid
,
DWORD
dwFlags
,
LPSPINITDATA
lpSpData
)
const
SPINITDATA
*
lpSpData
)
{
DPSP_ENUMSESSIONSDATA
data
;
...
...
dlls/dplayx/name_server.h
View file @
43b278c5
...
...
@@ -46,7 +46,7 @@ void NS_ReplyToEnumSessionsRequest( LPCVOID lpcMsg,
HRESULT
NS_SendSessionRequestBroadcast
(
LPCGUID
lpcGuid
,
DWORD
dwFlags
,
LPSPINITDATA
lpSpData
);
const
SPINITDATA
*
lpSpData
);
BOOL
NS_InitializeSessionCache
(
LPVOID
*
lplpNSInfo
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment