Creates a extension.h file and separate a terminate_app func. 28/40528/2 accepted/tizen/mobile/20150624.044539 accepted/tizen/tv/20150624.044640 accepted/tizen/wearable/20150624.044648 submit/tizen/20150624.012555
authorMyungki Lee <mk5004.lee@samsung.com>
Fri, 5 Jun 2015 02:18:32 +0000 (11:18 +0900)
committerSemun Lee <sm79.lee@samsung.com>
Fri, 5 Jun 2015 03:01:42 +0000 (20:01 -0700)
Change-Id: Ie65c6644682c94686bd891535f5515ef674d118d
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
include/app_manager.h
include/app_manager_extension.h [new file with mode: 0644]

index d63ecd3..53d9b21 100644 (file)
@@ -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 (file)
index 0000000..afb0a39
--- /dev/null
@@ -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 */