2004-04-07 22:39:00 +02:00
|
|
|
/*
|
|
|
|
* DirectPlay8 (dpnet) private include file
|
|
|
|
*
|
|
|
|
* Copyright 2004 Raphael Junqueira
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2004-04-07 22:39:00 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_DPNET_PRIVATE_H
|
|
|
|
#define __WINE_DPNET_PRIVATE_H
|
|
|
|
|
|
|
|
#ifndef __WINE_CONFIG_H
|
|
|
|
# error You must include config.h to use this header
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "dplay8.h"
|
2007-07-30 23:41:59 +02:00
|
|
|
#include "dplobby8.h"
|
2004-04-07 22:39:00 +02:00
|
|
|
/*
|
|
|
|
*#include "dplay8sp.h"
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* DirectPlay8 Interfaces: */
|
|
|
|
typedef struct IDirectPlay8ClientImpl IDirectPlay8ClientImpl;
|
|
|
|
typedef struct IDirectPlay8AddressImpl IDirectPlay8AddressImpl;
|
2007-07-30 23:41:59 +02:00
|
|
|
typedef struct IDirectPlay8LobbiedApplicationImpl IDirectPlay8LobbiedApplicationImpl;
|
2008-08-20 15:18:57 +02:00
|
|
|
typedef struct IDirectPlay8PeerImpl IDirectPlay8PeerImpl;
|
2008-07-22 18:50:14 +02:00
|
|
|
typedef struct IDirectPlay8ThreadPoolImpl IDirectPlay8ThreadPoolImpl;
|
2004-04-07 22:39:00 +02:00
|
|
|
|
|
|
|
/* ------------------ */
|
|
|
|
/* IDirectPlay8Client */
|
|
|
|
/* ------------------ */
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDirectPlay8Client implementation structure
|
|
|
|
*/
|
|
|
|
struct IDirectPlay8ClientImpl
|
|
|
|
{
|
|
|
|
/* IUnknown fields */
|
2005-06-01 21:57:42 +02:00
|
|
|
const IDirectPlay8ClientVtbl *lpVtbl;
|
2005-07-12 21:21:36 +02:00
|
|
|
LONG ref;
|
2004-04-07 22:39:00 +02:00
|
|
|
/* IDirectPlay8Client fields */
|
|
|
|
};
|
|
|
|
|
|
|
|
/* ------------------- */
|
|
|
|
/* IDirectPlay8Address */
|
|
|
|
/* ------------------- */
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDirectPlay8Address implementation structure
|
|
|
|
*/
|
|
|
|
struct IDirectPlay8AddressImpl
|
|
|
|
{
|
|
|
|
/* IUnknown fields */
|
2005-06-01 21:57:42 +02:00
|
|
|
const IDirectPlay8AddressVtbl *lpVtbl;
|
2005-07-12 21:21:36 +02:00
|
|
|
LONG ref;
|
2004-04-07 22:39:00 +02:00
|
|
|
/* IDirectPlay8Address fields */
|
2004-04-08 06:38:26 +02:00
|
|
|
GUID SP_guid;
|
2005-06-01 21:57:42 +02:00
|
|
|
const WCHAR *url;
|
2004-04-07 22:39:00 +02:00
|
|
|
};
|
|
|
|
|
2007-07-30 23:41:59 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* IDirectPlay8LobbiedApplication implementation structure
|
|
|
|
*/
|
|
|
|
struct IDirectPlay8LobbiedApplicationImpl
|
|
|
|
{
|
|
|
|
/* IUnknown fields */
|
|
|
|
const IDirectPlay8LobbiedApplicationVtbl *lpVtbl;
|
|
|
|
LONG ref;
|
|
|
|
/* IDirectPlay8LobbiedApplication fields */
|
|
|
|
};
|
|
|
|
|
2008-08-20 15:18:57 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* IDirectPlay8Peer implementation structure
|
|
|
|
*/
|
|
|
|
struct IDirectPlay8PeerImpl
|
|
|
|
{
|
|
|
|
/* IUnknown fields */
|
|
|
|
const IDirectPlay8PeerVtbl *lpVtbl;
|
|
|
|
LONG ref;
|
|
|
|
};
|
|
|
|
|
2008-07-22 18:50:14 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* IDirectPlay8ThreadPool implementation structure
|
|
|
|
*/
|
|
|
|
struct IDirectPlay8ThreadPoolImpl
|
|
|
|
{
|
|
|
|
/* IUnknown fields */
|
|
|
|
const IDirectPlay8ThreadPoolVtbl *lpVtbl;
|
|
|
|
LONG ref;
|
|
|
|
};
|
|
|
|
|
2004-04-07 22:39:00 +02:00
|
|
|
/**
|
|
|
|
* factories
|
|
|
|
*/
|
|
|
|
extern HRESULT DPNET_CreateDirectPlay8Client(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
|
|
|
|
extern HRESULT DPNET_CreateDirectPlay8Server(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
|
|
|
|
extern HRESULT DPNET_CreateDirectPlay8Peer(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
|
|
|
|
extern HRESULT DPNET_CreateDirectPlay8Address(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
|
2007-07-30 23:41:59 +02:00
|
|
|
extern HRESULT DPNET_CreateDirectPlay8LobbiedApp(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
|
2008-07-22 18:50:14 +02:00
|
|
|
extern HRESULT DPNET_CreateDirectPlay8ThreadPool(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
|
2004-04-07 22:39:00 +02:00
|
|
|
|
2004-04-08 06:38:26 +02:00
|
|
|
/* used for generic dumping (copied from ddraw) */
|
|
|
|
typedef struct {
|
|
|
|
DWORD val;
|
|
|
|
const char* name;
|
|
|
|
} flag_info;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
const GUID *guid;
|
|
|
|
const char* name;
|
|
|
|
} guid_info;
|
|
|
|
|
|
|
|
#define FE(x) { x, #x }
|
|
|
|
#define GE(x) { &x, #x }
|
|
|
|
|
|
|
|
|
|
|
|
|
2004-04-07 22:39:00 +02:00
|
|
|
#endif
|