OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
peerGlobalCallbacks.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 _PEERGLOBALCALLBACKS_H_
12#define _PEERGLOBALCALLBACKS_H_
13
14/*************
15** INCLUDES **
16*************/
17#include "peerMain.h"
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/************
24** DEFINES **
25************/
26#define PI_UTM_LAUNCH "GML"
27#define PI_UTM_XPING "PNG"
28
29/**************
30** FUNCTIONS **
31**************/
32
33/* Chat.
34*******/
35#ifndef GSI_UNICODE
36#define piChatDisconnected piChatDisconnectedA
37#define piChatPrivateMessage piChatPrivateMessageA
38#else
39#define piChatDisconnected piChatDisconnectedW
40#define piChatPrivateMessage piChatPrivateMessageW
41#endif
42
43// Include both forms here so CodeWarrior will have it's happy prototypes
44void piChatDisconnectedA(CHAT chat, const char * reason, PEER peer);
45void piChatDisconnectedW(CHAT chat, const unsigned short * reason, PEER peer);
46
47void piChatPrivateMessageA(CHAT chat, const char * user, const char * message, int type, PEER peer);
48void piChatPrivateMessageW(CHAT chat, const unsigned short * user, const unsigned short * message, int type, PEER peer);
49
50void piSetChannelCallbacks(PEER peer, chatChannelCallbacks * channelCallbacks);
51
52#ifdef __cplusplus
53}
54#endif
55
56#endif
Definition chat.h:349