diff options
author | Youngjae Shin <yj99.shin@samsung.com> | 2017-09-13 11:12:36 +0900 |
---|---|---|
committer | Youngjae Shin <yj99.shin@samsung.com> | 2017-09-13 11:12:36 +0900 |
commit | 67d33bfb0b3ffb0e2bf509745c3667b290adabbd (patch) | |
tree | c9228c1547a9a53fae4ae761c5533d97ce680031 | |
parent | 091b875645361e20ce786d5c7be152e1eac6462e (diff) | |
download | aul-1-67d33bfb0b3ffb0e2bf509745c3667b290adabbd.tar.gz aul-1-67d33bfb0b3ffb0e2bf509745c3667b290adabbd.tar.bz2 aul-1-67d33bfb0b3ffb0e2bf509745c3667b290adabbd.zip |
fix coding rule error
Change-Id: I1ab7c42253cf98bf58bd04b476c94dc745db4504
-rw-r--r-- | include/aul.h | 32 | ||||
-rwxr-xr-x | include/aul_rsc_mgr.h | 4 | ||||
-rwxr-xr-x | include/aul_svc.h | 31 |
3 files changed, 33 insertions, 34 deletions
diff --git a/include/aul.h b/include/aul.h index c1e305d1..1ab282ff 100644 --- a/include/aul.h +++ b/include/aul.h @@ -590,7 +590,7 @@ int aul_open_app_for_uid(const char *appid, uid_t uid); /** * @par Description: * This API trigger to resume application - * If the application is running, this API send a resume event to the App. + * If the application is running, this API send a resume event to the App. * If the application is not running, this API returns fail. * Although the application is running, if the application cannot receive resume event, * AUL try to raise the application's default windows. @@ -635,7 +635,7 @@ int aul_resume_app(const char *appid); /** * @par Description: * This API trigger to resume application - * If the application is running, this API send a resume event to the App. + * If the application is running, this API send a resume event to the App. * If the application is not running, this API returns fail. * Although the application is running, if the application cannot receive resume event, * AUL try to raise the application's default windows. @@ -1140,9 +1140,9 @@ int aul_app_get_all_running_app_info_for_uid(aul_app_info_iter_fn iter_fn, void * static int app_reset(bundle *b, void *data) * { * int pid; - * char appname[255]; + * char appname[255]; * - * pid = atoi(bundle_get_val(b,AUL_K_CALLER_PID)); + * pid = atoi(bundle_get_val(b,AUL_K_CALLER_PID)); * aul_app_get_pkgname_bypid(pid, appname, sizeof(appname)); * } * @@ -1174,9 +1174,9 @@ int aul_app_get_pkgname_bypid(int pid, char *pkgname, int len); * static int app_reset(bundle *b, void *data) * { * int pid; - * char pkgid[255]; + * char pkgid[255]; * - * pid = atoi(bundle_get_val(b, AUL_K_CALLER_PID)); + * pid = atoi(bundle_get_val(b, AUL_K_CALLER_PID)); * aul_app_get_pkgid_bypid(pid, pkgid, sizeof(pkgid)); * } * @@ -1228,9 +1228,9 @@ int aul_app_get_pkgid_bypid_for_uid(int pid, char *pkgid, int len, uid_t uid); * static int app_reset(bundle *b, void *data) * { * int pid; - * char appid[255]; + * char appid[255]; * - * pid = atoi(bundle_get_val(b,AUL_K_CALLER_PID)); + * pid = atoi(bundle_get_val(b,AUL_K_CALLER_PID)); * aul_app_get_appid_bypid(pid, appid, sizeof(appid)); * } * @@ -1740,8 +1740,8 @@ int aul_send_service_result(bundle *b); * * int app_dead_handler(int pid, void *data) * { - * printf("===> %s : %d\n", __FUNCTION__, pid); - * return 0; + * printf("===> %s : %d\n", __FUNCTION__, pid); + * return 0; * } * * void dead_listen() @@ -1776,8 +1776,8 @@ int aul_listen_app_dead_signal(int (*func) (int, void *), void *data); * * int app_launch_handler(int pid, void *data) * { - * printf("===> %s : %d\n", __FUNCTION__, pid); - * return 0; + * printf("===> %s : %d\n", __FUNCTION__, pid); + * return 0; * } * * void dead_listen() @@ -1812,8 +1812,8 @@ int aul_listen_app_launch_signal(int (*func) (int, void *), void *data); * * int app_launch_handler(int pid, const char *app_id, void *data) * { - * printf("===> %s : %d, %s\n", __FUNCTION__, pid, app_id); - * return 0; + * printf("===> %s : %d, %s\n", __FUNCTION__, pid, app_id); + * return 0; * } * * void dead_listen() @@ -1949,7 +1949,7 @@ int aul_app_get_status_for_uid(const char *appid, uid_t uid); /** * @par Description - * This API sets callback function that on application status changed. + * This API sets callback function that on application status changed. * @par Purpose: * This API's purpose is to listen the application's status changed within * the caller process. In general, a library that required to release resource on @@ -1987,7 +1987,7 @@ int aul_add_status_local_cb(int (*func) (int, void *), void *data); /** * @par Description - * This API unsets callback function that on application status changed. + * This API unsets callback function that on application status changed. * @par Purpose: * This API's purpose is to remove callback that added by * aul_add_status_local_cb. diff --git a/include/aul_rsc_mgr.h b/include/aul_rsc_mgr.h index f549dab4..e27e3de3 100755 --- a/include/aul_rsc_mgr.h +++ b/include/aul_rsc_mgr.h @@ -106,7 +106,7 @@ int aul_resource_manager_get(aul_resource_e type, const char *id, char **path); * * @since_tizen 2.4 * @remarks Please make sure that the instance of resource manager should be released when the application is closing only. - * It is highly recommended way to improve run-time performance. + * It is highly recommended way to improve run-time performance. * @return @c 0 on success, * otherwise a negative error value * @retval #AUL_RESOURCE_ERROR_NONE Successful @@ -119,7 +119,7 @@ int aul_resource_manager_release(void); * * @since_tizen 2.4 * @remarks Please make sure that the instance of resource manager should be released when the application is closing only. - * It is highly recommended way to improve run-time performance. + * It is highly recommended way to improve run-time performance. * @return @c 0 on success, * otherwise a negative error value * @retval #AUL_RESOURCE_ERROR_NONE Successful diff --git a/include/aul_svc.h b/include/aul_svc.h index 24a163e6..c847a1a8 100755 --- a/include/aul_svc.h +++ b/include/aul_svc.h @@ -137,11 +137,10 @@ typedef enum _aul_svc_return_val { /** * @brief result values in appsvc. */ -typedef enum _aul_svc_result_val -{ - AUL_SVC_RES_CANCEL = -2, /**< Cancel by system */ - AUL_SVC_RES_NOT_OK = -1, /**< Fail by user */ - AUL_SVC_RES_OK = 0 /**< Success by user */ +typedef enum _aul_svc_result_val { + AUL_SVC_RES_CANCEL = -2, /**< Cancel by system */ + AUL_SVC_RES_NOT_OK = -1, /**< Fail by user */ + AUL_SVC_RES_OK = 0 /**< Success by user */ } aul_svc_result_val; @@ -792,14 +791,14 @@ const char *aul_svc_get_data(bundle *b, const char *key); ... { - char **val_array; - int len; - char *val; - - if(aul_svc_data_is_array(b, AUL_SVC_DATA_SELECTED)) - val_array = aul_svc_get_data_array(b, AUL_SVC_DATA_SELECTED, &len); - else - val = aul_svc_get_data(b, AUL_SVC_DATA_SELECTED); + char **val_array; + int len; + char *val; + + if(aul_svc_data_is_array(b, AUL_SVC_DATA_SELECTED)) + val_array = aul_svc_get_data_array(b, AUL_SVC_DATA_SELECTED, &len); + else + val = aul_svc_get_data(b, AUL_SVC_DATA_SELECTED); } * @endcode * @@ -904,9 +903,9 @@ int aul_svc_send_result(bundle *b, aul_svc_result_val result); * */ int aul_svc_set_defapp(const char *op, const char *mime_type, const char *uri, - const char *defapp); + const char *defapp); int aul_svc_set_defapp_for_uid(const char *op, const char *mime_type, const char *uri, - const char *defapp, uid_t uid); + const char *defapp, uid_t uid); /** * @par Description: @@ -1091,7 +1090,7 @@ const char *aul_svc_get_launch_mode(bundle *b); int aul_svc_allow_transient_app(bundle *b, int wid); int aul_svc_request_transient_app(bundle *b, int callee_wid, - aul_svc_host_res_fn cbfunc, void *data); + aul_svc_host_res_fn cbfunc, void *data); int aul_svc_subscribe_launch_result(bundle *b, const char *event); |