Skip to content

Commit

Permalink
Refactor: DECLARE_FINAL GncPluginQifImport < GncPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
richardcohen committed Jun 14, 2023
1 parent 81ce7bb commit c5d4f2b
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions gnucash/import-export/qif-imp/gnc-plugin-qif-import.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c5d4f2b

Please sign in to comment.