[libpeas] deprecations: ignore GParameter deprecations in headers



commit dd795bd071d9cec755979a3942682a331c429360
Author: Christian Hergert <chergert redhat com>
Date:   Mon Aug 5 13:10:32 2019 -0700

    deprecations: ignore GParameter deprecations in headers
    
    The deprecations will warn from GLib itself, so we need not warn here in
    our usage of provoding features with them. We may however, in the future
    want to provide alternative API for this other than GParameter.

 libpeas/peas-engine.h        | 3 +++
 libpeas/peas-extension-set.h | 3 +++
 libpeas/peas-object-module.h | 4 ++++
 libpeas/peas-plugin-loader.h | 4 ++++
 4 files changed, 14 insertions(+)
---
diff --git a/libpeas/peas-engine.h b/libpeas/peas-engine.h
index 8453c57..9aa9e8a 100644
--- a/libpeas/peas-engine.h
+++ b/libpeas/peas-engine.h
@@ -109,11 +109,14 @@ gboolean          peas_engine_provides_extension  (PeasEngine      *engine,
                                                    GType            extension_type);
 
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 PeasExtension    *peas_engine_create_extensionv   (PeasEngine      *engine,
                                                    PeasPluginInfo  *info,
                                                    GType            extension_type,
                                                    guint            n_parameters,
                                                    GParameter      *parameters);
+G_GNUC_END_IGNORE_DEPRECATIONS
+
 PeasExtension    *peas_engine_create_extension_valist
                                                   (PeasEngine      *engine,
                                                    PeasPluginInfo  *info,
diff --git a/libpeas/peas-extension-set.h b/libpeas/peas-extension-set.h
index 302609c..1fb2c44 100644
--- a/libpeas/peas-extension-set.h
+++ b/libpeas/peas-extension-set.h
@@ -133,10 +133,13 @@ void               peas_extension_set_foreach     (PeasExtensionSet *set,
 PeasExtension     *peas_extension_set_get_extension (PeasExtensionSet *set,
                                                      PeasPluginInfo   *info);
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 PeasExtensionSet  *peas_extension_set_newv        (PeasEngine       *engine,
                                                    GType             exten_type,
                                                    guint             n_parameters,
                                                    GParameter       *parameters);
+G_GNUC_END_IGNORE_DEPRECATIONS
+
 PeasExtensionSet  *peas_extension_set_new_valist  (PeasEngine       *engine,
                                                    GType             exten_type,
                                                    const gchar      *first_property,
diff --git a/libpeas/peas-object-module.h b/libpeas/peas-object-module.h
index 08c5d6b..7c84eac 100644
--- a/libpeas/peas-object-module.h
+++ b/libpeas/peas-object-module.h
@@ -41,6 +41,7 @@ typedef struct _PeasObjectModule         PeasObjectModule;
 typedef struct _PeasObjectModuleClass    PeasObjectModuleClass;
 typedef struct _PeasObjectModulePrivate  PeasObjectModulePrivate;
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 /**
  * PeasFactoryFunc:
  * @n_parameters: The number of paramteters.
@@ -57,6 +58,7 @@ typedef struct _PeasObjectModulePrivate  PeasObjectModulePrivate;
 typedef GObject *(*PeasFactoryFunc)   (guint          n_parameters,
                                        GParameter    *parameters,
                                        gpointer       user_data);
+G_GNUC_END_IGNORE_DEPRECATIONS
 
 /**
  * PeasObjectModule:
@@ -94,10 +96,12 @@ PeasObjectModule   *peas_object_module_new_full               (const gchar
 PeasObjectModule   *peas_object_module_new_embedded           (const gchar      *module_name,
                                                                const gchar      *symbol);
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 GObject            *peas_object_module_create_object          (PeasObjectModule *module,
                                                                GType             exten_type,
                                                                guint             n_parameters,
                                                                GParameter       *parameters);
+G_GNUC_END_IGNORE_DEPRECATIONS
 gboolean            peas_object_module_provides_object        (PeasObjectModule *module,
                                                                GType             exten_type);
 
diff --git a/libpeas/peas-plugin-loader.h b/libpeas/peas-plugin-loader.h
index 25552a5..837760e 100644
--- a/libpeas/peas-plugin-loader.h
+++ b/libpeas/peas-plugin-loader.h
@@ -43,6 +43,7 @@ struct _PeasPluginLoader {
   GObject parent;
 };
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 struct _PeasPluginLoaderClass {
   GObjectClass parent;
 
@@ -64,6 +65,7 @@ struct _PeasPluginLoaderClass {
 
   void           (*garbage_collect)       (PeasPluginLoader *loader);
 };
+G_GNUC_END_IGNORE_DEPRECATIONS
 
 GType         peas_plugin_loader_get_type             (void)  G_GNUC_CONST;
 
@@ -78,11 +80,13 @@ void          peas_plugin_loader_unload               (PeasPluginLoader *loader,
 gboolean      peas_plugin_loader_provides_extension   (PeasPluginLoader *loader,
                                                        PeasPluginInfo   *info,
                                                        GType             ext_type);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 PeasExtension *peas_plugin_loader_create_extension    (PeasPluginLoader *loader,
                                                        PeasPluginInfo   *info,
                                                        GType             ext_type,
                                                        guint             n_parameters,
                                                        GParameter       *parameters);
+G_GNUC_END_IGNORE_DEPRECATIONS
 void          peas_plugin_loader_garbage_collect      (PeasPluginLoader *loader);
 
 G_END_DECLS


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]