summaryrefslogtreecommitdiff
path: root/clutter/clutter-macros.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2014-03-17 18:19:52 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2014-03-17 18:53:27 +0000
commitc69bb976b3e92cb4d4ef270fb955ce1c8f85a281 (patch)
tree96545d32e184157e2b0ad8bc6151451f3872081f /clutter/clutter-macros.h
parent2102573700c84dcb9f94a77eaee7863326ebe3db (diff)
downloadclutter-c69bb976b3e92cb4d4ef270fb955ce1c8f85a281.tar.gz
Annotate all public symbols
We are going to switch to compiler annotations to determine the visibility of the symbols.
Diffstat (limited to 'clutter/clutter-macros.h')
-rw-r--r--clutter/clutter-macros.h78
1 files changed, 42 insertions, 36 deletions
diff --git a/clutter/clutter-macros.h b/clutter/clutter-macros.h
index 20c447855..85bde4966 100644
--- a/clutter/clutter-macros.h
+++ b/clutter/clutter-macros.h
@@ -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__ */