diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2018-02-02 16:59:56 -0500 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2018-02-02 16:59:44 -0500 |
commit | e8d24596a690443f73c44547b4df244e1990bd27 (patch) | |
tree | 1b6ecc02507c983a1c9a75f05fb3f10e0fecd3fd /src/lib/efl_wl/efl_wl.c | |
parent | 3c380717456c6a49808c656ef3bddcddbc611437 (diff) |
efl-wl: add functions for managing allowed client pids
@feature
Diffstat (limited to '')
-rw-r--r-- | src/lib/efl_wl/efl_wl.c | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/src/lib/efl_wl/efl_wl.c b/src/lib/efl_wl/efl_wl.c index 4c16eb6c33..7f4461438b 100644 --- a/src/lib/efl_wl/efl_wl.c +++ b/src/lib/efl_wl/efl_wl.c | |||
@@ -5667,12 +5667,34 @@ efl_wl_run(Evas_Object *obj, const char *cmd) | |||
5667 | if (exe) | 5667 | if (exe) |
5668 | { | 5668 | { |
5669 | int32_t pid = ecore_exe_pid_get(exe); | 5669 | int32_t pid = ecore_exe_pid_get(exe); |
5670 | ecore_exe_tag_set(exe, "__efl_wl"); | 5670 | eina_hash_add(c->exes, &pid, (void*)1); |
5671 | eina_hash_add(c->exes, &pid, exe); | ||
5672 | } | 5671 | } |
5673 | return exe; | 5672 | return exe; |
5674 | } | 5673 | } |
5675 | 5674 | ||
5675 | void | ||
5676 | efl_wl_pid_add(Evas_Object *obj, int32_t pid) | ||
5677 | { | ||
5678 | Comp *c; | ||
5679 | |||
5680 | if (!eina_streq(evas_object_type_get(obj), "comp")) abort(); | ||
5681 | c = evas_object_smart_data_get(obj); | ||
5682 | if (!c->exes) | ||
5683 | c->exes = eina_hash_int32_new(NULL); | ||
5684 | eina_hash_add(c->exes, &pid, (void*)1); | ||
5685 | } | ||
5686 | |||
5687 | void | ||
5688 | efl_wl_pid_del(Evas_Object *obj, int32_t pid) | ||
5689 | { | ||
5690 | Comp *c; | ||
5691 | |||
5692 | if (!eina_streq(evas_object_type_get(obj), "comp")) abort(); | ||
5693 | c = evas_object_smart_data_get(obj); | ||
5694 | if (!c->exes) return; | ||
5695 | eina_hash_del_by_key(c->exes, &pid); | ||
5696 | } | ||
5697 | |||
5676 | Eina_Bool | 5698 | Eina_Bool |
5677 | efl_wl_next(Evas_Object *obj) | 5699 | efl_wl_next(Evas_Object *obj) |
5678 | { | 5700 | { |