From: Myungki Lee Date: Fri, 5 Jun 2015 02:18:32 +0000 (+0900) Subject: Creates a extension.h file and separate a terminate_app func. X-Git-Tag: accepted/tizen/mobile/20150624.044539^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c2618fabba4b45e34e104c8d0b201ec48c9a7044;p=platform%2Fcore%2Fapi%2Fapp-manager.git Creates a extension.h file and separate a terminate_app func. Change-Id: Ie65c6644682c94686bd891535f5515ef674d118d Signed-off-by: Myungki Lee --- diff --git a/include/app_manager.h b/include/app_manager.h index d63ecd3..53d9b21 100644 --- a/include/app_manager.h +++ b/include/app_manager.h @@ -236,22 +236,6 @@ int app_manager_request_terminate_bg_app(app_context_h app_context); */ int app_manager_open_app(const char *app_id); -/* FIXME: should be separated */ -/** - * @brief Terminates the application. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif - * @privlevel platform - * @privilege %http://tizen.org/privilege/appmanager.kill - * @param[in] app_context The application context - * @return @c 0 on success, - * otherwise a negative error value - * @retval #APP_MANAGER_ERROR_NONE Successful - * @retval #APP_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #APP_MANAGER_ERROR_REQUEST_FAILED Internal terminate error - * @retval #APP_MANAGER_ERROR_PERMISSION_DENIED Permission denied - */ -int app_manager_terminate_app(app_context_h app_context); - /** * @brief Retrieves all installed applications information. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif diff --git a/include/app_manager_extension.h b/include/app_manager_extension.h new file mode 100644 index 0000000..afb0a39 --- /dev/null +++ b/include/app_manager_extension.h @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __TIZEN_APPFW_APP_MANAGER_EXTENSION_H +#define __TIZEN_APPFW_APP_MANAGER_EXTENSION_H + +#include "app_manager.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @file app_manager_extension.h + */ + +/** + * @addtogroup CAPI_APPLICATION_MANAGER_MODULE + * @{ + */ + +/** + * @brief Terminates the application. + * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @privlevel platform + * @privilege %http://tizen.org/privilege/appmanager.kill + * @param[in] app_context The application context + * @return @c 0 on success, + * otherwise a negative error value + * @retval #APP_MANAGER_ERROR_NONE Successful + * @retval #APP_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #APP_MANAGER_ERROR_REQUEST_FAILED Internal terminate error + * @retval #APP_MANAGER_ERROR_PERMISSION_DENIED Permission denied + */ +int app_manager_terminate_app(app_context_h app_context); + +/** + * @} + */ + +#ifdef __cplusplus +} +#endif + +#endif /* __TIZEN_APPFW_APP_MANAGER_EXTENSION_H */