rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=90bb05e335f0ffed1957f783831b73f48b2b41d2

commit 90bb05e335f0ffed1957f783831b73f48b2b41d2
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Tue Jan 5 16:36:59 2016 +0200

    diff: add FUNCTION_TYPE_STRING_EDJETWEENMODE
---
 src/bin/editor/diff.c | 12 ++++++++++++
 src/bin/editor/diff.h |  5 +++++
 2 files changed, 17 insertions(+)

diff --git a/src/bin/editor/diff.c b/src/bin/editor/diff.c
index b0d7807..f8dd56d 100644
--- a/src/bin/editor/diff.c
+++ b/src/bin/editor/diff.c
@@ -74,6 +74,8 @@ typedef Eina_Bool (* function_type_string_edjeactiontype) 
(Evas_Object *, Change
                                                            const char *, 
Edje_Action_Type);
 typedef Eina_Bool (* function_type_string_edjechannel) (Evas_Object *, 
Change*, Eina_Bool,
                                                         const char *, 
Edje_Channel);
+typedef Eina_Bool (* function_type_string_edjetweenmode) (Evas_Object *, 
Change*, Eina_Bool,
+                                                          const char *, 
Edje_Tween_Mode);
 
 static Eina_Bool
 _apply(Evas_Object *obj, Function_Info *fi)
@@ -164,6 +166,9 @@ _apply(Evas_Object *obj, Function_Info *fi)
       case FUNCTION_TYPE_STRING_EDJECHANNEL:
          return ((function_type_string_edjechannel)fi->function)(obj, NULL, 
false,
                   fi->args.type_sec.s1, fi->args.type_sec.ec2);
+      case FUNCTION_TYPE_STRING_EDJETWEENMODE:
+         return ((function_type_string_edjetweenmode)fi->function)(obj, NULL, 
false,
+                  fi->args.type_setm.s1, fi->args.type_setm.etm2);
 
          /* Don't add 'case default:'. Compiler should warn about new values 
in enum */
      }
@@ -344,6 +349,10 @@ diff_update(Diff *diff, Diff *new_diff)
          eina_stringshare_del(diff->redo.args.type_sec.s1);
          eina_stringshare_ref(new_diff->redo.args.type_sec.s1);
          break;
+      case FUNCTION_TYPE_STRING_EDJETWEENMODE:
+         eina_stringshare_del(diff->redo.args.type_setm.s1);
+         eina_stringshare_ref(new_diff->redo.args.type_setm.s1);
+         break;
          /* Do not forget to replace previous stringshares in 
existing_diff.redo
             if needed. */
          /* Don't add 'case default:'. Compiler should warn about new values 
in enum */
@@ -459,6 +468,9 @@ diff_free(Diff *diff)
       case FUNCTION_TYPE_STRING_EDJECHANNEL:
          eina_stringshare_del(diff->redo.args.type_sec.s1);
          break;
+      case FUNCTION_TYPE_STRING_EDJETWEENMODE:
+         eina_stringshare_del(diff->redo.args.type_setm.s1);
+         break;
          /* Do not forget to clean stringshares */
          /* Don't add 'case default:'. Compiler should warn about new values 
in enum */
      }
diff --git a/src/bin/editor/diff.h b/src/bin/editor/diff.h
index 741969d..4b95221 100644
--- a/src/bin/editor/diff.h
+++ b/src/bin/editor/diff.h
@@ -51,6 +51,7 @@ typedef enum {
    FUNCTION_TYPE_STRING_UCHAR,
    FUNCTION_TYPE_STRING_EDJEACTIONTYPE,
    FUNCTION_TYPE_STRING_EDJECHANNEL,
+   FUNCTION_TYPE_STRING_EDJETWEENMODE,
 } Function_Type;
 
 struct _Function_Info {
@@ -191,6 +192,10 @@ struct _Function_Info {
          Eina_Stringshare *s1;
          Edje_Channel ec2;
       } type_sec;
+      struct {
+         Eina_Stringshare *s1;
+         Edje_Tween_Mode etm2;
+      } type_setm;
    } args;              /**< function args not including Evas_Object * */
 };
 

-- 


Reply via email to