summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy.zurcher@heraeus.com>2011-04-20 09:32:35 +0200
committerJérémy Zurcher <jeremy.zurcher@heraeus.com>2011-04-20 09:32:35 +0200
commitd1d0a4652b570f1bd76c5550d7a39520954cd533 (patch)
tree7ecfb72f519dfb3c1cf4109d2c4b0b83404267fb
parent281ff9960f6d4666b66a7c1206f99f313b3a8074 (diff)
downloadffi-efl-d1d0a4652b570f1bd76c5550d7a39520954cd533.zip
ffi-efl-d1d0a4652b570f1bd76c5550d7a39520954cd533.tar.gz
regenerate eina, eet and ecore FFI
-rw-r--r--lib/e17/ecore/ecore-ffi.rb13
-rw-r--r--lib/e17/eet/eet-ffi.rb1
-rw-r--r--lib/e17/eina/eina_types-ffi.rb44
3 files changed, 44 insertions, 14 deletions
diff --git a/lib/e17/ecore/ecore-ffi.rb b/lib/e17/ecore/ecore-ffi.rb
index 7e94c97..f8f21c2 100644
--- a/lib/e17/ecore/ecore-ffi.rb
+++ b/lib/e17/ecore/ecore-ffi.rb
@@ -21,19 +21,14 @@ module E17
# TYPEDEFS
# typedef struct _Ecore_Version Ecore_Version;
typedef :pointer, :ecore_version
- typedef :pointer, :ecore_version_p
# typedef enum _Ecore_Fd_Handler_Flags Ecore_Fd_Handler_Flags;
typedef :pointer, :ecore_fd_handler_flags
- typedef :pointer, :ecore_fd_handler_flags_p
# typedef enum _Ecore_Exe_Flags Ecore_Exe_Flags;
typedef :pointer, :ecore_exe_flags
- typedef :pointer, :ecore_exe_flags_p
# typedef enum _Ecore_Exe_Win32_Priority Ecore_Exe_Win32_Priority;
typedef :pointer, :ecore_exe_win32_priority
- typedef :pointer, :ecore_exe_win32_priority_p
# typedef enum _Ecore_Poller_Type Ecore_Poller_Type;
typedef :pointer, :ecore_poller_type
- typedef :pointer, :ecore_poller_type_p
# typedef struct _Ecore_Exe Ecore_Exe;
typedef :pointer, :ecore_exe
typedef :pointer, :ecore_exe_p
@@ -75,28 +70,20 @@ module E17
typedef :pointer, :ecore_poller_p
# typedef struct _Ecore_Event_Signal_User Ecore_Event_Signal_User;
typedef :pointer, :ecore_event_signal_user
- typedef :pointer, :ecore_event_signal_user_p
# typedef struct _Ecore_Event_Signal_Hup Ecore_Event_Signal_Hup;
typedef :pointer, :ecore_event_signal_hup
- typedef :pointer, :ecore_event_signal_hup_p
# typedef struct _Ecore_Event_Signal_Exit Ecore_Event_Signal_Exit;
typedef :pointer, :ecore_event_signal_exit
- typedef :pointer, :ecore_event_signal_exit_p
# typedef struct _Ecore_Event_Signal_Power Ecore_Event_Signal_Power;
typedef :pointer, :ecore_event_signal_power
- typedef :pointer, :ecore_event_signal_power_p
# typedef struct _Ecore_Event_Signal_Realtime Ecore_Event_Signal_Realtime;
typedef :pointer, :ecore_event_signal_realtime
- typedef :pointer, :ecore_event_signal_realtime_p
# typedef struct _Ecore_Exe_Event_Add Ecore_Exe_Event_Add;
typedef :pointer, :ecore_exe_event_add
- typedef :pointer, :ecore_exe_event_add_p
# typedef struct _Ecore_Exe_Event_Del Ecore_Exe_Event_Del;
typedef :pointer, :ecore_exe_event_del
- typedef :pointer, :ecore_exe_event_del_p
# typedef struct _Ecore_Exe_Event_Data_Line Ecore_Exe_Event_Data_Line;
typedef :pointer, :ecore_exe_event_data_line
- typedef :pointer, :ecore_exe_event_data_line_p
# typedef struct _Ecore_Exe_Event_Data Ecore_Exe_Event_Data;
typedef :pointer, :ecore_exe_event_data
typedef :pointer, :ecore_exe_event_data_p
diff --git a/lib/e17/eet/eet-ffi.rb b/lib/e17/eet/eet-ffi.rb
index 2728b0d..c26470c 100644
--- a/lib/e17/eet/eet-ffi.rb
+++ b/lib/e17/eet/eet-ffi.rb
@@ -29,7 +29,6 @@ module E17
# TYPEDEFS
# typedef struct _Eet_Version Eet_Version;
typedef :pointer, :eet_version
- typedef :pointer, :eet_version_p
# typedef struct _Eet_File Eet_File;
typedef :pointer, :eet_file
typedef :pointer, :eet_file_p
diff --git a/lib/e17/eina/eina_types-ffi.rb b/lib/e17/eina/eina_types-ffi.rb
new file mode 100644
index 0000000..221effe
--- /dev/null
+++ b/lib/e17/eina/eina_types-ffi.rb
@@ -0,0 +1,44 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'e17/ffi'
+#
+module E17
+ #
+ module Einatypes
+ def self.method_missing m, *args, &block
+ return E17::API.send 'eina_types_'+m.to_s, *args, &block
+ end
+ end
+ #
+ module API
+ #
+ #
+ ffi_lib 'eina'
+ #
+ # ENUMS
+ #
+ # TYPEDEFS
+ # typedef unsigned char Eina_Bool;
+ typedef :bool, :eina_bool
+ typedef :pointer, :eina_bool_p
+ #
+ # CALLBACKS
+ # typedef int (*Eina_Compare_Cb) (const void *data1, const void *data2);
+ callback :eina_compare_cb, [ :void_p, :void_p ], :int
+ # typedef Eina_Bool (*Eina_Each_Cb) (const void *container, void *data, void *fdata);
+ callback :eina_each_cb, [ :void_p, :void_p, :void_p ], :eina_bool
+ # typedef void (*Eina_Free_Cb) (void *data);
+ callback :eina_free_cb, [ :void_p ], :void
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI extern const unsigned int eina_prime_table[];
+ # FIXME
+ ]
+ #
+ attach_fcts fcts
+ end
+end
+#
+# EOF