Annotate all public symbols
We are going to switch to compiler annotations to determine the visibility of the symbols.
This commit is contained in:
@ -92,6 +92,10 @@
|
||||
#define CLUTTER_PRIVATE_FIELD(x) clutter_private_ ## x
|
||||
#endif
|
||||
|
||||
#ifndef _CLUTTER_EXTERN
|
||||
#define _CLUTTER_EXTERN extern
|
||||
#endif
|
||||
|
||||
/* these macros are used to mark deprecated functions, and thus have to be
|
||||
* exposed in a public header.
|
||||
*
|
||||
@ -99,15 +103,17 @@
|
||||
* and G_DEPRECATED_FOR, or use your own wrappers around them.
|
||||
*/
|
||||
#ifdef CLUTTER_DISABLE_DEPRECATION_WARNINGS
|
||||
#define CLUTTER_DEPRECATED
|
||||
#define CLUTTER_DEPRECATED_FOR(f)
|
||||
#define CLUTTER_UNAVAILABLE(maj,min)
|
||||
#define CLUTTER_DEPRECATED _CLUTTER_EXTERN
|
||||
#define CLUTTER_DEPRECATED_FOR(f) _CLUTTER_EXTERN
|
||||
#define CLUTTER_UNAVAILABLE(maj,min) _CLUTTER_EXTERN
|
||||
#else
|
||||
#define CLUTTER_DEPRECATED G_DEPRECATED
|
||||
#define CLUTTER_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f)
|
||||
#define CLUTTER_UNAVAILABLE(maj,min) G_UNAVAILABLE(maj,min)
|
||||
#define CLUTTER_DEPRECATED G_DEPRECATED _CLUTTER_EXTERN
|
||||
#define CLUTTER_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) _CLUTTER_EXTERN
|
||||
#define CLUTTER_UNAVAILABLE(maj,min) G_UNAVAILABLE(maj,min) _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#define CLUTTER_AVAILABLE_IN_ALL _CLUTTER_EXTERN
|
||||
|
||||
/**
|
||||
* CLUTTER_VERSION_MIN_REQUIRED:
|
||||
*
|
||||
@ -168,140 +174,140 @@
|
||||
# define CLUTTER_DEPRECATED_IN_1_0 CLUTTER_DEPRECATED
|
||||
# define CLUTTER_DEPRECATED_IN_1_0_FOR(f) CLUTTER_DEPRECATED_FOR(f)
|
||||
#else
|
||||
# define CLUTTER_DEPRECATED_IN_1_0
|
||||
# define CLUTTER_DEPRECATED_IN_1_0_FOR(f)
|
||||
# define CLUTTER_DEPRECATED_IN_1_0 _CLUTTER_EXTERN
|
||||
# define CLUTTER_DEPRECATED_IN_1_0_FOR(f) _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_0
|
||||
# define CLUTTER_AVAILABLE_IN_1_0 CLUTTER_UNAVAILABLE(1, 0)
|
||||
#else
|
||||
# define CLUTTER_AVAILABLE_IN_1_0
|
||||
# define CLUTTER_AVAILABLE_IN_1_0 _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_2
|
||||
# define CLUTTER_DEPRECATED_IN_1_2 CLUTTER_DEPRECATED
|
||||
# define CLUTTER_DEPRECATED_IN_1_2_FOR(f) CLUTTER_DEPRECATED_FOR(f)
|
||||
#else
|
||||
# define CLUTTER_DEPRECATED_IN_1_2
|
||||
# define CLUTTER_DEPRECATED_IN_1_2_FOR(f)
|
||||
# define CLUTTER_DEPRECATED_IN_1_2 _CLUTTER_EXTERN
|
||||
# define CLUTTER_DEPRECATED_IN_1_2_FOR(f) _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_2
|
||||
# define CLUTTER_AVAILABLE_IN_1_2 CLUTTER_UNAVAILABLE(1, 2)
|
||||
#else
|
||||
# define CLUTTER_AVAILABLE_IN_1_2
|
||||
# define CLUTTER_AVAILABLE_IN_1_2 _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_4
|
||||
# define CLUTTER_DEPRECATED_IN_1_4 CLUTTER_DEPRECATED
|
||||
# define CLUTTER_DEPRECATED_IN_1_4_FOR(f) CLUTTER_DEPRECATED_FOR(f)
|
||||
#else
|
||||
# define CLUTTER_DEPRECATED_IN_1_4
|
||||
# define CLUTTER_DEPRECATED_IN_1_4_FOR(f)
|
||||
# define CLUTTER_DEPRECATED_IN_1_4 _CLUTTER_EXTERN
|
||||
# define CLUTTER_DEPRECATED_IN_1_4_FOR(f) _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_4
|
||||
# define CLUTTER_AVAILABLE_IN_1_4 CLUTTER_UNAVAILABLE(1, 4)
|
||||
#else
|
||||
# define CLUTTER_AVAILABLE_IN_1_4
|
||||
# define CLUTTER_AVAILABLE_IN_1_4 _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_6
|
||||
# define CLUTTER_DEPRECATED_IN_1_6 CLUTTER_DEPRECATED
|
||||
# define CLUTTER_DEPRECATED_IN_1_6_FOR(f) CLUTTER_DEPRECATED_FOR(f)
|
||||
#else
|
||||
# define CLUTTER_DEPRECATED_IN_1_6
|
||||
# define CLUTTER_DEPRECATED_IN_1_6_FOR(f)
|
||||
# define CLUTTER_DEPRECATED_IN_1_6 _CLUTTER_EXTERN
|
||||
# define CLUTTER_DEPRECATED_IN_1_6_FOR(f) _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_6
|
||||
# define CLUTTER_AVAILABLE_IN_1_6 CLUTTER_UNAVAILABLE(1, 6)
|
||||
#else
|
||||
# define CLUTTER_AVAILABLE_IN_1_6
|
||||
# define CLUTTER_AVAILABLE_IN_1_6 _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_8
|
||||
# define CLUTTER_DEPRECATED_IN_1_8 CLUTTER_DEPRECATED
|
||||
# define CLUTTER_DEPRECATED_IN_1_8_FOR(f) CLUTTER_DEPRECATED_FOR(f)
|
||||
#else
|
||||
# define CLUTTER_DEPRECATED_IN_1_8
|
||||
# define CLUTTER_DEPRECATED_IN_1_8_FOR(f)
|
||||
# define CLUTTER_DEPRECATED_IN_1_8 _CLUTTER_EXTERN
|
||||
# define CLUTTER_DEPRECATED_IN_1_8_FOR(f) _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_8
|
||||
# define CLUTTER_AVAILABLE_IN_1_8 CLUTTER_UNAVAILABLE(1, 8)
|
||||
#else
|
||||
# define CLUTTER_AVAILABLE_IN_1_8
|
||||
# define CLUTTER_AVAILABLE_IN_1_8 _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_10
|
||||
# define CLUTTER_DEPRECATED_IN_1_10 CLUTTER_DEPRECATED
|
||||
# define CLUTTER_DEPRECATED_IN_1_10_FOR(f) CLUTTER_DEPRECATED_FOR(f)
|
||||
#else
|
||||
# define CLUTTER_DEPRECATED_IN_1_10
|
||||
# define CLUTTER_DEPRECATED_IN_1_10_FOR(f)
|
||||
# define CLUTTER_DEPRECATED_IN_1_10 _CLUTTER_EXTERN
|
||||
# define CLUTTER_DEPRECATED_IN_1_10_FOR(f) _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_10
|
||||
# define CLUTTER_AVAILABLE_IN_1_10 CLUTTER_UNAVAILABLE(1, 10)
|
||||
#else
|
||||
# define CLUTTER_AVAILABLE_IN_1_10
|
||||
# define CLUTTER_AVAILABLE_IN_1_10 _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_12
|
||||
# define CLUTTER_DEPRECATED_IN_1_12 CLUTTER_DEPRECATED
|
||||
# define CLUTTER_DEPRECATED_IN_1_12_FOR(f) CLUTTER_DEPRECATED_FOR(f)
|
||||
#else
|
||||
# define CLUTTER_DEPRECATED_IN_1_12
|
||||
# define CLUTTER_DEPRECATED_IN_1_12_FOR(f)
|
||||
# define CLUTTER_DEPRECATED_IN_1_12 _CLUTTER_EXTERN
|
||||
# define CLUTTER_DEPRECATED_IN_1_12_FOR(f) _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_12
|
||||
# define CLUTTER_AVAILABLE_IN_1_12 CLUTTER_UNAVAILABLE(1, 12)
|
||||
#else
|
||||
# define CLUTTER_AVAILABLE_IN_1_12
|
||||
# define CLUTTER_AVAILABLE_IN_1_12 _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_14
|
||||
# define CLUTTER_DEPRECATED_IN_1_14 CLUTTER_DEPRECATED
|
||||
# define CLUTTER_DEPRECATED_IN_1_14_FOR(f) CLUTTER_DEPRECATED_FOR(f)
|
||||
#else
|
||||
# define CLUTTER_DEPRECATED_IN_1_14
|
||||
# define CLUTTER_DEPRECATED_IN_1_14_FOR(f)
|
||||
# define CLUTTER_DEPRECATED_IN_1_14 _CLUTTER_EXTERN
|
||||
# define CLUTTER_DEPRECATED_IN_1_14_FOR(f) _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_14
|
||||
# define CLUTTER_AVAILABLE_IN_1_14 CLUTTER_UNAVAILABLE(1, 14)
|
||||
#else
|
||||
# define CLUTTER_AVAILABLE_IN_1_14
|
||||
# define CLUTTER_AVAILABLE_IN_1_14 _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_16
|
||||
# define CLUTTER_DEPRECATED_IN_1_16 CLUTTER_DEPRECATED
|
||||
# define CLUTTER_DEPRECATED_IN_1_16_FOR(f) CLUTTER_DEPRECATED_FOR(f)
|
||||
#else
|
||||
# define CLUTTER_DEPRECATED_IN_1_16
|
||||
# define CLUTTER_DEPRECATED_IN_1_16_FOR(f)
|
||||
# define CLUTTER_DEPRECATED_IN_1_16 _CLUTTER_EXTERN
|
||||
# define CLUTTER_DEPRECATED_IN_1_16_FOR(f) _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_16
|
||||
# define CLUTTER_AVAILABLE_IN_1_16 CLUTTER_UNAVAILABLE(1, 16)
|
||||
#else
|
||||
# define CLUTTER_AVAILABLE_IN_1_16
|
||||
# define CLUTTER_AVAILABLE_IN_1_16 _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_18
|
||||
# define CLUTTER_DEPRECATED_IN_1_18 CLUTTER_DEPRECATED
|
||||
# define CLUTTER_DEPRECATED_IN_1_18_FOR(f) CLUTTER_DEPRECATED_FOR(f)
|
||||
#else
|
||||
# define CLUTTER_DEPRECATED_IN_1_18
|
||||
# define CLUTTER_DEPRECATED_IN_1_18_FOR(f)
|
||||
# define CLUTTER_DEPRECATED_IN_1_18 _CLUTTER_EXTERN
|
||||
# define CLUTTER_DEPRECATED_IN_1_18_FOR(f) _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_18
|
||||
# define CLUTTER_AVAILABLE_IN_1_18 CLUTTER_UNAVAILABLE(1, 18)
|
||||
#else
|
||||
# define CLUTTER_AVAILABLE_IN_1_18
|
||||
# define CLUTTER_AVAILABLE_IN_1_18 _CLUTTER_EXTERN
|
||||
#endif
|
||||
|
||||
#endif /* __CLUTTER_MACROS_H__ */
|
||||
|
Reference in New Issue
Block a user