libsysactivity 0.6.2
src/common/global.h
00001 /*
00002  * libsysactivity
00003  * http://sourceforge.net/projects/libsysactivity/
00004  * Copyright (c) 2011 Carlos Olmedo Escobar <carlos.olmedo.e@gmail.com>
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00019  */
00020 
00021 #ifndef SA_GLOBAL_H_
00022 #define SA_GLOBAL_H_
00023 
00024 #ifndef LIBSYSACTIVITY_H_
00025 #warning You should not include this file directly from your source code. Include <libsysactivity/libsysactivity.h> instead.
00026 #endif
00027 
00028 #define SA_VERSION_MAJOR 0
00029 #define SA_VERSION_SMALL 6
00030 #define SA_VERSION_MINOR 2
00031 
00032 #if __GNUC__ >= 4
00033         #define SA_EXPORT __attribute__ ((visibility("default")))
00034 #else
00035         #define SA_EXPORT
00036 #endif
00037 
00038 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
00039         #define SA_HOT __attribute__ ((hot))
00040 #else
00041         #define SA_HOT
00042 #endif
00043 
00044 #define SA_NONNULL __attribute__((nonnull))
00045 
00046 #if __STDC_VERSION__ < 199901L
00047         #define SA_INLINE inline
00048 #else
00049         #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
00050 #endif
00051 
00052 #include "cpu.h"
00053 #include "disk.h"
00054 #include "memory.h"
00055 #include "network.h"
00056 #include "process.h"
00057 #include "swap.h"
00058 
00059 #endif /* SA_CPU_H_ */
 All Data Structures Variables