OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
peerKeys.h
1/*
2GameSpy Peer SDK
3Dan "Mr. Pants" Schoenblum
4dan@gamespy.com
5
6Copyright 1999-2007 GameSpy Industries, Inc
7
8devsupport@gamespy.com
9*/
10
11#ifndef _PEERKEYS_H_
12#define _PEERKEYS_H_
13
14/*************
15** INCLUDES **
16*************/
17#include "peerMain.h"
18#include "peerPlayers.h"
19
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25/**************
26** FUNCTIONS **
27**************/
28PEERBool piKeysInit(PEER peer);
29void piKeysCleanup(PEER peer);
30const char * piGetGlobalWatchKeyA(PEER peer, const char * nick, const char * key);
31const char * piGetRoomWatchKeyA(PEER peer, RoomType roomType, const char * nick, const char * key);
32const unsigned short * piGetGlobalWatchKeyW(PEER peer, const unsigned short * nick, const unsigned short * key);
33const unsigned short * piGetRoomWatchKeyW(PEER peer, RoomType roomType, const unsigned short * nick, const unsigned short * key);
34void piSetGlobalWatchKeys(PEER peer, RoomType roomType, int num, const char ** keys, PEERBool addKeys);
35void piSetRoomWatchKeys(PEER peer, RoomType roomType, int num, const char ** keys, PEERBool addKeys);
36void piGlobalKeyChanged(PEER peer, const char * nick, const char * key, const char * value);
37void piRoomKeyChanged(PEER peer, RoomType roomType, const char * nick, const char * key, const char * value);
38void piKeyCachePlayerChangedNick(PEER peer, const char * oldNick, const char * newNick);
39void piKeyCachePlayerLeftRoom(PEER peer, RoomType roomType, piPlayer * player);
40void piKeyCacheLeftRoom(PEER peer, RoomType roomType);
41void piKeyCacheRefreshPlayer(PEER peer, RoomType roomType, const char * nick);
42void piKeyCacheRefreshRoom(PEER peer, RoomType roomType);
43void piKeyCacheCleanse(PEER peer);
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif
Definition peerPlayers.h:34