YARP
Yet Another Robot Platform
api.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2019 Istituto Italiano di Tecnologia (IIT)
3  * Copyright (C) 2006-2010 RobotCub Consortium
4  * All rights reserved.
5  *
6  * This software may be modified and distributed under the terms of the
7  * BSD-3-Clause license. See the accompanying LICENSE file for details.
8  */
9 
10 #ifndef YARP_OS_API_H
11 #define YARP_OS_API_H
12 
13 #include <yarp/conf/api.h>
14 #ifndef YARP_OS_API
15 # ifdef YARP_OS_EXPORTS
16 # define YARP_OS_API YARP_EXPORT
17 # define YARP_OS_EXTERN YARP_EXPORT_EXTERN
18 # else
19 # define YARP_OS_API YARP_IMPORT
20 # define YARP_OS_EXTERN YARP_IMPORT_EXTERN
21 # endif
22 # define YARP_OS_DEPRECATED_API YARP_DEPRECATED_API
23 # define YARP_OS_DEPRECATED_API_MSG(X) YARP_DEPRECATED_API_MSG(X)
24 #endif
25 
26 #ifndef YARP_init_API
27 # ifdef YARP_init_EXPORTS
28 # define YARP_init_API YARP_EXPORT
29 # define YARP_init_EXTERN YARP_EXPORT_EXTERN
30 # else
31 # define YARP_init_API YARP_IMPORT
32 # define YARP_init_EXTERN YARP_IMPORT_EXTERN
33 # endif
34 # define YARP_init_DEPRECATED_API YARP_DEPRECATED_API
35 # define YARP_init_DEPRECATED_API_MSG(X) YARP_DEPRECATED_API_MSG(X)
36 #endif
37 
38 #ifndef YARP_OS_impl_API
39 // FIXME YARP should not export symbols from os/impl.
40 // Unfortunately at the moment, methods from impl are used in other
41 // internal libraries, forcing us to export them in the library
42 # ifdef YARP_FILTER_impl
43 # define YARP_OS_impl_API
44 # else
45 # define YARP_OS_impl_API YARP_OS_API
46 # endif
47 #endif
48 
49 #endif // YARP_OS_API_H