libfswatch  1.9.3
libfswatch_types.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Enrico M. Crisostomo
3  *
4  * This program is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU General Public License as published by the Free Software
6  * Foundation; either version 3, or (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11  * details.
12  *
13  * You should have received a copy of the GNU General Public License along with
14  * this program. If not, see <http://www.gnu.org/licenses/>.
15  */
28 #ifndef LIBFSWATCH_TYPES_H
29 #define LIBFSWATCH_TYPES_H
30 
31 #ifdef __cplusplus
32 extern "C"
33 {
34 #endif
35 
39 typedef unsigned int FSW_HANDLE;
40 
44 typedef int FSW_STATUS;
45 
46 #define FSW_INVALID_HANDLE -1
47 
48 #if defined(HAVE_CXX_THREAD_LOCAL)
49 # define FSW_THREAD_LOCAL thread_local
50 #else
51 # define FSW_THREAD_LOCAL
52 #endif
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif /* LIBFSWATCH_TYPES_H */
int FSW_STATUS
Status of a library call.
Definition: libfswatch_types.h:44
unsigned int FSW_HANDLE
Handle to a monitoring session.
Definition: libfswatch_types.h:39