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 <cedric@osg.samsung.com>
This commit is contained in:
Maksym Volodin 2015-03-13 08:33:04 +01:00 committed by Cedric BAIL
parent 473be85757
commit 8909f76055
2 changed files with 24 additions and 0 deletions

View File

@ -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 ***********************************/

View File

@ -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;
}
/*********************/