summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2023-03-16 17:07:39 -0700
committerChristian Hergert <chergert@redhat.com>2023-03-22 16:44:35 -0700
commitad766b7500b7709da9bd961ed462420193c0bb86 (patch)
tree0cef75080c4fc103d1320f39e4a2bd4c0b33216f
parent6e22ed4937b0fcb3f3d82c52cada2689cd19ffe2 (diff)
downloadlibpeas-ad766b7500b7709da9bd961ed462420193c0bb86.tar.gz
janitorial: drop old versions and reset for 2_0
-rw-r--r--libpeas/peas-engine.h2
-rw-r--r--libpeas/peas-extension-set.h2
-rw-r--r--libpeas/peas-version-macros.h45
3 files changed, 15 insertions, 34 deletions
diff --git a/libpeas/peas-engine.h b/libpeas/peas-engine.h
index 09e8a78..8baa15a 100644
--- a/libpeas/peas-engine.h
+++ b/libpeas/peas-engine.h
@@ -141,7 +141,7 @@ PeasExtension *peas_engine_create_extensionv (PeasEngine *engine,
GParameter *parameters);
G_GNUC_END_IGNORE_DEPRECATIONS
-PEAS_AVAILABLE_IN_1_24
+PEAS_AVAILABLE_IN_ALL
PeasExtension *peas_engine_create_extension_with_properties
(PeasEngine *engine,
PeasPluginInfo *info,
diff --git a/libpeas/peas-extension-set.h b/libpeas/peas-extension-set.h
index 99d9767..5de6311 100644
--- a/libpeas/peas-extension-set.h
+++ b/libpeas/peas-extension-set.h
@@ -126,7 +126,7 @@ PeasExtensionSet *peas_extension_set_newv (PeasEngine *engine,
GParameter *parameters);
G_GNUC_END_IGNORE_DEPRECATIONS
-PEAS_AVAILABLE_IN_1_24
+PEAS_AVAILABLE_IN_ALL
PeasExtensionSet *peas_extension_set_new_with_properties (PeasEngine *engine,
GType exten_type,
guint n_properties,
diff --git a/libpeas/peas-version-macros.h b/libpeas/peas-version-macros.h
index 7ce7173..02755d6 100644
--- a/libpeas/peas-version-macros.h
+++ b/libpeas/peas-version-macros.h
@@ -43,8 +43,7 @@
# define PEAS_UNAVAILABLE(maj,min) G_UNAVAILABLE(maj,min) _PEAS_EXTERN
#endif
-#define PEAS_VERSION_1_22 (G_ENCODE_VERSION (1, 22))
-#define PEAS_VERSION_1_24 (G_ENCODE_VERSION (1, 24))
+#define PEAS_VERSION_2_0 (G_ENCODE_VERSION (2, 0))
#if (PEAS_MINOR_VERSION == 99)
# define PEAS_VERSION_CUR_STABLE (G_ENCODE_VERSION (PEAS_MAJOR_VERSION + 1, 0))
@@ -69,15 +68,13 @@
* the peas.h header.
*
* The definition should be one of the predefined PEAS version
- * macros: %PEAS_VERSION_1_22, ...
+ * macros: %PEAS_VERSION_2_0, ...
*
* This macro defines the lower bound for the Peas API to use.
*
* If a function has been deprecated in a newer version of Peas,
* it is possible to use this symbol to avoid the compiler warnings
* without disabling warning for every deprecated function.
- *
- * Since: 1.24
*/
#ifndef PEAS_VERSION_MIN_REQUIRED
# define PEAS_VERSION_MIN_REQUIRED (PEAS_VERSION_CUR_STABLE)
@@ -97,8 +94,6 @@
* If a function has been introduced in a newer version of Peas,
* it is possible to use this symbol to get compiler warnings when
* trying to use that function.
- *
- * Since: 1.24
*/
#ifndef PEAS_VERSION_MAX_ALLOWED
# if PEAS_VERSION_MIN_REQUIRED > PEAS_VERSION_PREV_STABLE
@@ -111,36 +106,22 @@
#if PEAS_VERSION_MAX_ALLOWED < PEAS_VERSION_MIN_REQUIRED
#error "PEAS_VERSION_MAX_ALLOWED must be >= PEAS_VERSION_MIN_REQUIRED"
#endif
-#if PEAS_VERSION_MIN_REQUIRED < PEAS_VERSION_1_22
-#error "PEAS_VERSION_MIN_REQUIRED must be >= PEAS_VERSION_1_22"
-#endif
-
-#define PEAS_AVAILABLE_IN_ALL _PEAS_EXTERN
-
-#if PEAS_VERSION_MIN_REQUIRED >= PEAS_VERSION_1_22
-# define PEAS_DEPRECATED_IN_1_22 PEAS_DEPRECATED
-# define PEAS_DEPRECATED_IN_1_22_FOR(f) PEAS_DEPRECATED_FOR(f)
-#else
-# define PEAS_DEPRECATED_IN_1_22 _PEAS_EXTERN
-# define PEAS_DEPRECATED_IN_1_22_FOR(f) _PEAS_EXTERN
+#if PEAS_VERSION_MIN_REQUIRED < PEAS_VERSION_2_0
+#error "PEAS_VERSION_MIN_REQUIRED must be >= PEAS_VERSION_2_0"
#endif
-#if PEAS_VERSION_MAX_ALLOWED < PEAS_VERSION_1_22
-# define PEAS_AVAILABLE_IN_1_22 PEAS_UNAVAILABLE(1, 22)
-#else
-# define PEAS_AVAILABLE_IN_1_22 _PEAS_EXTERN
-#endif
+#define PEAS_AVAILABLE_IN_ALL _PEAS_EXTERN
-#if PEAS_VERSION_MIN_REQUIRED >= PEAS_VERSION_1_24
-# define PEAS_DEPRECATED_IN_1_24 PEAS_DEPRECATED
-# define PEAS_DEPRECATED_IN_1_24_FOR(f) PEAS_DEPRECATED_FOR(f)
+#if PEAS_VERSION_MIN_REQUIRED >= PEAS_VERSION_2_0
+# define PEAS_DEPRECATED_IN_2_0 PEAS_DEPRECATED
+# define PEAS_DEPRECATED_IN_2_0_FOR(f) PEAS_DEPRECATED_FOR(f)
#else
-# define PEAS_DEPRECATED_IN_1_24 _PEAS_EXTERN
-# define PEAS_DEPRECATED_IN_1_24_FOR(f) _PEAS_EXTERN
+# define PEAS_DEPRECATED_IN_2_0 _PEAS_EXTERN
+# define PEAS_DEPRECATED_IN_2_0_FOR(f) _PEAS_EXTERN
#endif
-#if PEAS_VERSION_MAX_ALLOWED < PEAS_VERSION_1_24
-# define PEAS_AVAILABLE_IN_1_24 PEAS_UNAVAILABLE(1, 24)
+#if PEAS_VERSION_MAX_ALLOWED < PEAS_VERSION_2_0
+# define PEAS_AVAILABLE_IN_2_0 PEAS_UNAVAILABLE(2, 0)
#else
-# define PEAS_AVAILABLE_IN_1_24 _PEAS_EXTERN
+# define PEAS_AVAILABLE_IN_2_0 _PEAS_EXTERN
#endif