summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHyungdeuk Kim <hd3.kim@samsung.com>2013-04-09 15:05:51 +0900
committerHyungdeuk Kim <hd3.kim@samsung.com>2013-04-09 15:05:51 +0900
commit799d227d19ac183c6d6a44f2ec131ae46695c056 (patch)
tree34d54c2688b464745485941a82184cdf6d03beab /include
parent231c143ff59f6785db0f972f6f9e29512514b435 (diff)
downloadui-gadget-1-799d227d19ac183c6d6a44f2ec131ae46695c056.tar.gz
ui-gadget-1-799d227d19ac183c6d6a44f2ec131ae46695c056.tar.bz2
ui-gadget-1-799d227d19ac183c6d6a44f2ec131ae46695c056.zip
apply latest changes
Diffstat (limited to 'include')
-rw-r--r--include/ug-module.h3
-rwxr-xr-xinclude/ui-gadget.h36
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