Skip to content

Commit

Permalink
Refactor: DECLARE_FINAL GncPluginRegister < GncPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
richardcohen committed Jun 14, 2023
1 parent b0c7e19 commit 17f41a7
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions gnucash/gnome/gnc-plugin-register.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,17 @@ G_BEGIN_DECLS

/* type macros */
#define GNC_TYPE_PLUGIN_REGISTER (gnc_plugin_register_get_type ())
#define GNC_PLUGIN_REGISTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_REGISTER, GncPluginRegister))
#define GNC_PLUGIN_REGISTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_REGISTER, GncPluginRegisterClass))
#define GNC_IS_PLUGIN_REGISTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_REGISTER))
#define GNC_IS_PLUGIN_REGISTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_REGISTER))
#define GNC_PLUGIN_REGISTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_REGISTER, GncPluginRegisterClass))
G_DECLARE_FINAL_TYPE (GncPluginRegister, gnc_plugin_register, GNC, PLUGIN_REGISTER, GncPlugin)

#define GNC_PLUGIN_REGISTER_NAME "gnc-plugin-register"

/* typedefs & structures */
typedef struct
struct _GncPluginRegister
{
GncPlugin gnc_plugin;
} GncPluginRegister;

typedef struct
{
GncPluginClass gnc_plugin;
} GncPluginRegisterClass;
};

/* function prototypes */
GType gnc_plugin_register_get_type (void);

GncPlugin *gnc_plugin_register_new (void);

G_END_DECLS
Expand Down

0 comments on commit 17f41a7

Please sign in to comment.