Refactor: DECLARE_FINAL GncPluginQifImport < GncPlugin

This commit is contained in:
Richard Cohen 2023-06-12 19:12:37 +01:00
parent 81ce7bb107
commit c5d4f2bf30

View File

@ -32,28 +32,17 @@ G_BEGIN_DECLS
/* type macros */
#define GNC_TYPE_PLUGIN_QIF_IMPORT (gnc_plugin_qif_import_get_type ())
#define GNC_PLUGIN_QIF_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_QIF_IMPORT, GncPluginQifImport))
#define GNC_PLUGIN_QIF_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_QIF_IMPORT, GncPluginQifImportClass))
#define GNC_IS_PLUGIN_QIF_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_QIF_IMPORT))
#define GNC_IS_PLUGIN_QIF_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_QIF_IMPORT))
#define GNC_PLUGIN_QIF_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_QIF_IMPORT, GncPluginQifImportClass))
G_DECLARE_FINAL_TYPE (GncPluginQifImport, gnc_plugin_qif_import, GNC, PLUGIN_QIF_IMPORT, GncPlugin)
#define GNC_PLUGIN_QIF_IMPORT_NAME "gnc-plugin-qif-import"
/* typedefs & structures */
typedef struct
struct _GncPluginQifImport
{
GncPlugin gnc_plugin;
} GncPluginQifImport;
typedef struct
{
GncPluginClass gnc_plugin;
} GncPluginQifImportClass;
};
/* function prototypes */
GType gnc_plugin_qif_import_get_type (void);
GncPlugin *gnc_plugin_qif_import_new (void);
void gnc_plugin_qif_import_create_plugin (void);