name_server.h 2.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/*
 * 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
16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17
 */
18 19 20 21

#ifndef __WINE_DPLAYX_NAMESERVER
#define __WINE_DPLAYX_NAMESERVER

22 23 24 25
#include <stdarg.h>

#include "windef.h"
#include "winbase.h"
26
#include "dplay.h"
27
#include "wine/dplaysp.h"
28 29
#include "dplayx_messages.h"
#include "dplay_global.h"
30

31 32
void NS_SetLocalComputerAsNameServer( LPCDPSESSIONDESC2 lpsd, LPVOID lpNSInfo );
void NS_AddRemoteComputerAsNameServer( LPCVOID lpNSAddrHdr,
33
                                       DWORD dwHdrSize,
34
                                       LPCDPMSG_ENUMSESSIONSREPLY lpcMsg,
35 36
                                       LPVOID lpNSInfo );
LPVOID NS_GetNSAddr( LPVOID lpNSInfo );
37 38
DWORD NS_GetNsMagic( LPVOID lpNSInfo );
void NS_SetLocalAddr( LPVOID lpNSInfo, LPCVOID lpHdr, DWORD dwHdrSize );
39

40
void NS_ReplyToEnumSessionsRequest( LPCVOID lpcMsg,
41 42
                                    LPVOID* lplpReplyData,
                                    LPDWORD lpdwReplySize,
43 44 45 46
                                    IDirectPlay2Impl* lpDP );

HRESULT NS_SendSessionRequestBroadcast( LPCGUID lpcGuid,
                                        DWORD dwFlags,
47
                                        const SPINITDATA *lpSpData );
48

49 50 51

BOOL NS_InitializeSessionCache( LPVOID* lplpNSInfo );
void NS_DeleteSessionCache( LPVOID lpNSInfo );
52 53
void NS_InvalidateSessionCache( LPVOID lpNSInfo );

54 55 56

void NS_ResetSessionEnumeration( LPVOID lpNSInfo );
LPDPSESSIONDESC2 NS_WalkSessions( LPVOID lpNSInfo );
57
void NS_PruneSessionCache( LPVOID lpNSInfo );
58 59

#endif /* __WINE_DPLAYX_NAMESERVER */