Debian Codegraph @

src/bnetd/timer.h

raw symbols SCIP
1 /*
2 * Copyright (C) 1999 Ross Combs ([email protected])
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_TIMER_TYPEScxx . . $ `src/bnetd/timer.h:19:9`!
19 #define INCLUDED_TIMER_TYPEScxx . . $ `src/bnetd/timer.h:19:9`!
20
21 #include <ctime>
22
23 #ifdef JUST_NEED_TYPEScxx . . $ `src/bnetd/connection.h:235:9`!
24 # include "connection.h"cxx . . $ `<file>/src/bnetd/connection.h`/
25 #else
26 # define JUST_NEED_TYPEScxx . . $ `src/bnetd/timer.h:26:10`!
27 # include "connection.h"cxx . . $ `<file>/src/bnetd/connection.h`/
28 # undef JUST_NEED_TYPEScxx . . $ `src/bnetd/timer.h:26:10`!
29 #endif
30 #include "common/elist.h"cxx . . $ `<file>/src/common/elist.h`/
31
32 namespace pvpgncxx . . $ pvpgn/
33 {
34
35 namespace bnetdcxx . . $ pvpgn/bnetd/
36 {
37
38 typedef unioncxx . . $ pvpgn/bnetd/$anonymous_type_64e82d6b10ad28f9_0#
39 {
40 unsigned long ncxx . . $ pvpgn/bnetd/$anonymous_type_64e82d6b10ad28f9_0#n.;
41 void * pcxx . . $ pvpgn/bnetd/$anonymous_type_64e82d6b10ad28f9_0#p.;
42 } t_timer_datacxx . . $ pvpgn/bnetd/t_timer_data#;
43
44 typedef void(*t_timer_cbcxx . . $ pvpgn/bnetd/t_timer_cb#)(t_connection * owner, stdcxx . . $ std/::time_tcxx . . $ std/time_t# when, t_timer_datacxx . . $ pvpgn/bnetd/t_timer_data# data);
45
46 typedef struct timer_structcxx . . $ pvpgn/bnetd/timer_struct#
47 #ifdef TIMER_INTERNAL_ACCESScxx . . $ `src/bnetd/timer.cpp:19:9`!
48 {
49 t_connection * ownercxx . . $ pvpgn/bnetd/timer_struct#owner.; /* who to notify */
50 std::time_tcxx . . $ std/time_t# whencxx . . $ pvpgn/bnetd/timer_struct#when.; /* when the timer expires */
51 t_timer_cbcxx . . $ pvpgn/bnetd/t_timer_cb# cbcxx . . $ pvpgn/bnetd/timer_struct#cb.; /* what to call */
52 t_timer_datacxx . . $ pvpgn/bnetd/t_timer_data# datacxx . . $ pvpgn/bnetd/timer_struct#data.; /* data argument */
53 t_elistcxx . . $ pvpgn/t_elist# ownerscxx . . $ pvpgn/bnetd/timer_struct#owners.; /* list to the setup timers of same owner */
54 t_elistcxx . . $ pvpgn/t_elist# timerscxx . . $ pvpgn/bnetd/timer_struct#timers.; /* timers list, used for final cleaning */
55 }
56 #endif
57 t_timercxx . . $ pvpgn/bnetd/t_timer#;
58
59 }
60
61 }
62
63 #endif
64
65 #ifndef JUST_NEED_TYPEScxx . . $ `src/bnetd/connection.h:235:9`!
66 #ifndef INCLUDED_TIMER_PROTOS
67 #define INCLUDED_TIMER_PROTOScxx . . $ `src/bnetd/timer.h:67:9`!
68
69 #include <ctime>
70
71 #define JUST_NEED_TYPEScxx . . $ `src/bnetd/timer.h:71:9`!
72 #include "connection.h"cxx . . $ `<file>/src/bnetd/connection.h`/
73 #undef JUST_NEED_TYPEScxx . . $ `src/bnetd/timer.h:71:9`!
74
75 namespace pvpgncxx . . $ pvpgn/
76 {
77
78 namespace bnetdcxx . . $ pvpgn/bnetd/
79 {
80
81 extern int timerlist_createcxx . . $ pvpgn/bnetd/timerlist_create(b126dc7c1de90089).(void);
82 extern int timerlist_destroycxx . . $ pvpgn/bnetd/timerlist_destroy(b126dc7c1de90089).(void);
83 extern int timerlist_add_timercxx . . $ pvpgn/bnetd/timerlist_add_timer(f16dcbfb825fabda).(t_connection * owner, stdcxx . . $ std/::time_tcxx . . $ std/time_t# when, t_timer_cbcxx . . $ pvpgn/bnetd/t_timer_cb# cb, t_timer_datacxx . . $ pvpgn/bnetd/t_timer_data# data);
84 extern int timerlist_del_all_timerscxx . . $ pvpgn/bnetd/timerlist_del_all_timers(c4dfbc2386fe4fc3).(t_connection * owner);
85 extern int timerlist_check_timerscxx . . $ pvpgn/bnetd/timerlist_check_timers(a9e4e82268fd7bfa).(stdcxx . . $ std/::time_tcxx . . $ std/time_t# when);
86
87 }
88
89 }
90
91 #endif
92 #endif