diff options
author | monsta <[email protected]> | 2016-11-30 21:18:35 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-11-30 22:24:15 +0300 |
commit | 108741a82a158996883f9d1ae19c6e65226f3309 (patch) | |
tree | 7b545ec61d19aa4ce2ac8f421493c248a70baf3a /src/eom-plugin-engine.h | |
parent | 52399afcd688b56aaa0750af6d3af42c26c31abe (diff) | |
download | eom-108741a82a158996883f9d1ae19c6e65226f3309.tar.bz2 eom-108741a82a158996883f9d1ae19c6e65226f3309.tar.xz |
port plugin system to libpeas
backported from eog with a few changes
upstream commits for reference:
https://git.gnome.org/browse/eog/commit/?id=1f79c321367c91c8e9063f1343a7e4ce4199c4d5
https://git.gnome.org/browse/eog/commit/?id=9afc5483b615039a580e295fe08d7b8ec524759c
https://git.gnome.org/browse/eog/commit/?id=40bedbf33812e65f4a8e79691b1fadfaace94035
https://git.gnome.org/browse/eog/commit/?id=8b0acfddc52c220393770a9895b6b56cab7821fd
https://git.gnome.org/browse/eog/commit/?id=95694f8b5f06b891a5e55356451ad60b53387563
https://git.gnome.org/browse/eog/commit/?id=7eeb6c8c0e55a3ad954cde4a6fed91ea7f89691c
Diffstat (limited to 'src/eom-plugin-engine.h')
-rw-r--r-- | src/eom-plugin-engine.h | 69 |
1 files changed, 21 insertions, 48 deletions
diff --git a/src/eom-plugin-engine.h b/src/eom-plugin-engine.h index 67088b3..8c1d092 100644 --- a/src/eom-plugin-engine.h +++ b/src/eom-plugin-engine.h @@ -25,62 +25,35 @@ #ifndef __EOM_PLUGIN_ENGINE_H__ #define __EOM_PLUGIN_ENGINE_H__ -#include "eom-window.h" - #include <glib.h> +#include <libpeas/peas-engine.h> -typedef struct _EomPluginInfo EomPluginInfo; - -G_GNUC_INTERNAL -gboolean eom_plugin_engine_init (void); - -G_GNUC_INTERNAL -void eom_plugin_engine_shutdown (void); - -G_GNUC_INTERNAL -const GList *eom_plugin_engine_get_plugins_list (void); - -G_GNUC_INTERNAL -gboolean eom_plugin_engine_activate_plugin (EomPluginInfo *info); - -G_GNUC_INTERNAL -gboolean eom_plugin_engine_deactivate_plugin (EomPluginInfo *info); - -G_GNUC_INTERNAL -gboolean eom_plugin_engine_plugin_is_active (EomPluginInfo *info); - -G_GNUC_INTERNAL -gboolean eom_plugin_engine_plugin_is_available (EomPluginInfo *info); - -G_GNUC_INTERNAL -gboolean eom_plugin_engine_plugin_is_configurable - (EomPluginInfo *info); - -G_GNUC_INTERNAL -void eom_plugin_engine_configure_plugin (EomPluginInfo *info, - GtkWindow *parent); +G_BEGIN_DECLS -G_GNUC_INTERNAL -void eom_plugin_engine_update_plugins_ui (EomWindow *window, - gboolean new_window); +typedef struct _EomPluginEngine EomPluginEngine; +typedef struct _EomPluginEngineClass EomPluginEngineClass; +typedef struct _EomPluginEnginePrivate EomPluginEnginePrivate; -G_GNUC_INTERNAL -const gchar *eom_plugin_engine_get_plugin_name (EomPluginInfo *info); +#define EOM_TYPE_PLUGIN_ENGINE eom_plugin_engine_get_type() +#define EOM_PLUGIN_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EOM_TYPE_PLUGIN_ENGINE, EomPluginEngine)) +#define EOM_PLUGIN_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EOM_TYPE_PLUGIN_ENGINE, EomPluginEngineClass)) +#define EOM_IS_PLUGIN_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EOM_TYPE_PLUGIN_ENGINE)) +#define EOM_IS_PLUGIN_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EOM_TYPE_PLUGIN_ENGINE)) +#define EOM_PLUGIN_ENGINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EOM_TYPE_PLUGIN_ENGINE, EomPluginEngineClass)) -G_GNUC_INTERNAL -const gchar *eom_plugin_engine_get_plugin_description - (EomPluginInfo *info); +struct _EomPluginEngine { + PeasEngine parent; + EomPluginEnginePrivate *priv; +}; -G_GNUC_INTERNAL -const gchar *eom_plugin_engine_get_plugin_icon_name (EomPluginInfo *info); +struct _EomPluginEngineClass { + PeasEngineClass parent_class; +}; -G_GNUC_INTERNAL -const gchar **eom_plugin_engine_get_plugin_authors (EomPluginInfo *info); +GType eom_plugin_engine_get_type (void) G_GNUC_CONST; -G_GNUC_INTERNAL -const gchar *eom_plugin_engine_get_plugin_website (EomPluginInfo *info); +EomPluginEngine* eom_plugin_engine_new (void); -G_GNUC_INTERNAL -const gchar *eom_plugin_engine_get_plugin_copyright (EomPluginInfo *info); +G_END_DECLS #endif /* __EOM_PLUGIN_ENGINE_H__ */ |