diff options
Diffstat (limited to 'src/ug.c')
-rw-r--r-- | src/ug.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -111,6 +111,21 @@ UG_API int ug_init(Display *disp, Window xid, void *win, enum ug_option opt) } #endif +UG_API int ug_init_efl(Evas_Object *win, enum ug_option opt) +{ + if (!win) { + _ERR("ug_init_efl() failed: Invalid arguments"); + return -1; + } + + if (opt < UG_OPT_INDICATOR_ENABLE || opt >= UG_OPT_MAX) { + _ERR("ug_init_efl() failed: Invalid option"); + return -1; + } + + return ugman_init_efl(win, opt); +} + UG_API int ug_pause(void) { return ugman_pause(); |