diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2022-10-11 11:02:13 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2022-10-11 11:05:03 +0100 |
commit | cc294f1ff54fea728df97e0cb6bafc34a075af8d (patch) | |
tree | 9949edb9d020b2085093c94f632e0501f833a5cf | |
parent | 84bc28e96ba1c9960b7d633ecf6f076929aa9a65 (diff) | |
download | json-glib-cc294f1ff54fea728df97e0cb6bafc34a075af8d.tar.gz |
Add 1.8 version macros
-rw-r--r-- | json-glib/json-version-macros.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/json-glib/json-version-macros.h b/json-glib/json-version-macros.h index 75ac770..a961be3 100644 --- a/json-glib/json-version-macros.h +++ b/json-glib/json-version-macros.h @@ -45,6 +45,8 @@ * JSON_VERSION_1_0: * * The encoded representation of JSON-GLib version "1.0". + * + * Since: 1.0 */ #define JSON_VERSION_1_0 (G_ENCODE_VERSION (1, 0)) @@ -52,6 +54,8 @@ * JSON_VERSION_1_2: * * The encoded representation of JSON-GLib version "1.2". + * + * Since: 1.2 */ #define JSON_VERSION_1_2 (G_ENCODE_VERSION (1, 2)) @@ -59,6 +63,8 @@ * JSON_VERSION_1_4: * * The encoded representation of JSON-GLib version "1.4". + * + * Since: 1.4 */ #define JSON_VERSION_1_4 (G_ENCODE_VERSION (1, 4)) @@ -66,9 +72,20 @@ * JSON_VERSION_1_6: * * The encoded representation of JSON-GLib version "1.6". + * + * Since: 1.6 */ #define JSON_VERSION_1_6 (G_ENCODE_VERSION (1, 6)) +/** + * JSON_VERSION_1_8: + * + * The encoded representation of JSON-GLib version "1.8". + * + * Since: 1.8 + */ +#define JSON_VERSION_1_8 (G_ENCODE_VERSION (1, 8)) + /* evaluates to the current stable version; for development cycles, * this means the next stable target */ @@ -205,4 +222,19 @@ # define JSON_AVAILABLE_IN_1_6 _JSON_EXTERN #endif +/* 1.8 */ +#if JSON_VERSION_MIN_REQUIRED >= JSON_VERSION_1_8 +# define JSON_DEPRECATED_IN_1_8 JSON_DEPRECATED +# define JSON_DEPRECATED_IN_1_8_FOR(f) JSON_DEPRECATED_FOR(f) +#else +# define JSON_DEPRECATED_IN_1_8 _JSON_EXTERN +# define JSON_DEPRECATED_IN_1_8_FOR(f) _JSON_EXTERN +#endif + +#if JSON_VERSION_MAX_ALLOWED < JSON_VERSION_1_8 +# define JSON_AVAILABLE_IN_1_8 JSON_UNAVAILABLE(1, 8) +#else +# define JSON_AVAILABLE_IN_1_8 _JSON_EXTERN +#endif + #endif /* __JSON_VERSION_MACROS_H__ */ |