Commit | Line | Data |
---|---|---|
19facd85 TJ |
1 | /* |
2 | Copyright (C) 2006 by Intra2net AG - Gerd v. Egidy | |
3 | ||
4 | The software in this package is distributed under the GNU General | |
5 | Public License version 2 (with a special exception described below). | |
6 | ||
7 | A copy of GNU General Public License (GPL) is included in this distribution, | |
8 | in the file COPYING.GPL. | |
9 | ||
10 | As a special exception, if other files instantiate templates or use macros | |
11 | or inline functions from this file, or you compile this file and link it | |
12 | with other works to produce a work based on this file, this file | |
13 | does not by itself cause the resulting work to be covered | |
14 | by the GNU General Public License. | |
15 | ||
16 | However the source code for this file must still be made available | |
17 | in accordance with section (3) of the GNU General Public License. | |
18 | ||
19 | This exception does not invalidate any other reasons why a work based | |
20 | on this file might be covered by the GNU General Public License. | |
21 | */ | |
a11e19b7 GE |
22 | #ifndef __LIBT2N_TYPES |
23 | #define __LIBT2N_TYPES | |
24 | ||
25 | namespace libt2n | |
26 | { | |
27 | ||
94247295 | 28 | /// possible levels for logging |
d535333f | 29 | enum log_level_values { none=0, error=1, debug=2, fulldebug=3 }; |
94247295 GE |
30 | |
31 | /// possible types of a socket (tcp and unix) | |
a11e19b7 GE |
32 | enum socket_type_value { tcp_s, unix_s }; |
33 | ||
28cb45a5 GE |
34 | /// possible events for callback, __events_end must be the last event and must not be used |
35 | /// for anything else than marking the end | |
6cda58a6 | 36 | enum callback_event_type { new_connection=0, connection_closed, connection_deleted, __events_end }; |
28cb45a5 | 37 | |
a11e19b7 GE |
38 | } |
39 | ||
40 | #endif |