/[LeafOK_CVS]/pvpgn-1.7.4/src/bnetd/watch.h
ViewVC logotype

Contents of /pvpgn-1.7.4/src/bnetd/watch.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Tue Jun 6 03:41:37 2006 UTC (19 years, 9 months ago) by sysadm
Branch: GNU, MAIN
CVS Tags: pvpgn_1-7-4-0_MIL, arelease, HEAD
Changes since 1.1: +0 -0 lines
Content type: text/x-chdr
no message

1 /*
2 * Copyright (C) 1999 Ross Combs (rocombs@cs.nmsu.edu)
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18 #ifndef INCLUDED_WATCH_TYPES
19 #define INCLUDED_WATCH_TYPES
20
21 #ifdef WATCH_INTERNAL_ACCESS
22
23 #ifdef JUST_NEED_TYPES
24 # include "account.h"
25 # include "connection.h"
26 #else
27 # define JUST_NEED_TYPES
28 # include "account.h"
29 # include "connection.h"
30 # undef JUST_NEED_TYPES
31 #endif
32 #include "common/tag.h"
33
34 #endif
35
36 typedef enum
37 {
38 watch_event_login=1,
39 watch_event_logout=2,
40 watch_event_joingame=4,
41 watch_event_leavegame=8
42 } t_watch_event;
43
44 #ifdef WATCH_INTERNAL_ACCESS
45 typedef struct
46 {
47 t_connection * owner; /* who to notify */
48 t_account * who; /* when this account */
49 t_watch_event what; /* does one of these things */
50 t_clienttag clienttag;
51 } t_watch_pair;
52 #endif
53
54 #endif
55
56 #ifndef JUST_NEED_TYPES
57 #ifndef INCLUDED_WATCH_PROTOS
58 #define INCLUDED_WATCH_PROTOS
59
60 #define JUST_NEED_TYPES
61 #include "account.h"
62 #include "connection.h"
63 #undef JUST_NEED_TYPES
64
65 extern int watchlist_create(void);
66 extern int watchlist_destroy(void);
67 extern int watchlist_add_events(t_connection * owner, t_account * who, t_clienttag clienttag, t_watch_event events);
68 extern int watchlist_del_events(t_connection * owner, t_account * who, t_clienttag clienttag, t_watch_event events);
69 extern int watchlist_del_all_events(t_connection * owner);
70 extern int watchlist_del_by_account(t_account * account);
71 extern int watchlist_notify_event(t_account * who, char const * gamename, t_clienttag clienttag, t_watch_event event);
72
73 #endif
74 #endif

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1