2002-03-09 23:29:33 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2000 Peter Hunnisett
|
|
|
|
*
|
|
|
|
* 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
|
2002-03-09 23:29:33 +00:00
|
|
|
*/
|
2000-03-12 20:18:33 +00:00
|
|
|
|
|
|
|
#ifndef __WINE_DPLAYX_NAMESERVER
|
|
|
|
#define __WINE_DPLAYX_NAMESERVER
|
|
|
|
|
2003-09-05 23:08:26 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
2000-03-12 20:18:33 +00:00
|
|
|
#include "dplay.h"
|
2008-07-22 19:23:05 +00:00
|
|
|
#include "wine/dplaysp.h"
|
2000-08-25 21:58:05 +00:00
|
|
|
#include "dplayx_messages.h"
|
|
|
|
#include "dplay_global.h"
|
2000-03-12 20:18:33 +00:00
|
|
|
|
2011-05-13 15:05:24 +00:00
|
|
|
void NS_SetLocalComputerAsNameServer( LPCDPSESSIONDESC2 lpsd, LPVOID lpNSInfo ) DECLSPEC_HIDDEN;
|
2001-04-12 21:10:54 +00:00
|
|
|
void NS_AddRemoteComputerAsNameServer( LPCVOID lpNSAddrHdr,
|
2000-08-25 21:58:05 +00:00
|
|
|
DWORD dwHdrSize,
|
2006-09-09 23:14:23 +00:00
|
|
|
LPCDPMSG_ENUMSESSIONSREPLY lpcMsg,
|
2011-05-13 15:05:24 +00:00
|
|
|
LPVOID lpNSInfo ) DECLSPEC_HIDDEN;
|
|
|
|
LPVOID NS_GetNSAddr( LPVOID lpNSInfo ) DECLSPEC_HIDDEN;
|
|
|
|
DWORD NS_GetNsMagic( LPVOID lpNSInfo ) DECLSPEC_HIDDEN;
|
|
|
|
void NS_SetLocalAddr( LPVOID lpNSInfo, LPCVOID lpHdr, DWORD dwHdrSize ) DECLSPEC_HIDDEN;
|
2000-08-25 21:58:05 +00:00
|
|
|
|
2002-05-31 23:06:46 +00:00
|
|
|
void NS_ReplyToEnumSessionsRequest( LPCVOID lpcMsg,
|
2001-04-12 21:10:54 +00:00
|
|
|
LPVOID* lplpReplyData,
|
|
|
|
LPDWORD lpdwReplySize,
|
2011-05-13 15:05:24 +00:00
|
|
|
IDirectPlay2Impl* lpDP ) DECLSPEC_HIDDEN;
|
2000-08-25 21:58:05 +00:00
|
|
|
|
|
|
|
HRESULT NS_SendSessionRequestBroadcast( LPCGUID lpcGuid,
|
|
|
|
DWORD dwFlags,
|
2011-05-13 15:05:24 +00:00
|
|
|
const SPINITDATA *lpSpData ) DECLSPEC_HIDDEN;
|
2002-05-31 23:06:46 +00:00
|
|
|
|
2000-05-26 22:26:30 +00:00
|
|
|
|
2011-05-13 15:05:24 +00:00
|
|
|
BOOL NS_InitializeSessionCache( LPVOID* lplpNSInfo ) DECLSPEC_HIDDEN;
|
|
|
|
void NS_DeleteSessionCache( LPVOID lpNSInfo ) DECLSPEC_HIDDEN;
|
|
|
|
void NS_InvalidateSessionCache( LPVOID lpNSInfo ) DECLSPEC_HIDDEN;
|
2000-08-25 21:58:05 +00:00
|
|
|
|
2000-05-26 22:26:30 +00:00
|
|
|
|
2011-05-13 15:05:24 +00:00
|
|
|
void NS_ResetSessionEnumeration( LPVOID lpNSInfo ) DECLSPEC_HIDDEN;
|
|
|
|
LPDPSESSIONDESC2 NS_WalkSessions( LPVOID lpNSInfo ) DECLSPEC_HIDDEN;
|
|
|
|
void NS_PruneSessionCache( LPVOID lpNSInfo ) DECLSPEC_HIDDEN;
|
2000-03-12 20:18:33 +00:00
|
|
|
|
|
|
|
#endif /* __WINE_DPLAYX_NAMESERVER */
|