2004-04-07 20:39:00 +00: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 12:49:52 +00:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2004-04-07 20:39:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_DPNET_PRIVATE_H
|
|
|
|
#define __WINE_DPNET_PRIVATE_H
|
|
|
|
|
2014-04-10 23:02:56 +00:00
|
|
|
#include <wine/list.h>
|
2016-11-02 09:13:49 +00:00
|
|
|
#include "winsock2.h"
|
2014-04-10 23:02:56 +00:00
|
|
|
|
2004-04-07 20:39:00 +00:00
|
|
|
#include "dplay8.h"
|
2007-07-30 21:41:59 +00:00
|
|
|
#include "dplobby8.h"
|
2004-04-07 20:39:00 +00:00
|
|
|
/*
|
|
|
|
*#include "dplay8sp.h"
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* DirectPlay8 Interfaces: */
|
|
|
|
typedef struct IDirectPlay8ClientImpl IDirectPlay8ClientImpl;
|
|
|
|
typedef struct IDirectPlay8AddressImpl IDirectPlay8AddressImpl;
|
2007-07-30 21:41:59 +00:00
|
|
|
typedef struct IDirectPlay8LobbiedApplicationImpl IDirectPlay8LobbiedApplicationImpl;
|
2008-07-22 16:50:14 +00:00
|
|
|
typedef struct IDirectPlay8ThreadPoolImpl IDirectPlay8ThreadPoolImpl;
|
2004-04-07 20:39:00 +00:00
|
|
|
|
|
|
|
/* ------------------ */
|
|
|
|
/* IDirectPlay8Client */
|
|
|
|
/* ------------------ */
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDirectPlay8Client implementation structure
|
|
|
|
*/
|
|
|
|
struct IDirectPlay8ClientImpl
|
|
|
|
{
|
2014-05-03 05:45:06 +00:00
|
|
|
IDirectPlay8Client IDirectPlay8Client_iface;
|
|
|
|
LONG ref;
|
|
|
|
|
|
|
|
/* IDirectPlay8Client fields */
|
|
|
|
PFNDPNMESSAGEHANDLER msghandler;
|
|
|
|
DWORD flags;
|
|
|
|
void *usercontext;
|
2016-10-28 07:07:07 +00:00
|
|
|
WCHAR *username;
|
|
|
|
void *data;
|
|
|
|
DWORD datasize;
|
2014-05-07 00:59:46 +00:00
|
|
|
|
|
|
|
DPN_SP_CAPS spcaps;
|
2004-04-07 20:39:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* ------------------- */
|
|
|
|
/* IDirectPlay8Address */
|
|
|
|
/* ------------------- */
|
2014-04-10 23:02:56 +00:00
|
|
|
struct component
|
|
|
|
{
|
|
|
|
struct list entry;
|
|
|
|
|
|
|
|
WCHAR *name;
|
|
|
|
DWORD type;
|
2014-05-13 02:57:47 +00:00
|
|
|
DWORD size;
|
2014-04-10 23:02:56 +00:00
|
|
|
|
|
|
|
union
|
|
|
|
{
|
|
|
|
DWORD value; /* DPNA_DATATYPE_DWORD */
|
|
|
|
GUID guid; /* DPNA_DATATYPE_GUID */
|
|
|
|
WCHAR *string; /* DPNA_DATATYPE_STRING */
|
|
|
|
char *ansi; /* DPNA_DATATYPE_STRING_ANSI */
|
|
|
|
void *binary; /* DPNA_DATATYPE_BINARY */
|
|
|
|
} data;
|
|
|
|
};
|
2004-04-07 20:39:00 +00:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDirectPlay8Address implementation structure
|
|
|
|
*/
|
|
|
|
struct IDirectPlay8AddressImpl
|
|
|
|
{
|
2014-04-10 23:02:56 +00:00
|
|
|
IDirectPlay8Address IDirectPlay8Address_iface;
|
|
|
|
LONG ref;
|
|
|
|
/* IDirectPlay8Address fields */
|
|
|
|
GUID SP_guid;
|
|
|
|
BOOL init;
|
|
|
|
|
2015-03-11 05:38:59 +00:00
|
|
|
struct component **components;
|
|
|
|
DWORD comp_count;
|
|
|
|
DWORD comp_array_size;
|
2004-04-07 20:39:00 +00:00
|
|
|
};
|
|
|
|
|
2007-07-30 21:41:59 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
* IDirectPlay8LobbiedApplication implementation structure
|
|
|
|
*/
|
|
|
|
struct IDirectPlay8LobbiedApplicationImpl
|
|
|
|
{
|
2014-02-14 03:53:40 +00:00
|
|
|
IDirectPlay8LobbiedApplication IDirectPlay8LobbiedApplication_iface;
|
|
|
|
LONG ref;
|
|
|
|
|
|
|
|
PFNDPNMESSAGEHANDLER msghandler;
|
|
|
|
DWORD flags;
|
|
|
|
void *usercontext;
|
|
|
|
DPNHANDLE *connection;
|
2007-07-30 21:41:59 +00:00
|
|
|
};
|
|
|
|
|
2008-07-22 16:50:14 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
* IDirectPlay8ThreadPool implementation structure
|
|
|
|
*/
|
|
|
|
struct IDirectPlay8ThreadPoolImpl
|
|
|
|
{
|
2017-02-15 04:36:26 +00:00
|
|
|
IDirectPlay8ThreadPool IDirectPlay8ThreadPool_iface;
|
|
|
|
LONG ref;
|
2008-07-22 16:50:14 +00:00
|
|
|
};
|
|
|
|
|
2004-04-07 20:39:00 +00:00
|
|
|
/**
|
|
|
|
* factories
|
|
|
|
*/
|
2023-06-27 10:27:34 +00:00
|
|
|
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);
|
|
|
|
extern HRESULT DPNET_CreateDirectPlay8LobbiedApp(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
|
|
|
|
extern HRESULT DPNET_CreateDirectPlay8ThreadPool(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
|
|
|
|
extern HRESULT DPNET_CreateDirectPlay8LobbyClient(IClassFactory *iface, IUnknown *pUnkOuter, REFIID riid, void **ppobj);
|
|
|
|
|
|
|
|
extern void init_dpn_sp_caps(DPN_SP_CAPS *dpnspcaps);
|
|
|
|
extern void init_winsock(void);
|
2017-02-09 06:45:53 +00:00
|
|
|
extern HRESULT enum_services_providers(const GUID * const service, DPN_SERVICE_PROVIDER_INFO * const info_buffer,
|
2023-06-27 10:27:34 +00:00
|
|
|
DWORD * const buf_size, DWORD * const returned);
|
2014-02-14 04:37:23 +00:00
|
|
|
|
2004-04-08 04:38:26 +00: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 20:39:00 +00:00
|
|
|
#endif
|