2002-03-10 00:29:33 +01: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
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
2000-03-12 21:18:33 +01:00
|
|
|
|
|
|
|
#ifndef __WINE_DPLAYX_NAMESERVER
|
|
|
|
#define __WINE_DPLAYX_NAMESERVER
|
|
|
|
|
|
|
|
#include "dplay.h"
|
2000-08-25 23:58:05 +02:00
|
|
|
#include "dplaysp.h"
|
|
|
|
#include "dplayx_messages.h"
|
|
|
|
#include "dplay_global.h"
|
2000-03-12 21:18:33 +01:00
|
|
|
|
2001-04-12 23:10:54 +02:00
|
|
|
void NS_SetLocalComputerAsNameServer( LPCDPSESSIONDESC2 lpsd, LPVOID lpNSInfo );
|
|
|
|
void NS_SetRemoteComputerAsNameServer( LPCDPSESSIONDESC2 lpsd, LPVOID lpNSInfo );
|
|
|
|
void NS_AddRemoteComputerAsNameServer( LPCVOID lpNSAddrHdr,
|
2000-08-25 23:58:05 +02:00
|
|
|
DWORD dwHdrSize,
|
|
|
|
LPDPMSG_ENUMSESSIONSREPLY lpMsg,
|
|
|
|
LPVOID lpNSInfo );
|
|
|
|
LPVOID NS_GetNSAddr( LPVOID lpNSInfo );
|
2001-04-12 23:10:54 +02:00
|
|
|
DWORD NS_GetNsMagic( LPVOID lpNSInfo );
|
|
|
|
DWORD NS_GetOtherMagic( LPVOID lpNSInfo );
|
|
|
|
void NS_SetLocalAddr( LPVOID lpNSInfo, LPCVOID lpHdr, DWORD dwHdrSize );
|
2000-08-25 23:58:05 +02:00
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
void NS_ReplyToEnumSessionsRequest( LPCVOID lpcMsg,
|
2001-04-12 23:10:54 +02:00
|
|
|
LPVOID* lplpReplyData,
|
|
|
|
LPDWORD lpdwReplySize,
|
2000-08-25 23:58:05 +02:00
|
|
|
IDirectPlay2Impl* lpDP );
|
|
|
|
|
|
|
|
HRESULT NS_SendSessionRequestBroadcast( LPCGUID lpcGuid,
|
|
|
|
DWORD dwFlags,
|
|
|
|
LPSPINITDATA lpSpData );
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-05-27 00:26:30 +02:00
|
|
|
|
|
|
|
BOOL NS_InitializeSessionCache( LPVOID* lplpNSInfo );
|
|
|
|
void NS_DeleteSessionCache( LPVOID lpNSInfo );
|
2000-08-25 23:58:05 +02:00
|
|
|
void NS_InvalidateSessionCache( LPVOID lpNSInfo );
|
|
|
|
|
2000-05-27 00:26:30 +02:00
|
|
|
|
|
|
|
void NS_ResetSessionEnumeration( LPVOID lpNSInfo );
|
|
|
|
LPDPSESSIONDESC2 NS_WalkSessions( LPVOID lpNSInfo );
|
2000-08-25 23:58:05 +02:00
|
|
|
void NS_PruneSessionCache( LPVOID lpNSInfo );
|
2000-03-12 21:18:33 +01:00
|
|
|
|
|
|
|
#endif /* __WINE_DPLAYX_NAMESERVER */
|