Revert "d3d: Remove AddRef from IWineD3DDevice_GetSwapChain.".
[wine] / dlls / dpnet / dpnet_private.h
1 /*
2  * DirectPlay8 (dpnet) private include file
3  *
4  * Copyright 2004 Raphael Junqueira
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 #ifndef __WINE_DPNET_PRIVATE_H
22 #define __WINE_DPNET_PRIVATE_H
23
24 #ifndef __WINE_CONFIG_H
25 # error You must include config.h to use this header
26 #endif
27
28 #include "dplay8.h"
29 /*
30  *#include "dplobby8.h"
31  *#include "dplay8sp.h"
32  */
33
34 /* DirectPlay8 Interfaces: */
35 typedef struct IDirectPlay8ClientImpl IDirectPlay8ClientImpl;
36 typedef struct IDirectPlay8AddressImpl IDirectPlay8AddressImpl;
37
38 /* ------------------ */
39 /* IDirectPlay8Client */
40 /* ------------------ */
41
42 /*****************************************************************************
43  * IDirectPlay8Client implementation structure
44  */
45 struct IDirectPlay8ClientImpl
46 {
47   /* IUnknown fields */
48   const IDirectPlay8ClientVtbl *lpVtbl;
49   LONG          ref;
50   /* IDirectPlay8Client fields */
51 };
52
53 /* ------------------- */
54 /* IDirectPlay8Address */
55 /* ------------------- */
56
57 /*****************************************************************************
58  * IDirectPlay8Address implementation structure
59  */
60 struct IDirectPlay8AddressImpl
61 {
62   /* IUnknown fields */
63   const IDirectPlay8AddressVtbl *lpVtbl;
64   LONG          ref;
65   /* IDirectPlay8Address fields */
66   GUID SP_guid;
67   const WCHAR *url;
68 };
69
70 /**
71  * factories
72  */
73 extern HRESULT DPNET_CreateDirectPlay8Client(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
74 extern HRESULT DPNET_CreateDirectPlay8Server(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
75 extern HRESULT DPNET_CreateDirectPlay8Peer(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
76 extern HRESULT DPNET_CreateDirectPlay8Address(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
77
78 /**
79  * debug
80  */
81 extern const char *debugstr_SP(const GUID *id);
82
83 /* used for generic dumping (copied from ddraw) */
84 typedef struct {
85     DWORD val;
86     const char* name;
87 } flag_info;
88
89 typedef struct {
90     const GUID *guid;
91     const char* name;
92 } guid_info;
93
94 #define FE(x) { x, #x } 
95 #define GE(x) { &x, #x }
96
97
98
99 #endif