Switch time() calls to monotonic clock calls (#7597)
[libt2n] / src / types.hxx
CommitLineData
19facd85
TJ
1/*
2Copyright (C) 2006 by Intra2net AG - Gerd v. Egidy
3
4The software in this package is distributed under the GNU General
5Public License version 2 (with a special exception described below).
6
7A copy of GNU General Public License (GPL) is included in this distribution,
8in the file COPYING.GPL.
9
10As a special exception, if other files instantiate templates or use macros
11or inline functions from this file, or you compile this file and link it
12with other works to produce a work based on this file, this file
13does not by itself cause the resulting work to be covered
14by the GNU General Public License.
15
16However the source code for this file must still be made available
17in accordance with section (3) of the GNU General Public License.
18
19This exception does not invalidate any other reasons why a work based
20on this file might be covered by the GNU General Public License.
21*/
a11e19b7
GE
22#ifndef __LIBT2N_TYPES
23#define __LIBT2N_TYPES
24
25namespace libt2n
26{
27
94247295 28/// possible levels for logging
d535333f 29enum 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
32enum 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 36enum callback_event_type { new_connection=0, connection_closed, connection_deleted, __events_end };
28cb45a5 37
a11e19b7
GE
38}
39
40#endif