Support multiple instance launch
[platform/core/api/application.git] / include / app_control_internal.h
index 99aa537..afd8399 100644 (file)
@@ -204,6 +204,33 @@ int app_control_set_defapp(app_control_h app_control, const char *app_id);
  *
  */
 int app_control_unset_defapp(const char *app_id);
+
+/**
+ * @brief Sets the instance ID of the application
+ *
+ * @since_tizen tizen_3.0
+ * @param[in] app_control The app_control handle
+ * @param[in] instance_id The instance ID of the application
+ * @return 0 on success, otherwise a negative error value
+ * @retval #APP_CONTROL_ERROR_NONE Successful
+ * @retval #APP_CONTROL_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #APP_CONTROL_OUT_OF_MEMORY Out of memory
+ */
+int app_control_set_instance_id(app_control_h app_control, const char *instance_id);
+
+/**
+ * @brief Gets the instance ID of the application
+ *
+ * @since_tizen tizen_3.0
+ * @param[in] app_control The app_control handle
+ * @param[out] instance_id The instance ID of the application
+ * @return 0 on success, otherwise a negative error value
+ * @retval #APP_CONTROL_ERROR_NONE Successful
+ * @retval #APP_CONTROL_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #APP_CONTROL_OUT_OF_MEMORY Out of memory
+ */
+int app_control_get_instance_id(app_control_h app_control, char **instance_id);
+
 /**
  * @}
  */
@@ -213,4 +240,3 @@ int app_control_unset_defapp(const char *app_id);
 #endif
 
 #endif /* __TIZEN_APPFW_APP_CONTROL_INTERNAL_H__ */
-