efl: Renamed Ecore.Time to Efl.Time and defined it
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Tue, 9 Feb 2016 15:28:25 +0000 (13:28 -0200)
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Tue, 9 Feb 2016 15:28:25 +0000 (13:28 -0200)
Moved the Ecore.Time @extern struct to Efl lib and defined it as
specified in C specification for struct tm. Thus, bindings can be
automatically generated for where struct tm is used.

src/Makefile_Efl.am
src/lib/ecore/Ecore_Common.h
src/lib/ecore/ecore_types.eot
src/lib/efl/Efl.h
src/lib/efl/efl_types.eot [new file with mode: 0644]

index 4b6f6c0..e98a74f 100644 (file)
@@ -25,6 +25,7 @@ efl_eolian_files = \
 
 efl_eolian_type_files = \
        lib/efl/interfaces/efl_gfx_types.eot \
+       lib/efl/efl_types.eot \
        $(NULL)
 
 efl_eolian_files_h = $(efl_eolian_files:%.eo=%.eo.h) \
index 11fc219..e958cce 100644 (file)
@@ -6,17 +6,6 @@ extern "C" {
 
 #include "ecore_types.eot.h"
 
-
-/**
- * @ingroup Ecore
- * @since 1.18
- *
- * This type is a alias to struct tm.
- * It is intended to be a standard way to reference it in .eo files.
- * Each language should manually bind it.
- */
-typedef struct tm Ecore_Time;
-
 /**
  * @defgroup Ecore_Init_Group Ecore initialization, shutdown functions and reset on fork.
  * @ingroup Ecore
index 11e5cdf..6e5744e 100644 (file)
@@ -1,12 +1,4 @@
 
-struct @extern Ecore.Time; [[
-                             This type is a alias for struct tm.
-                             It is intended to be a standard way to reference
-                             it in .eo files.
-                             Each language should manually bind it.
-                             @since 1.18
-                           ]]
-
 enum Ecore.Pos_Map
 {
    [[Defines the position mappings for the animation.]]
index b45b791..c02161f 100644 (file)
@@ -37,6 +37,17 @@ extern "C" {
 
 #ifdef EFL_BETA_API_SUPPORT
 
+#include "efl_types.eot.h"
+
+/**
+ * @ingroup Efl
+ * @since 1.18
+ *
+ * This type is a alias to struct tm.
+ * It is intended to be a standard way to reference it in .eo files.
+ */
+typedef struct tm Efl_Time;
+
 #include <Efl_Model_Common.h>
 
 /* Data types */
diff --git a/src/lib/efl/efl_types.eot b/src/lib/efl/efl_types.eot
new file mode 100644 (file)
index 0000000..dd6d08c
--- /dev/null
@@ -0,0 +1,20 @@
+
+struct @extern Efl.Time
+{
+   [[This type is a alias for struct tm.
+     It is intended to be a standard way to reference
+     it in .eo files.
+
+     @since 1.18
+   ]]
+
+   tm_sec: int;          [[Seconds.    [0-60] (1 leap second)]]
+   tm_min: int;          [[Minutes.    [0-59] ]]
+   tm_hour: int;  [[Hours.     [0-23] ]]
+   tm_mday: int;  [[Day.               [1-31] ]]
+   tm_mon: int;          [[Month.      [0-11] ]]
+   tm_year: int;  [[Year       - 1900.]]
+   tm_wday: int;  [[Day of week.       [0-6] ]]
+   tm_yday: int;  [[Days in year.[0-365] ]]
+   tm_isdst: int; [[DST. [-1/0/1] ]]
+}