[rhythmbox/wip/hadess/cleanups: 38/49] daap: Use G_DECLARE_FINAL_TYPE()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/wip/hadess/cleanups: 38/49] daap: Use G_DECLARE_FINAL_TYPE()
- Date: Mon, 15 Nov 2021 11:04:16 +0000 (UTC)
commit 36c71f65f1e03b62180e9c744bdf0663a22e2a70
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]