summaryrefslogtreecommitdiff
path: root/src/lib/ethumb/Ethumb_Plugin.h
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-12 05:21:36 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-12 05:21:36 +0000
commita4e4c3041ee4eafee168f51348d2399cede29ff6 (patch)
treeca2f1ec94f9c4733b25250d0365c7cd7e620357c /src/lib/ethumb/Ethumb_Plugin.h
parent8e9303e1a422bcf12eb8a406cd3f808b8a9695f0 (diff)
ethumb: improve plugin handling.
be more like emotion, delay plugin load and change the api to register/unregister, more future-proof. SVN revision: 82681
Diffstat (limited to 'src/lib/ethumb/Ethumb_Plugin.h')
-rw-r--r--src/lib/ethumb/Ethumb_Plugin.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ethumb/Ethumb_Plugin.h b/src/lib/ethumb/Ethumb_Plugin.h
index 3eb6f020cd..483399d212 100644
--- a/src/lib/ethumb/Ethumb_Plugin.h
+++ b/src/lib/ethumb/Ethumb_Plugin.h
@@ -9,11 +9,17 @@ typedef struct _Ethumb_Plugin Ethumb_Plugin;
9 9
10struct _Ethumb_Plugin 10struct _Ethumb_Plugin
11{ 11{
12#define ETHUMB_PLUGIN_API_VERSION (1U)
13 unsigned int version;
14 const char *name;
12 const char **extensions; 15 const char **extensions;
13 void *(*thumb_generate)(Ethumb *); 16 void *(*thumb_generate)(Ethumb *);
14 void (*thumb_cancel)(Ethumb *, void *); 17 void (*thumb_cancel)(Ethumb *, void *);
15}; 18};
16 19
20EAPI Eina_Bool ethumb_plugin_register(const Ethumb_Plugin *plugin);
21EAPI Eina_Bool ethumb_plugin_unregister(const Ethumb_Plugin *plugin);
22
17EAPI void ethumb_calculate_aspect_from_ratio(Ethumb *e, float ia, int *w, int *h); 23EAPI void ethumb_calculate_aspect_from_ratio(Ethumb *e, float ia, int *w, int *h);
18EAPI void ethumb_calculate_aspect(Ethumb *e, int iw, int ih, int *w, int *h); 24EAPI void ethumb_calculate_aspect(Ethumb *e, int iw, int ih, int *w, int *h);
19EAPI void ethumb_calculate_fill_from_ratio(Ethumb *e, float ia, int *fx, int *fy, int *fw, int *fh); 25EAPI void ethumb_calculate_fill_from_ratio(Ethumb *e, float ia, int *fx, int *fy, int *fw, int *fh);