X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Frua.h;h=c310be5e25554bc0b795c936a35f4ca2de2f7e3e;hb=674754cc38be0174a855011306dde0b2951b4081;hp=ad38464f48400cfc3a14c2621a0e15e5d23a7e94;hpb=4259894fde81136eca754812738695dc6871fe74;p=platform%2Fcore%2Fappfw%2Flibrua.git diff --git a/include/rua.h b/include/rua.h old mode 100755 new mode 100644 index ad38464..c310be5 --- a/include/rua.h +++ b/include/rua.h @@ -25,24 +25,9 @@ #ifndef __RUA_H__ #define __RUA_H__ -#include -#include #include -#include #include -#include - -#ifdef LOG_TAG -#undef LOG_TAG -#endif - -#define LOG_TAG "RUA" - -#ifndef API -#define API __attribute__ ((visibility("default"))) -#endif - #ifdef __cplusplus extern "C" { #endif @@ -75,6 +60,7 @@ struct rua_rec { char *instance_name; /**< Instance Name */ char *icon; /**< Icon path */ char *uri; /**< URI */ + char *image; /**< Image path */ }; /** @@ -97,7 +83,7 @@ typedef void (*rua_history_update_cb) ( * @retval 0 on successful * @retval -1 on failed */ -API int rua_add_history_for_uid(char *pkg_name, char *app_path, char *arg, uid_t uid); +int rua_add_history_for_uid(char *pkg_name, char *app_path, char *arg, uid_t uid); /** * @brief Delete history with pkg_name @@ -106,8 +92,8 @@ API int rua_add_history_for_uid(char *pkg_name, char *app_path, char *arg, uid_t * @retval 0 on successful * @retval -1 on failed */ -API int rua_delete_history_with_pkgname(char *pkg_name); -API int rua_delete_history_with_pkgname_for_uid(char *pkg_name, uid_t uid); +int rua_delete_history_with_pkgname(char *pkg_name); +int rua_delete_history_with_pkgname_for_uid(char *pkg_name, uid_t uid); /** * @brief Delete history with app_path @@ -116,17 +102,17 @@ API int rua_delete_history_with_pkgname_for_uid(char *pkg_name, uid_t uid); * @retval 0 on successful * @retval -1 on failed */ -API int rua_delete_history_with_apppath(char *app_path); -API int rua_delete_history_with_apppath_for_uid(char *app_path, uid_t uid); +int rua_delete_history_with_apppath(char *app_path); +int rua_delete_history_with_apppath_for_uid(char *app_path, uid_t uid); /** * @brief Clear history - * @return 0 on success, otherwise a nagative error value + * @return 0 on success, otherwise a nagative error value * @retval 0 on successful * @retval -1 on failed */ -API int rua_clear_history(void); -API int rua_clear_history_for_uid(uid_t uid); +int rua_clear_history(void); +int rua_clear_history_for_uid(uid_t uid); /** * @brief Load recently used application history db. @@ -137,8 +123,8 @@ API int rua_clear_history_for_uid(uid_t uid); * @retval 0 on successful * @retval -1 on failed */ -API int rua_history_load_db(char ***table, int *nrows, int *ncols); -API int rua_history_load_db_for_uid(char ***table, int *nrows, int *ncols, uid_t uid); +int rua_history_load_db(char ***table, int *nrows, int *ncols); +int rua_history_load_db_for_uid(char ***table, int *nrows, int *ncols, uid_t uid); /** * @brief Unload recently used application history db. @@ -147,7 +133,7 @@ API int rua_history_load_db_for_uid(char ***table, int *nrows, int *ncols, uid_t * @retval 0 on successful * @retval -1 on failed */ -API int rua_history_unload_db(char ***table); +int rua_history_unload_db(char ***table); /** * @brief Load recently used application record. @@ -160,7 +146,7 @@ API int rua_history_unload_db(char ***table); * @retval 0 on successful * @retval -1 on failed */ -API int rua_history_get_rec(struct rua_rec *rec, char **table, +int rua_history_get_rec(struct rua_rec *rec, char **table, int nrows, int ncols, int row); /** @@ -170,8 +156,8 @@ API int rua_history_get_rec(struct rua_rec *rec, char **table, * @retval 0 if given pkg_name is lastest application * @retval -1 if not lastest applicaton or on failed */ -API int rua_is_latest_app(const char *pkg_name); -API int rua_is_latest_app_for_uid(const char *pkg_name, uid_t uid); +int rua_is_latest_app(const char *pkg_name); +int rua_is_latest_app_for_uid(const char *pkg_name, uid_t uid); /** * @brief Delete rua history with instance id @@ -179,7 +165,7 @@ API int rua_is_latest_app_for_uid(const char *pkg_name, uid_t uid); * @param[in] instance_id The instance ID * @return 0 on success, otherwise a negative error value */ -API int rua_delete_history_with_instance_id(const char *app_id, +int rua_delete_history_with_instance_id(const char *app_id, const char *instance_id); /** @@ -191,9 +177,9 @@ API int rua_delete_history_with_instance_id(const char *app_id, * @retval 0 if on successful * @retval -1 if it is already registered or on failed */ -API int rua_register_update_cb(rua_history_update_cb callback, +int rua_register_update_cb(rua_history_update_cb callback, void *user_data, int *callback_id); -API int rua_register_update_cb_for_uid(rua_history_update_cb callback, +int rua_register_update_cb_for_uid(rua_history_update_cb callback, void *user_data, int *callback_id, uid_t uid); /** @@ -203,8 +189,8 @@ API int rua_register_update_cb_for_uid(rua_history_update_cb callback, * @retval 0 if on successful * @retval -1 if the callback was not registered or on failed */ -API int rua_unregister_update_cb(int callback_id); -API int rua_unregister_update_cb_for_uid(int callback_id, uid_t uid); +int rua_unregister_update_cb(int callback_id); +int rua_unregister_update_cb_for_uid(int callback_id, uid_t uid); /** * @brief Initialize rua @@ -212,7 +198,7 @@ API int rua_unregister_update_cb_for_uid(int callback_id, uid_t uid); * @retval 0 on successful * @retval -1 on failed */ -API int rua_init(void); +int rua_init(void); /** * @brief Finalize rua @@ -220,7 +206,7 @@ API int rua_init(void); * @retval 0 on successful * @retval -1 on failed */ -API int rua_fini(void); +int rua_fini(void); #ifdef __cplusplus }