[rhythmbox/wip/hadess/cleanups: 35/43] generic-player: Use G_DECLARE_FINAL_TYPE()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/wip/hadess/cleanups: 35/43] generic-player: Use G_DECLARE_FINAL_TYPE()
- Date: Thu, 18 Nov 2021 13:40:57 +0000 (UTC)
commit d216d825319b4c398427414b89c7eb4929794b88
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 3 13:57:33 2021 +0100
generic-player: Use G_DECLARE_FINAL_TYPE()
plugins/generic-player/rb-generic-player-plugin.c | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/plugins/generic-player/rb-generic-player-plugin.c
b/plugins/generic-player/rb-generic-player-plugin.c
index 4ea1447b3..8a988bbff 100644
--- a/plugins/generic-player/rb-generic-player-plugin.c
+++ b/plugins/generic-player/rb-generic-player-plugin.c
@@ -54,23 +54,19 @@
#include "rb-application.h"
#define RB_TYPE_GENERIC_PLAYER_PLUGIN (rb_generic_player_plugin_get_type ())
-#define RB_GENERIC_PLAYER_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o),
RB_TYPE_GENERIC_PLAYER_PLUGIN, RBGenericPlayerPlugin))
-#define RB_GENERIC_PLAYER_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_GENERIC_PLAYER_PLUGIN,
RBGenericPlayerPluginClass))
-#define RB_IS_GENERIC_PLAYER_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o),
RB_TYPE_GENERIC_PLAYER_PLUGIN))
-#define RB_IS_GENERIC_PLAYER_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_GENERIC_PLAYER_PLUGIN))
-#define RB_GENERIC_PLAYER_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o),
RB_TYPE_GENERIC_PLAYER_PLUGIN, RBGenericPlayerPluginClass))
+G_DECLARE_FINAL_TYPE (RBGenericPlayerPlugin, rb_generic_player_plugin, RB, GENERIC_PLAYER_PLUGIN,
PeasExtensionBase)
-typedef struct
+struct _RBGenericPlayerPlugin
{
PeasExtensionBase parent;
GList *player_sources;
-} RBGenericPlayerPlugin;
+};
-typedef struct
+struct _RBGenericPlayerPluginClass
{
PeasExtensionBaseClass parent_class;
-} RBGenericPlayerPluginClass;
+};
G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]