Andrew Talbot : dpnet: Declare a function static.
Alexandre Julliard
julliard at winehq.org
Sat Jan 3 09:11:31 CST 2009
Module: wine
Branch: master
Commit: bffe5016e04251dfddb0283e865923794885e970
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bffe5016e04251dfddb0283e865923794885e970
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Sat Jan 3 12:53:38 2009 +0000
dpnet: Declare a function static.
---
dlls/dpnet/address.c | 42 +++++++++++++++++++++---------------------
dlls/dpnet/dpnet_private.h | 5 -----
2 files changed, 21 insertions(+), 26 deletions(-)
diff --git a/dlls/dpnet/address.c b/dlls/dpnet/address.c
index f39cf44..d6d1730 100644
--- a/dlls/dpnet/address.c
+++ b/dlls/dpnet/address.c
@@ -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);
-}
diff --git a/dlls/dpnet/dpnet_private.h b/dlls/dpnet/dpnet_private.h
index f75326a..bdd3f9d 100644
--- a/dlls/dpnet/dpnet_private.h
+++ b/dlls/dpnet/dpnet_private.h
@@ -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;
More information about the wine-cvs
mailing list