diff options
| author | manuel <manuel@mausz.at> | 2013-03-05 17:39:48 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2013-03-05 17:39:48 +0100 |
| commit | 310a2c101b32a5e71a616027b6a1b788a341bc02 (patch) | |
| tree | a871e1dda8b1de141ae1400ba666fe3b1de96361 /tsheaders.h | |
| download | tsclient-310a2c101b32a5e71a616027b6a1b788a341bc02.tar.gz tsclient-310a2c101b32a5e71a616027b6a1b788a341bc02.tar.bz2 tsclient-310a2c101b32a5e71a616027b6a1b788a341bc02.zip | |
Diffstat (limited to 'tsheaders.h')
| -rw-r--r-- | tsheaders.h | 62 |
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 | ||
| 26 | class TSClient; | ||
| 27 | class TSCommand; | ||
| 28 | class TSConnectionThread; | ||
| 29 | class TSServer; | ||
| 30 | class TSChannel; | ||
| 31 | class TSPlayer; | ||
| 32 | //only for internal use | ||
| 33 | struct TSCmd; | ||
| 34 | |||
| 35 | //define ARRAY_PTR | ||
| 36 | //equivalent to stl::vector<TSPlayer*> | ||
| 37 | WX_DEFINE_ARRAY_PTR(TSPlayer*, TSpPlayerArray); | ||
| 38 | |||
| 39 | //define ARRAY_PTR | ||
| 40 | //equivalent to stl::vector<TSChannel*> | ||
| 41 | WX_DEFINE_ARRAY_PTR(TSChannel*, TSpChannelArray); | ||
| 42 | |||
| 43 | //define ARRAY_PTR | ||
| 44 | //equivalent to stl::vector<TSCommand*> | ||
| 45 | WX_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 | ||
