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
bffe5016
Commit
bffe5016
authored
Jan 03, 2009
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dpnet: Declare a function static.
parent
4c92ba22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
26 deletions
+21
-26
address.c
dlls/dpnet/address.c
+21
-21
dpnet_private.h
dlls/dpnet/dpnet_private.h
+0
-5
No files found.
dlls/dpnet/address.c
View file @
bffe5016
...
...
@@ -73,6 +73,27 @@ static ULONG WINAPI IDirectPlay8AddressImpl_Release(PDIRECTPLAY8ADDRESS iface) {
return
refCount
;
}
/* returns name of given GUID */
static
const
char
*
debugstr_SP
(
const
GUID
*
id
)
{
static
const
guid_info
guids
[]
=
{
/* CLSIDs */
GE
(
CLSID_DP8SP_IPX
),
GE
(
CLSID_DP8SP_TCPIP
),
GE
(
CLSID_DP8SP_SERIAL
),
GE
(
CLSID_DP8SP_MODEM
)
};
unsigned
int
i
;
if
(
!
id
)
return
"(null)"
;
for
(
i
=
0
;
i
<
sizeof
(
guids
)
/
sizeof
(
guids
[
0
]);
i
++
)
{
if
(
IsEqualGUID
(
id
,
guids
[
i
].
guid
))
return
guids
[
i
].
name
;
}
/* if we didn't find it, act like standard debugstr_guid */
return
debugstr_guid
(
id
);
}
/* IDirectPlay8Address Interface follow: */
static
HRESULT
WINAPI
IDirectPlay8AddressImpl_BuildFromURLW
(
PDIRECTPLAY8ADDRESS
iface
,
WCHAR
*
pwszSourceURL
)
{
...
...
@@ -252,24 +273,3 @@ HRESULT DPNET_CreateDirectPlay8Address(LPCLASSFACTORY iface, LPUNKNOWN punkOuter
client
->
ref
=
0
;
/* will be inited with QueryInterface */
return
IDirectPlay8AddressImpl_QueryInterface
((
PDIRECTPLAY8ADDRESS
)
client
,
riid
,
ppobj
);
}
/* returns name of given GUID */
const
char
*
debugstr_SP
(
const
GUID
*
id
)
{
static
const
guid_info
guids
[]
=
{
/* CLSIDs */
GE
(
CLSID_DP8SP_IPX
),
GE
(
CLSID_DP8SP_TCPIP
),
GE
(
CLSID_DP8SP_SERIAL
),
GE
(
CLSID_DP8SP_MODEM
)
};
unsigned
int
i
;
if
(
!
id
)
return
"(null)"
;
for
(
i
=
0
;
i
<
sizeof
(
guids
)
/
sizeof
(
guids
[
0
]);
i
++
)
{
if
(
IsEqualGUID
(
id
,
guids
[
i
].
guid
))
return
guids
[
i
].
name
;
}
/* if we didn't find it, act like standard debugstr_guid */
return
debugstr_guid
(
id
);
}
dlls/dpnet/dpnet_private.h
View file @
bffe5016
...
...
@@ -111,11 +111,6 @@ extern HRESULT DPNET_CreateDirectPlay8Address(LPCLASSFACTORY iface, LPUNKNOWN pu
extern
HRESULT
DPNET_CreateDirectPlay8LobbiedApp
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
punkOuter
,
REFIID
riid
,
LPVOID
*
ppobj
);
extern
HRESULT
DPNET_CreateDirectPlay8ThreadPool
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
punkOuter
,
REFIID
riid
,
LPVOID
*
ppobj
);
/**
* debug
*/
extern
const
char
*
debugstr_SP
(
const
GUID
*
id
);
/* used for generic dumping (copied from ddraw) */
typedef
struct
{
DWORD
val
;
...
...
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