Servus  1.5.1
C++ network oriented utilities including a zeroconf implementation
types.h
1 /* Copyright (c) 2015-2017, Human Brain Project
2  * Stefan.Eilemann@epfl.ch
3  * Juan Hernando <jhernando@fi.upm.es>
4  *
5  * This file is part of Servus <https://github.com/HBPVIS/Servus>
6  *
7  * This library is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU Lesser General Public License version 3.0 as published
9  * by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14  * details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this library; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20 
21 #ifndef SERVUS_TYPES_H
22 #define SERVUS_TYPES_H
23 
24 #include <servus/defines.h>
25 #include <sys/types.h>
26 #ifndef _MSC_VER
27 #include <stdint.h>
28 #endif
29 #ifdef _WIN32
30 #include <basetsd.h>
31 #ifdef _MSC_VER
32 typedef UINT64 uint64_t;
33 typedef INT64 int64_t;
34 typedef UINT32 uint32_t;
35 typedef INT32 int32_t;
36 typedef UINT16 uint16_t;
37 typedef INT16 int16_t;
38 typedef UINT8 uint8_t;
39 typedef INT8 int8_t;
40 #ifndef HAVE_SSIZE_T
41 typedef SSIZE_T ssize_t;
42 #define HAVE_SSIZE_T
43 #endif
44 #endif // Win32, Visual C++
45 #endif // Win32
46 
47 #include <string>
48 #include <vector>
49 
50 namespace servus
51 {
52 class Listener;
53 class Serializable;
54 class Servus;
55 class URI;
56 class uint128_t;
57 
58 typedef unsigned long long ull_t;
59 typedef std::vector<std::string> Strings;
60 }
61 
62 #endif
Includes compile-time defines of Servus.