cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=8909f760558bba8ed71b2b1e71c1a3944f404cf8

commit 8909f760558bba8ed71b2b1e71c1a3944f404cf8
Author: Maksym Volodin <m.volo...@samsung.com>
Date:   Fri Mar 13 08:33:04 2015 +0100

    edje: add edje_edit_full_source_generate() as a public API.
    
    Summary: added full source code generation as public API for Edje Editor 
application.
    
    Reviewers: Hermet, seoz, raster, cedric
    
    Reviewed By: cedric
    
    Subscribers: reutskiy.v.v, cedric
    
    Differential Revision: https://phab.enlightenment.org/D2100
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/edje/Edje_Edit.h | 15 +++++++++++++++
 src/lib/edje/edje_edit.c |  9 +++++++++
 2 files changed, 24 insertions(+)

diff --git a/src/lib/edje/Edje_Edit.h b/src/lib/edje/Edje_Edit.h
index 249ed3c..42641f3 100644
--- a/src/lib/edje/Edje_Edit.h
+++ b/src/lib/edje/Edje_Edit.h
@@ -6442,6 +6442,21 @@ EAPI const Eina_List 
*edje_edit_script_error_list_get(Evas_Object *obj);
 
 EAPI const char *edje_edit_source_generate(Evas_Object *obj);
 
+/**
+ * Return source code of all collections.
+ *
+ * Remember to free the string with free()
+ *
+ * This function will generate and return source code of all collections and
+ * other top level blocks.
+ *
+ * @param obj The object being edited
+ *
+ * @return Source code as char *.
+ */
+
+EAPI char *edje_edit_full_source_generate(Evas_Object *obj);
+
 //@}
 
/******************************************************************************/
 /**************************   ERROR API   ***********************************/
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index cd3b38c..87cfa19 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -11773,6 +11773,15 @@ _edje_generate_source(Evas_Object *obj)
    return buf;
 }
 
+EAPI char *
+edje_edit_full_source_generate(Evas_Object *obj)
+{
+   Eina_Strbuf *code = _edje_generate_source(obj);
+   /* return resulted source code */
+   char *ret = eina_strbuf_string_steal(code);
+   eina_strbuf_free(code);
+   return ret;
+}
 
 
 /*********************/

-- 


Reply via email to