summaryrefslogtreecommitdiffstats
path: root/lib/efl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/efl')
-rw-r--r--lib/efl/native/ethumb.rb160
-rw-r--r--lib/efl/native/ethumb_client.rb148
-rw-r--r--lib/efl/native/ethumb_plugin.rb57
3 files changed, 365 insertions, 0 deletions
diff --git a/lib/efl/native/ethumb.rb b/lib/efl/native/ethumb.rb
new file mode 100644
index 0000000..873c36c
--- /dev/null
+++ b/lib/efl/native/ethumb.rb
@@ -0,0 +1,160 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+#
+module Efl
+ #
+ module Ethumb
+ #
+ FCT_PREFIX = 'ethumb_' unless const_defined? :FCT_PREFIX
+ #
+ def self.method_missing meth, *args, &block
+ sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
+ self.send sym, *args, &block
+ end
+ #
+ end
+ #
+ module Native
+ #
+ ffi_lib 'ethumb'
+ #
+ # ENUMS
+ # typedef enum _Ethumb_Thumb_FDO_Size {...} Ethumb_Thumb_FDO_Size;
+ enum :ethumb_thumb_fdo_size, [ :ethumb_thumb_normal, :ethumb_thumb_large ]
+ # typedef enum _Ethumb_Thumb_Format {...} Ethumb_Thumb_Format;
+ enum :ethumb_thumb_format, [ :ethumb_thumb_fdo, :ethumb_thumb_jpeg, :ethumb_thumb_eet ]
+ # typedef enum _Ethumb_Thumb_Aspect {...} Ethumb_Thumb_Aspect;
+ enum :ethumb_thumb_aspect, [ :ethumb_thumb_keep_aspect, :ethumb_thumb_ignore_aspect, :ethumb_thumb_crop ]
+ # typedef enum _Ethumb_Thumb_Orientation {...} Ethumb_Thumb_Orientation;
+ enum :ethumb_thumb_orientation, [ :ethumb_thumb_orient_none, :ethumb_thumb_rotate_90_cw, :ethumb_thumb_rotate_180,
+ :ethumb_thumb_rotate_90_ccw, :ethumb_thumb_flip_horizontal, :ethumb_thumb_flip_vertical, :ethumb_thumb_flip_transpose, :ethumb_thumb_flip_transverse,
+ :ethumb_thumb_orient_original ]
+ #
+ # TYPEDEFS
+ # typedef struct _Ethumb_Version Ethumb_Version;
+ typedef :pointer, :ethumb_version
+ # typedef struct _Ethumb Ethumb;
+ typedef :pointer, :ethumb
+ #
+ # CALLBACKS
+ # typedef void (*Ethumb_Generate_Cb) (void *data, Ethumb *e, Eina_Bool success);
+ callback :ethumb_generate_cb, [ :pointer, :ethumb, :bool ], :void
+ #
+ # VARIABLES
+ # EAPI extern Ethumb_Version *ethumb_version;
+ attach_variable :ethumb_version, :ethumb_version
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI int ethumb_init(void);
+ [ :ethumb_init, [ ], :int ],
+ # EAPI int ethumb_shutdown(void);
+ [ :ethumb_shutdown, [ ], :int ],
+ # EAPI Ethumb * ethumb_new(void);
+ [ :ethumb_new, [ ], :ethumb ],
+ # EAPI void ethumb_free(Ethumb *e);
+ [ :ethumb_free, [ :ethumb ], :void ],
+ # EAPI Eina_Bool ethumb_frame_set(Ethumb *e, const char *theme_file, const char *group, const char *swallow);
+ [ :ethumb_frame_set, [ :ethumb, :string, :string, :string ], :bool ],
+ # EAPI void ethumb_frame_get(const Ethumb *e, const char **theme_file, const char **group, const char **swallow);
+ [ :ethumb_frame_get, [ :ethumb, :pointer, :pointer, :pointer ], :void ],
+ # EAPI void ethumb_thumb_dir_path_set(Ethumb *e, const char *path);
+ [ :ethumb_thumb_dir_path_set, [ :ethumb, :string ], :void ],
+ # EAPI const char *ethumb_thumb_dir_path_get(const Ethumb *e);
+ [ :ethumb_thumb_dir_path_get, [ :ethumb ], :string ],
+ # EAPI void ethumb_thumb_category_set(Ethumb *e, const char *category);
+ [ :ethumb_thumb_category_set, [ :ethumb, :string ], :void ],
+ # EAPI const char *ethumb_thumb_category_get(const Ethumb *e);
+ [ :ethumb_thumb_category_get, [ :ethumb ], :string ],
+ # EAPI void ethumb_thumb_path_set(Ethumb *e, const char *path, const char *key);
+ [ :ethumb_thumb_path_set, [ :ethumb, :string, :string ], :void ],
+ # EAPI void ethumb_thumb_path_get(Ethumb *e, const char **path, const char **key);
+ [ :ethumb_thumb_path_get, [ :ethumb, :pointer, :pointer ], :void ],
+ # EAPI void ethumb_thumb_hash(Ethumb *e);
+ [ :ethumb_thumb_hash, [ :ethumb ], :void ],
+ # EAPI void ethumb_thumb_hash_copy(Ethumb *dst, const Ethumb *src);
+ [ :ethumb_thumb_hash_copy, [ :ethumb, :ethumb ], :void ],
+ # EAPI void ethumb_thumb_fdo_set(Ethumb *e, Ethumb_Thumb_FDO_Size s);
+ [ :ethumb_thumb_fdo_set, [ :ethumb, :ethumb_thumb_fdo_size ], :void ],
+ # EAPI void ethumb_thumb_size_set(Ethumb *e, int tw, int th);
+ [ :ethumb_thumb_size_set, [ :ethumb, :int, :int ], :void ],
+ # EAPI void ethumb_thumb_size_get(const Ethumb *e, int *tw, int *th);
+ [ :ethumb_thumb_size_get, [ :ethumb, :pointer, :pointer ], :void ],
+ # EAPI void ethumb_thumb_format_set(Ethumb *e, Ethumb_Thumb_Format f);
+ [ :ethumb_thumb_format_set, [ :ethumb, :ethumb_thumb_format ], :void ],
+ # EAPI Ethumb_Thumb_Format ethumb_thumb_format_get(const Ethumb *e);
+ [ :ethumb_thumb_format_get, [ :ethumb ], :ethumb_thumb_format ],
+ # EAPI void ethumb_thumb_aspect_set(Ethumb *e, Ethumb_Thumb_Aspect a);
+ [ :ethumb_thumb_aspect_set, [ :ethumb, :ethumb_thumb_aspect ], :void ],
+ # EAPI Ethumb_Thumb_Aspect ethumb_thumb_aspect_get(const Ethumb *e);
+ [ :ethumb_thumb_aspect_get, [ :ethumb ], :ethumb_thumb_aspect ],
+ # EAPI void ethumb_thumb_orientation_set(Ethumb *e, Ethumb_Thumb_Orientation o);
+ [ :ethumb_thumb_orientation_set, [ :ethumb, :ethumb_thumb_orientation ], :void ],
+ # EAPI Ethumb_Thumb_Orientation ethumb_thumb_orientation_get(const Ethumb *e);
+ [ :ethumb_thumb_orientation_get, [ :ethumb ], :ethumb_thumb_orientation ],
+ # EAPI void ethumb_thumb_crop_align_set(Ethumb *e, float x, float y);
+ [ :ethumb_thumb_crop_align_set, [ :ethumb, :float, :float ], :void ],
+ # EAPI void ethumb_thumb_crop_align_get(const Ethumb *e, float *x, float *y);
+ [ :ethumb_thumb_crop_align_get, [ :ethumb, :pointer, :pointer ], :void ],
+ # EAPI void ethumb_thumb_quality_set(Ethumb *e, int quality);
+ [ :ethumb_thumb_quality_set, [ :ethumb, :int ], :void ],
+ # EAPI int ethumb_thumb_quality_get(const Ethumb *e);
+ [ :ethumb_thumb_quality_get, [ :ethumb ], :int ],
+ # EAPI void ethumb_thumb_compress_set(Ethumb *e, int compress);
+ [ :ethumb_thumb_compress_set, [ :ethumb, :int ], :void ],
+ # EAPI int ethumb_thumb_compress_get(const Ethumb *e);
+ [ :ethumb_thumb_compress_get, [ :ethumb ], :int ],
+ # EAPI void ethumb_video_start_set(Ethumb *e, float start);
+ [ :ethumb_video_start_set, [ :ethumb, :float ], :void ],
+ # EAPI float ethumb_video_start_get(const Ethumb *e);
+ [ :ethumb_video_start_get, [ :ethumb ], :float ],
+ # EAPI void ethumb_video_time_set(Ethumb *e, float time);
+ [ :ethumb_video_time_set, [ :ethumb, :float ], :void ],
+ # EAPI float ethumb_video_time_get(const Ethumb *e);
+ [ :ethumb_video_time_get, [ :ethumb ], :float ],
+ # EAPI void ethumb_video_interval_set(Ethumb *e, float interval);
+ [ :ethumb_video_interval_set, [ :ethumb, :float ], :void ],
+ # EAPI float ethumb_video_interval_get(const Ethumb *e);
+ [ :ethumb_video_interval_get, [ :ethumb ], :float ],
+ # EAPI void ethumb_video_ntimes_set(Ethumb *e, unsigned int ntimes);
+ [ :ethumb_video_ntimes_set, [ :ethumb, :uint ], :void ],
+ # EAPI unsigned int ethumb_video_ntimes_get(const Ethumb *e);
+ [ :ethumb_video_ntimes_get, [ :ethumb ], :uint ],
+ # EAPI void ethumb_video_fps_set(Ethumb *e, unsigned int fps);
+ [ :ethumb_video_fps_set, [ :ethumb, :uint ], :void ],
+ # EAPI unsigned int ethumb_video_fps_get(const Ethumb *e);
+ [ :ethumb_video_fps_get, [ :ethumb ], :uint ],
+ # EAPI void ethumb_document_page_set(Ethumb *e, unsigned int page);
+ [ :ethumb_document_page_set, [ :ethumb, :uint ], :void ],
+ # EAPI unsigned int ethumb_document_page_get(const Ethumb *e);
+ [ :ethumb_document_page_get, [ :ethumb ], :uint ],
+ # EAPI Eina_Bool ethumb_file_set(Ethumb *e, const char *path, const char *key);
+ [ :ethumb_file_set, [ :ethumb, :string, :string ], :bool ],
+ # EAPI void ethumb_file_get(const Ethumb *e, const char **path, const char **key);
+ [ :ethumb_file_get, [ :ethumb, :pointer, :pointer ], :void ],
+ # EAPI void ethumb_file_free(Ethumb *e);
+ [ :ethumb_file_free, [ :ethumb ], :void ],
+ # EAPI Eina_Bool ethumb_generate(Ethumb *e, Ethumb_Generate_Cb finished_cb, const void *data, Eina_Free_Cb free_data);
+ [ :ethumb_generate, [ :ethumb, :ethumb_generate_cb, :pointer, :eina_free_cb ], :bool ],
+ # EAPI Eina_Bool ethumb_exists(Ethumb *e);
+ [ :ethumb_exists, [ :ethumb ], :bool ],
+ # EAPI Ethumb *ethumb_dup(const Ethumb *e);
+ [ :ethumb_dup, [ :ethumb ], :ethumb ],
+ # EAPI Eina_Bool ethumb_cmp(const Ethumb *e1, const Ethumb *e2);
+ [ :ethumb_cmp, [ :ethumb, :ethumb ], :bool ],
+ # EAPI int ethumb_hash(const void *key, int key_length);
+ [ :ethumb_hash, [ :pointer, :int ], :int ],
+ # EAPI int ethumb_key_cmp(const void *key1, int key1_length, const void *key2, int key2_length);
+ [ :ethumb_key_cmp, [ :pointer, :int, :pointer, :int ], :int ],
+ # EAPI unsigned int ethumb_length(const void *key);
+ [ :ethumb_length, [ :pointer ], :uint ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF
diff --git a/lib/efl/native/ethumb_client.rb b/lib/efl/native/ethumb_client.rb
new file mode 100644
index 0000000..47d5bf7
--- /dev/null
+++ b/lib/efl/native/ethumb_client.rb
@@ -0,0 +1,148 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/ethumb'
+#
+module Efl
+ #
+ module EthumbClient
+ #
+ FCT_PREFIX = 'ethumb_client_' unless const_defined? :FCT_PREFIX
+ #
+ def self.method_missing meth, *args, &block
+ sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
+ self.send sym, *args, &block
+ end
+ #
+ end
+ #
+ module Native
+ #
+ ffi_lib 'ethumb_client'
+ #
+ # TYPEDEFS
+ # typedef struct _Ethumb_Client Ethumb_Client;
+ typedef :pointer, :ethumb_client
+ # typedef struct _Ethumb_Exists Ethumb_Exists;
+ typedef :pointer, :ethumb_exists
+ # typedef struct _Ethumb_Client_Async Ethumb_Client_Async;
+ typedef :pointer, :ethumb_client_async
+ #
+ # CALLBACKS
+ # typedef void (*Ethumb_Client_Connect_Cb) (void *data, Ethumb_Client *client, Eina_Bool success);
+ callback :ethumb_client_connect_cb, [ :pointer, :ethumb_client, :bool ], :void
+ # typedef void (*Ethumb_Client_Die_Cb) (void *data, Ethumb_Client *client);
+ callback :ethumb_client_die_cb, [ :pointer, :ethumb_client ], :void
+ # typedef void (*Ethumb_Client_Generate_Cb) (void *data, Ethumb_Client *client, int id, const char *file, const char *key, const char *thumb_path, const char *thumb_key, Eina_Bool success);
+ callback :ethumb_client_generate_cb, [ :pointer, :ethumb_client, :int, :string, :string, :string, :string, :bool ], :void
+ # typedef void (*Ethumb_Client_Thumb_Exists_Cb) (void *data, Ethumb_Client *client, Ethumb_Exists *thread, Eina_Bool exists);
+ callback :ethumb_client_thumb_exists_cb, [ :pointer, :ethumb_client, :ethumb_exists, :bool ], :void
+ # typedef void (*Ethumb_Client_Generate_Cancel_Cb) (void *data, Eina_Bool success);
+ callback :ethumb_client_generate_cancel_cb, [ :pointer, :bool ], :void
+ # typedef void (*Ethumb_Client_Async_Done_Cb) (Ethumb_Client *ethumbd, const char *thumb_path, const char *thumb_key, void *data);
+ callback :ethumb_client_async_done_cb, [ :ethumb_client, :string, :string, :pointer ], :void
+ # typedef void (*Ethumb_Client_Async_Error_Cb) (Ethumb_Client *ethumbd, void *data);
+ callback :ethumb_client_async_error_cb, [ :ethumb_client, :pointer ], :void
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI int ethumb_client_init(void);
+ [ :ethumb_client_init, [ ], :int ],
+ # EAPI int ethumb_client_shutdown(void);
+ [ :ethumb_client_shutdown, [ ], :int ],
+ # EAPI Ethumb_Client * ethumb_client_connect(Ethumb_Client_Connect_Cb connect_cb, const void *data, Eina_Free_Cb free_data);
+ [ :ethumb_client_connect, [ :ethumb_client_connect_cb, :pointer, :eina_free_cb ], :ethumb_client ],
+ # EAPI void ethumb_client_disconnect(Ethumb_Client *client);
+ [ :ethumb_client_disconnect, [ :ethumb_client ], :void ],
+ # EAPI void ethumb_client_on_server_die_callback_set(Ethumb_Client *client, Ethumb_Client_Die_Cb server_die_cb, const void *data, Eina_Free_Cb free_data);
+ [ :ethumb_client_on_server_die_callback_set, [ :ethumb_client, :ethumb_client_die_cb, :pointer, :eina_free_cb ], :void ],
+ # EAPI void ethumb_client_fdo_set(Ethumb_Client *client, Ethumb_Thumb_FDO_Size s);
+ [ :ethumb_client_fdo_set, [ :ethumb_client, :ethumb_thumb_fdo_size ], :void ],
+ # EAPI void ethumb_client_size_set(Ethumb_Client *client, int tw, int th);
+ [ :ethumb_client_size_set, [ :ethumb_client, :int, :int ], :void ],
+ # EAPI void ethumb_client_size_get(const Ethumb_Client *client, int *tw, int *th);
+ [ :ethumb_client_size_get, [ :ethumb_client, :pointer, :pointer ], :void ],
+ # EAPI void ethumb_client_format_set(Ethumb_Client *client, Ethumb_Thumb_Format f);
+ [ :ethumb_client_format_set, [ :ethumb_client, :ethumb_thumb_format ], :void ],
+ # EAPI Ethumb_Thumb_Format ethumb_client_format_get(const Ethumb_Client *client);
+ [ :ethumb_client_format_get, [ :ethumb_client ], :ethumb_thumb_format ],
+ # EAPI void ethumb_client_aspect_set(Ethumb_Client *client, Ethumb_Thumb_Aspect a);
+ [ :ethumb_client_aspect_set, [ :ethumb_client, :ethumb_thumb_aspect ], :void ],
+ # EAPI Ethumb_Thumb_Aspect ethumb_client_aspect_get(const Ethumb_Client *client);
+ [ :ethumb_client_aspect_get, [ :ethumb_client ], :ethumb_thumb_aspect ],
+ # EAPI void ethumb_client_orientation_set(Ethumb_Client *client, Ethumb_Thumb_Orientation o);
+ [ :ethumb_client_orientation_set, [ :ethumb_client, :ethumb_thumb_orientation ], :void ],
+ # EAPI Ethumb_Thumb_Orientation ethumb_client_orientation_get(const Ethumb_Client *client);
+ [ :ethumb_client_orientation_get, [ :ethumb_client ], :ethumb_thumb_orientation ],
+ # EAPI void ethumb_client_crop_align_set(Ethumb_Client *client, float x, float y);
+ [ :ethumb_client_crop_align_set, [ :ethumb_client, :float, :float ], :void ],
+ # EAPI void ethumb_client_crop_align_get(const Ethumb_Client *client, float *x, float *y);
+ [ :ethumb_client_crop_align_get, [ :ethumb_client, :pointer, :pointer ], :void ],
+ # EAPI void ethumb_client_quality_set(Ethumb_Client *client, int quality);
+ [ :ethumb_client_quality_set, [ :ethumb_client, :int ], :void ],
+ # EAPI int ethumb_client_quality_get(const Ethumb_Client *client);
+ [ :ethumb_client_quality_get, [ :ethumb_client ], :int ],
+ # EAPI void ethumb_client_compress_set(Ethumb_Client *client, int compress);
+ [ :ethumb_client_compress_set, [ :ethumb_client, :int ], :void ],
+ # EAPI int ethumb_client_compress_get(const Ethumb_Client *client);
+ [ :ethumb_client_compress_get, [ :ethumb_client ], :int ],
+ # EAPI Eina_Bool ethumb_client_frame_set(Ethumb_Client *client, const char *file, const char *group, const char *swallow);
+ [ :ethumb_client_frame_set, [ :ethumb_client, :string, :string, :string ], :bool ],
+ # EAPI void ethumb_client_dir_path_set(Ethumb_Client *client, const char *path);
+ [ :ethumb_client_dir_path_set, [ :ethumb_client, :string ], :void ],
+ # EAPI const char * ethumb_client_dir_path_get(const Ethumb_Client *client);
+ [ :ethumb_client_dir_path_get, [ :ethumb_client ], :string ],
+ # EAPI void ethumb_client_category_set(Ethumb_Client *client, const char *category);
+ [ :ethumb_client_category_set, [ :ethumb_client, :string ], :void ],
+ # EAPI const char * ethumb_client_category_get(const Ethumb_Client *client);
+ [ :ethumb_client_category_get, [ :ethumb_client ], :string ],
+ # EAPI void ethumb_client_video_time_set(Ethumb_Client *client, float time);
+ [ :ethumb_client_video_time_set, [ :ethumb_client, :float ], :void ],
+ # EAPI void ethumb_client_video_start_set(Ethumb_Client *client, float start);
+ [ :ethumb_client_video_start_set, [ :ethumb_client, :float ], :void ],
+ # EAPI void ethumb_client_video_interval_set(Ethumb_Client *client, float interval);
+ [ :ethumb_client_video_interval_set, [ :ethumb_client, :float ], :void ],
+ # EAPI void ethumb_client_video_ntimes_set(Ethumb_Client *client, unsigned int ntimes);
+ [ :ethumb_client_video_ntimes_set, [ :ethumb_client, :uint ], :void ],
+ # EAPI void ethumb_client_video_fps_set(Ethumb_Client *client, unsigned int fps);
+ [ :ethumb_client_video_fps_set, [ :ethumb_client, :uint ], :void ],
+ # EAPI void ethumb_client_document_page_set(Ethumb_Client *client, unsigned int page);
+ [ :ethumb_client_document_page_set, [ :ethumb_client, :uint ], :void ],
+ # EAPI void ethumb_client_ethumb_setup(Ethumb_Client *client);
+ [ :ethumb_client_ethumb_setup, [ :ethumb_client ], :void ],
+ # EAPI void ethumb_client_thumb_path_set(Ethumb_Client *client, const char *path, const char *key);
+ [ :ethumb_client_thumb_path_set, [ :ethumb_client, :string, :string ], :void ],
+ # EAPI void ethumb_client_thumb_path_get(Ethumb_Client *client, const char **path, const char **key);
+ [ :ethumb_client_thumb_path_get, [ :ethumb_client, :pointer, :pointer ], :void ],
+ # EAPI Eina_Bool ethumb_client_file_set(Ethumb_Client *client, const char *path, const char *key);
+ [ :ethumb_client_file_set, [ :ethumb_client, :string, :string ], :bool ],
+ # EAPI void ethumb_client_file_get(Ethumb_Client *client, const char **path, const char **key);
+ [ :ethumb_client_file_get, [ :ethumb_client, :pointer, :pointer ], :void ],
+ # EAPI void ethumb_client_file_free(Ethumb_Client *client);
+ [ :ethumb_client_file_free, [ :ethumb_client ], :void ],
+ # EAPI Ethumb_Exists *ethumb_client_thumb_exists(Ethumb_Client *client, Ethumb_Client_Thumb_Exists_Cb exists_cb, const void *data);
+ [ :ethumb_client_thumb_exists, [ :ethumb_client, :ethumb_client_thumb_exists_cb, :pointer ], :ethumb_exists ],
+ # EAPI void ethumb_client_thumb_exists_cancel(Ethumb_Exists *exists);
+ [ :ethumb_client_thumb_exists_cancel, [ :ethumb_exists ], :void ],
+ # EAPI Eina_Bool ethumb_client_thumb_exists_check(Ethumb_Exists *exists);
+ [ :ethumb_client_thumb_exists_check, [ :ethumb_exists ], :bool ],
+ # EAPI int ethumb_client_generate(Ethumb_Client *client, Ethumb_Client_Generate_Cb generated_cb, const void *data, Eina_Free_Cb free_data);
+ [ :ethumb_client_generate, [ :ethumb_client, :ethumb_client_generate_cb, :pointer, :eina_free_cb ], :int ],
+ # EAPI void ethumb_client_generate_cancel(Ethumb_Client *client, int id, Ethumb_Client_Generate_Cancel_Cb cancel_cb, const void *data, Eina_Free_Cb free_data);
+ [ :ethumb_client_generate_cancel, [ :ethumb_client, :int, :ethumb_client_generate_cancel_cb, :pointer, :eina_free_cb ], :void ],
+ # EAPI void ethumb_client_generate_cancel_all(Ethumb_Client *client);
+ [ :ethumb_client_generate_cancel_all, [ :ethumb_client ], :void ],
+ # EAPI Ethumb_Client_Async *ethumb_client_thumb_async_get(Ethumb_Client *client, Ethumb_Client_Async_Done_Cb done, Ethumb_Client_Async_Error_Cb error, const void *data);
+ [ :ethumb_client_thumb_async_get, [ :ethumb_client, :ethumb_client_async_done_cb, :ethumb_client_async_error_cb, :pointer ],
+ :ethumb_client_async ],
+ # EAPI void ethumb_client_thumb_async_cancel(Ethumb_Client *client, Ethumb_Client_Async *request);
+ [ :ethumb_client_thumb_async_cancel, [ :ethumb_client, :ethumb_client_async ], :void ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF
diff --git a/lib/efl/native/ethumb_plugin.rb b/lib/efl/native/ethumb_plugin.rb
new file mode 100644
index 0000000..8b6f230
--- /dev/null
+++ b/lib/efl/native/ethumb_plugin.rb
@@ -0,0 +1,57 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/evas'
+require 'efl/native/ecore_evas'
+require 'efl/native/ethumb'
+#
+module Efl
+ #
+ module EthumbPlugin
+ #
+ FCT_PREFIX = 'ethumb_plugin_' unless const_defined? :FCT_PREFIX
+ #
+ def self.method_missing meth, *args, &block
+ sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
+ self.send sym, *args, &block
+ end
+ #
+ end
+ #
+ module Native
+ #
+ ffi_lib 'ethumb'
+ #
+ # TYPEDEFS
+ # typedef struct _Ethumb_Plugin Ethumb_Plugin;
+ typedef :pointer, :ethumb_plugin
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI void ethumb_calculate_aspect_from_ratio(Ethumb *e, float ia, int *w, int *h);
+ [ :ethumb_calculate_aspect_from_ratio, [ :ethumb, :float, :pointer, :pointer ], :void ],
+ # EAPI void ethumb_calculate_aspect(Ethumb *e, int iw, int ih, int *w, int *h);
+ [ :ethumb_calculate_aspect, [ :ethumb, :int, :int, :pointer, :pointer ], :void ],
+ # EAPI void ethumb_calculate_fill_from_ratio(Ethumb *e, float ia, int *fx, int *fy, int *fw, int *fh);
+ [ :ethumb_calculate_fill_from_ratio, [ :ethumb, :float, :pointer, :pointer, :pointer, :pointer ], :void ],
+ # EAPI void ethumb_calculate_fill(Ethumb *e, int iw, int ih, int *fx, int *fy, int *fw, int *fh);
+ [ :ethumb_calculate_fill, [ :ethumb, :int, :int, :pointer, :pointer, :pointer, :pointer ], :void ],
+ # EAPI Eina_Bool ethumb_plugin_image_resize(Ethumb *e, int w, int h);
+ [ :ethumb_plugin_image_resize, [ :ethumb, :int, :int ], :bool ],
+ # EAPI Eina_Bool ethumb_image_save(Ethumb *e);
+ [ :ethumb_image_save, [ :ethumb ], :bool ],
+ # EAPI void ethumb_finished_callback_call(Ethumb *e, int result);
+ [ :ethumb_finished_callback_call, [ :ethumb, :int ], :void ],
+ # EAPI Evas * ethumb_evas_get(const Ethumb *e);
+ [ :ethumb_evas_get, [ :ethumb ], :evas ],
+ # EAPI Ecore_Evas * ethumb_ecore_evas_get(const Ethumb *e);
+ [ :ethumb_ecore_evas_get, [ :ethumb ], :ecore_evas ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF