summaryrefslogtreecommitdiff
path: root/src/ug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ug.c')
-rwxr-xr-xsrc/ug.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ug.c b/src/ug.c
index aac737b..579d8fc 100755
--- a/src/ug.c
+++ b/src/ug.c
@@ -281,3 +281,13 @@ UG_API int ug_disable_effect(ui_gadget_h ug)
return 0;
}
+
+UG_API int ug_is_installed(const char *name)
+{
+ if(name == NULL){
+ _ERR("name is null");
+ return -1;
+ }
+
+ return ug_exist(name);
+}