Debian Codegraph @

lib/wp/defs.h

raw
1 /* WirePlumber
2 *
3 * Copyright © 2020 Collabora Ltd.
4 * @author George Kiagiadakis <[email protected]>
5 *
6 * SPDX-License-Identifier: MIT
7 */
8
9 #ifndef __WIREPLUMBER_DEFS_H__
10 #define __WIREPLUMBER_DEFS_H__
11
12 #if defined(__GNUC__)
13 # define WP_PLUGIN_EXPORT __attribute__ ((visibility ("default")))
14 # define WP_API_EXPORT extern __attribute__ ((visibility ("default")))
15 #else
16 # define WP_PLUGIN_EXPORT
17 # define WP_API_EXPORT extern
18 #endif
19
20 #define WP_API_IMPORT extern
21
22 #ifndef WP_API
23 # ifdef BUILDING_WP
24 # define WP_API WP_API_EXPORT
25 # else
26 # define WP_API WP_API_IMPORT
27 # endif
28 #endif
29
30 #ifndef WP_PRIVATE_API
31 # ifdef BUILDING_WP
32 # define WP_PRIVATE_API
33 # else
34 # define WP_PRIVATE_API __attribute__ ((deprecated ("Private API")))
35 # endif
36 #endif
37
38 #define WP_PADDING(n) gpointer _wp_padding[n];
39
40 #endif