diff options
author | Kalev Lember <klember@redhat.com> | 2015-09-08 13:32:28 +0200 |
---|---|---|
committer | Kalev Lember <klember@redhat.com> | 2015-09-08 14:01:27 +0200 |
commit | a3d06c5cb6f85e963be74e8866e1c3bc71ee4990 (patch) | |
tree | a03c87bbf3d7d855439512083955490acf7aeb70 /libappstream-builder/asb-plugin-loader.h | |
parent | 0bb28983f4f865a45cefcfdb4db66b6170bf8538 (diff) | |
download | appstream-glib-a3d06c5cb6f85e963be74e8866e1c3bc71ee4990.tar.gz |
libappstream-builder: Port to G_DECLARE_DERIVABLE_TYPE macro
Diffstat (limited to 'libappstream-builder/asb-plugin-loader.h')
-rw-r--r-- | libappstream-builder/asb-plugin-loader.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/libappstream-builder/asb-plugin-loader.h b/libappstream-builder/asb-plugin-loader.h index 1ef862b..2c2006d 100644 --- a/libappstream-builder/asb-plugin-loader.h +++ b/libappstream-builder/asb-plugin-loader.h @@ -26,22 +26,10 @@ #include "asb-plugin.h" -#define ASB_TYPE_PLUGIN_LOADER (asb_plugin_loader_get_type()) -#define ASB_PLUGIN_LOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), ASB_TYPE_PLUGIN_LOADER, AsbPluginLoader)) -#define ASB_PLUGIN_LOADER_CLASS(cls) (G_TYPE_CHECK_CLASS_CAST((cls), ASB_TYPE_PLUGIN_LOADER, AsbPluginLoaderClass)) -#define ASB_IS_PLUGIN_LOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), ASB_TYPE_PLUGIN_LOADER)) -#define ASB_IS_PLUGIN_LOADER_CLASS(cls) (G_TYPE_CHECK_CLASS_TYPE((cls), ASB_TYPE_PLUGIN_LOADER)) -#define ASB_PLUGIN_LOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), ASB_TYPE_PLUGIN_LOADER, AsbPluginLoaderClass)) - G_BEGIN_DECLS -typedef struct _AsbPluginLoader AsbPluginLoader; -typedef struct _AsbPluginLoaderClass AsbPluginLoaderClass; - -struct _AsbPluginLoader -{ - GObject parent; -}; +#define ASB_TYPE_PLUGIN_LOADER (asb_plugin_loader_get_type ()) +G_DECLARE_DERIVABLE_TYPE (AsbPluginLoader, asb_plugin_loader, ASB, PLUGIN_LOADER, GObject) struct _AsbPluginLoaderClass { @@ -57,7 +45,6 @@ struct _AsbPluginLoaderClass void (*_asb_reserved8) (void); }; -GType asb_plugin_loader_get_type (void); AsbPluginLoader *asb_plugin_loader_new (AsbContext *ctx); const gchar *asb_plugin_loader_get_dir (AsbPluginLoader *plugin_loader); |