libsysactivity  0.6.5
global.h
1 /*
2  * libsysactivity
3  * http://sourceforge.net/projects/libsysactivity/
4  * Copyright (c) 2011 Carlos Olmedo Escobar <carlos.olmedo.e@gmail.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef SA_GLOBAL_H_
22 #define SA_GLOBAL_H_
23 
24 #ifndef LIBSYSACTIVITY_H_
25 #warning You should not include this file directly from your source code. Include <libsysactivity/libsysactivity.h> instead.
26 #endif
27 
28 #define SA_VERSION_MAJOR 0
29 #define SA_VERSION_SMALL 6
30 #define SA_VERSION_MINOR 5
31 
32 #if __GNUC__ >= 4
33  #define SA_EXPORT __attribute__ ((visibility("default")))
34 #else
35  #define SA_EXPORT
36 #endif
37 
38 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
39  #define SA_HOT __attribute__ ((hot))
40 #else
41  #define SA_HOT
42 #endif
43 
44 #define SA_NONNULL __attribute__((nonnull))
45 
46 #if __STDC_VERSION__ < 199901L
47  #define SA_INLINE inline
48 #else
49  #define SA_INLINE //In C99, inline means that a function's definition is provided only for inlining, and that there is another definition (without inline) somewhere else in the program
50 #endif
51 
52 #include "cpu.h"
53 #include "disk.h"
54 #include "memory.h"
55 #include "network.h"
56 #include "process.h"
57 #include "swap.h"
58 
59 #endif /* SA_CPU_H_ */