summaryrefslogtreecommitdiff
path: root/src/lib/edje
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-08-05 14:47:25 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-08-05 14:47:25 +0900
commit432b9b1dcde17af826ba336c00f18643a3fd6232 (patch)
treea1a5bed083bcf6c541714d8e9d82583d8e378d90 /src/lib/edje
parent7b59a4851e23bb9b5b523bd50030182e1b765faa (diff)
edje - add embryo echo command for debugging
finally add one... @feature
Diffstat (limited to 'src/lib/edje')
-rw-r--r--src/lib/edje/edje_embryo.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/edje/edje_embryo.c b/src/lib/edje/edje_embryo.c
index 081fe0e620..4f6812f71b 100644
--- a/src/lib/edje/edje_embryo.c
+++ b/src/lib/edje/edje_embryo.c
@@ -4500,6 +4500,26 @@ _edje_embryo_fn_swallow_has_content(Embryo_Program *ep, Embryo_Cell *params)
4500 return 1; 4500 return 1;
4501} 4501}
4502 4502
4503/* get_part_id(part[]) */
4504static Embryo_Cell
4505_edje_embryo_fn_echo(Embryo_Program *ep, Embryo_Cell *params)
4506{
4507 Edje *ed;
4508 char *p;
4509
4510 CHKPARAM(1);
4511 ed = embryo_program_data_get(ep);
4512 GETSTR(p, params[1]);
4513 if (!p) return -1;
4514 fprintf(stderr,
4515 "<EDJE ECHO> [%llx | %s:%s]: %s\n",
4516 (unsigned long long)((uintptr_t)ed),
4517 ed->path,
4518 ed->group,
4519 p);
4520 return 0;
4521}
4522
4503void 4523void
4504_edje_embryo_script_init(Edje_Part_Collection *edc) 4524_edje_embryo_script_init(Edje_Part_Collection *edc)
4505{ 4525{
@@ -4631,6 +4651,7 @@ _edje_embryo_script_init(Edje_Part_Collection *edc)
4631#endif 4651#endif
4632 4652
4633 embryo_program_native_call_add(ep, "swallow_has_content", _edje_embryo_fn_swallow_has_content); 4653 embryo_program_native_call_add(ep, "swallow_has_content", _edje_embryo_fn_swallow_has_content);
4654 embryo_program_native_call_add(ep, "echo", _edje_embryo_fn_echo);
4634} 4655}
4635 4656
4636void 4657void