summaryrefslogtreecommitdiffstats
path: root/tsheaders.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2013-03-05 17:39:48 +0100
committermanuel <manuel@mausz.at>2013-03-05 17:39:48 +0100
commit310a2c101b32a5e71a616027b6a1b788a341bc02 (patch)
treea871e1dda8b1de141ae1400ba666fe3b1de96361 /tsheaders.h
downloadtsclient-310a2c101b32a5e71a616027b6a1b788a341bc02.tar.gz
tsclient-310a2c101b32a5e71a616027b6a1b788a341bc02.tar.bz2
tsclient-310a2c101b32a5e71a616027b6a1b788a341bc02.zip
initial GPLv2 releaseHEADmaster
Diffstat (limited to 'tsheaders.h')
-rw-r--r--tsheaders.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/tsheaders.h b/tsheaders.h
new file mode 100644
index 0000000..d451b8c
--- /dev/null
+++ b/tsheaders.h
@@ -0,0 +1,62 @@
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; version 2 of the License.
5 *
6 * This program is distributed in the hope that it will be useful,
7 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 * GNU General Public License for more details.
10 *
11 * You should have received a copy of the GNU General Public License
12 * along with this program; if not, write to the Free Software
13 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
14 *
15 * Authors: Manuel Mausz (manuel@mausz.at)
16 * Christian Raschko (c.raschko@netcore.at)
17 */
18
19#ifndef _TSDAEMON_H
20#define _TSDAEMON_H
21
22#include <wx/dynarray.h>
23#include <wx/thread.h>
24
25// Forward class declarations
26class TSClient;
27class TSCommand;
28class TSConnectionThread;
29class TSServer;
30class TSChannel;
31class TSPlayer;
32//only for internal use
33struct TSCmd;
34
35//define ARRAY_PTR
36//equivalent to stl::vector<TSPlayer*>
37WX_DEFINE_ARRAY_PTR(TSPlayer*, TSpPlayerArray);
38
39//define ARRAY_PTR
40//equivalent to stl::vector<TSChannel*>
41WX_DEFINE_ARRAY_PTR(TSChannel*, TSpChannelArray);
42
43//define ARRAY_PTR
44//equivalent to stl::vector<TSCommand*>
45WX_DEFINE_ARRAY_PTR(TSCommand*, TSpCommandArray);
46
47#if SIZEOF_INT == 4
48# define TS_NUM_MAX UINT_MAX
49#elif SIZEOF_INT == 2
50# define TS_NUM_MAX ULONG_MAX
51#else
52# error "No 32bit int type on this platform"
53#endif
54
55// Include classes, for declarations
56#include "tschannel.h"
57#include "tsclient.h"
58#include "tscommand.h"
59#include "tsconnectionthread.h"
60#include "tsplayer.h"
61
62#endif