plugin: setup a `priv' opaque pointer for the internal data

G_TYPE_INSTANCE_GET_PRIVATE() is really slow, so try to call it as less as
possible.
This commit is contained in:
Aleksander Morgado
2012-07-10 13:27:31 +02:00
parent a315602166
commit a8bc1909e4
2 changed files with 99 additions and 99 deletions

View File

@@ -61,11 +61,13 @@ typedef enum {
typedef struct _MMPlugin MMPlugin;
typedef struct _MMPluginClass MMPluginClass;
typedef struct _MMPluginPrivate MMPluginPrivate;
typedef MMPlugin *(*MMPluginCreateFunc) (void);
struct _MMPlugin {
GObject parent;
MMPluginPrivate *priv;
};
struct _MMPluginClass {