aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-plugin.h')
-rw-r--r--e-util/e-plugin.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/e-util/e-plugin.h b/e-util/e-plugin.h
index b67bde548c..2b8cd822be 100644
--- a/e-util/e-plugin.h
+++ b/e-util/e-plugin.h
@@ -62,6 +62,14 @@ struct _EPluginAuthor {
gchar *email;
};
+/* README: Currently there is only one flag.
+ * But we may need more in the future and hence makes
+ * sense to keep as an enum */
+
+typedef enum {
+ E_PLUGIN_FLAGS_SYSTEM_PLUGIN = 1 << 0
+} EPluginFlags;
+
/**
* struct _EPlugin - An EPlugin instance.
*
@@ -91,7 +99,7 @@ struct _EPlugin {
GSList *hooks;
GSList *authors; /* EPluginAuthor structures */
- guint32 flags;
+ EPluginFlags flags;
guint enabled : 1;
};
@@ -130,7 +138,7 @@ struct _EPluginClass {
GtkWidget *(*get_configure_widget)(EPlugin *);
};
-GType e_plugin_get_type (void);
+GType e_plugin_get_type (void) G_GNUC_CONST;
gint e_plugin_construct (EPlugin *plugin,
xmlNodePtr root);
gint e_plugin_load_plugins (void);
@@ -275,13 +283,5 @@ guint32 e_plugin_hook_id (xmlNodePtr root,
const EPluginHookTargetKey *map,
const gchar *prop);
-/* README: Currently there is only one flag.
- * But we may need more in the future and hence makes
- * sense to keep as an enum */
-
-typedef enum _EPluginFlags {
- E_PLUGIN_FLAGS_SYSTEM_PLUGIN = 1 << 0
-} EPluginFlags;
-
#endif /* _E_PLUGIN_H */