summaryrefslogtreecommitdiffstats
path: root/ganv/module.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-03-15 22:35:18 +0000
committerDavid Robillard <d@drobilla.net>2014-03-15 22:35:18 +0000
commit3b63d9fa3114f0292561484f299d9d45ec451c17 (patch)
treeb45de3ba8d2eded5731908cf6842b4bb6392863f /ganv/module.h
parentba34221e0ee4c32ced4770563638f472860e0a16 (diff)
downloadganv-3b63d9fa3114f0292561484f299d9d45ec451c17.tar.gz
ganv-3b63d9fa3114f0292561484f299d9d45ec451c17.tar.bz2
ganv-3b63d9fa3114f0292561484f299d9d45ec451c17.zip
Clean up public canvas interface.
Eliminate thin C wrappers around C++ methods (move actual implementation into C). git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5338 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'ganv/module.h')
-rw-r--r--ganv/module.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/ganv/module.h b/ganv/module.h
index 2e350a6..3ee94b5 100644
--- a/ganv/module.h
+++ b/ganv/module.h
@@ -31,7 +31,7 @@ G_BEGIN_DECLS
#define GANV_MODULE_GET_CLASS(obj) (GTK_CHECK_GET_CLASS((obj), GANV_TYPE_MODULE, GanvModuleClass))
typedef struct _GanvModuleClass GanvModuleClass;
-typedef struct _GanvModuleImpl GanvModuleImpl;
+typedef struct _GanvModuleImpl GanvModuleImpl;
typedef void (*GanvPortFunc)(GanvPort* port, void* data);
@@ -42,9 +42,12 @@ struct _GanvModule {
struct _GanvModuleClass {
GanvBoxClass parent_class;
+
+ /* Reserved for future expansion */
+ gpointer spare_vmethods [4];
};
-GType ganv_module_get_type(void);
+GType ganv_module_get_type(void) G_GNUC_CONST;
GanvModule*
ganv_module_new(GanvCanvas* canvas,