[rhythmbox/wip/hadess/cleanups] daap: Use G_DECLARE_FINAL_TYPE()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/wip/hadess/cleanups] daap: Use G_DECLARE_FINAL_TYPE()
- Date: Wed, 3 Nov 2021 12:57:55 +0000 (UTC)
commit 54cdf73f1e1957c20ef4a4c8f907d0e35acba3ce
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 3 13:57:33 2021 +0100
daap: Use G_DECLARE_FINAL_TYPE()
plugins/daap/rb-daap-plugin.h | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/plugins/daap/rb-daap-plugin.h b/plugins/daap/rb-daap-plugin.h
index 77779d89e..7a06064b5 100644
--- a/plugins/daap/rb-daap-plugin.h
+++ b/plugins/daap/rb-daap-plugin.h
@@ -35,14 +35,7 @@
G_BEGIN_DECLS
#define RB_TYPE_DAAP_PLUGIN (rb_daap_plugin_get_type ())
-#define RB_DAAP_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_DAAP_PLUGIN, RBDaapPlugin))
-#define RB_DAAP_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_DAAP_PLUGIN, RBDaapPluginClass))
-#define RB_IS_DAAP_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_DAAP_PLUGIN))
-#define RB_IS_DAAP_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_DAAP_PLUGIN))
-#define RB_DAAP_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_DAAP_PLUGIN, RBDaapPluginClass))
-
-typedef struct _RBDaapPlugin RBDaapPlugin;
-typedef struct _RBDaapPluginClass RBDaapPluginClass;
+G_DECLARE_FINAL_TYPE (RBDaapPlugin, rb_daap_plugin, RB, DAAP_PLUGIN, PeasExtensionBase)
GType rb_daap_plugin_get_type (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]