forked from enlightenment/efl
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:
parent
473be85757
commit
8909f76055
|
@ -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);
|
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 ***********************************/
|
/************************** ERROR API ***********************************/
|
||||||
|
|
|
@ -11773,6 +11773,15 @@ _edje_generate_source(Evas_Object *obj)
|
||||||
return buf;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*********************/
|
/*********************/
|
||||||
|
|
Loading…
Reference in New Issue