diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ug-module.h | 3 | ||||
-rwxr-xr-x | include/ui-gadget.h | 36 |
2 files changed, 38 insertions, 1 deletions
diff --git a/include/ug-module.h b/include/ug-module.h index a6fc459..7d7bf5e 100644 --- a/include/ug-module.h +++ b/include/ug-module.h @@ -26,11 +26,12 @@ struct ug_module { void *handle; - const char *module_name; + char *module_name; struct ug_module_ops ops; }; struct ug_module *ug_module_load(const char *name); int ug_module_unload(struct ug_module *module); +int ug_exist(const char* name); #endif /* __UG_MODULE_H__ */ diff --git a/include/ui-gadget.h b/include/ui-gadget.h index 0ebcc38..a570f5a 100755 --- a/include/ui-gadget.h +++ b/include/ui-gadget.h @@ -148,8 +148,11 @@ struct ug_cbs { void (*result_cb) (ui_gadget_h ug, service_h result, void *priv); /** destroy callback */ void (*destroy_cb) (ui_gadget_h ug, void *priv); + /** end callback */ + void (*end_cb) (ui_gadget_h ug, void *priv); /** private data */ void *priv; + void *reserved[3]; }; /** @@ -741,6 +744,39 @@ int ug_send_message(ui_gadget_h ug, service_h msg); */ int ug_disable_effect(ui_gadget_h ug); +/** + * \par Description: + * This function check whether given ug is installed or not + * + * \par Purpose: + * This function is used for checking whether given ug is installed or not + * + * \par Typical use case: + * Anyone who want to know whether given ug is installed or not + * + * \par Method of function operation: + * This function returns value that ug is installed or not. + * + * \par Context of function: + * N/A + * + * @param[in] ug The UI gadget + * @return 1 - installed, 0 - installed, -1 - error + * + * \pre None + * \post None + * \see None + * \remarks None + * + * \par Sample code: + * \code + * #include <ui-gadget.h> + * ... + * ret = ug_is_installed(ug); + * ... + */ +int ug_is_installed(const char *name); + #ifdef __cplusplus } #endif |