int app_manager_foreach_visible_app_context(app_manager_app_context_cb callback, void *user_data);
/**
+ * @brief Adds a new group information to the app group.
+ * @details A new app group will be added using the given window ID.
+ * @since_tizen 6.0
+ *
+ * @parma[in] win_id The window ID
+ * @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_IO_ERROR I/O error
+ * @retval #APP_MANAGER_ERROR_OUT_OF_MEMORY Out of memroy
+ */
+int app_manager_add_app_group(int win_id);
+
+/**
+ * @brief Removes the app group using the given window ID.
+ * @since_tizen 6.0
+ *
+ * @param[in] win_id The window ID
+ * @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_IO_ERROR I/O error
+ * @retval #APP_MANAGER_ERROR_OUT_OF_MEMORY Out of memroy
+ */
+int app_manager_remove_app_group(int win_id);
+
+/**
* @}
*/
#include <unistd.h>
#include <aul.h>
+#include <aul_app_group.h>
#include <aul_window.h>
#include <cynara-client.h>
#include <dlog.h>
return APP_MANAGER_ERROR_NONE;
}
+
+API int app_manager_add_app_group(int win_id)
+{
+ int ret;
+
+ ret = aul_app_group_add(win_id);
+ if (ret != AUL_R_OK)
+ return app_manager_error(__aul_error_convert(ret), __FUNCTION__, NULL);
+
+ return APP_MANAGER_ERROR_NONE;
+}
+
+API int app_manager_remove_app_group(int win_id)
+{
+ int ret;
+
+ ret = aul_app_group_remove(win_id);
+ if (ret != AUL_R_OK)
+ return app_manager_error(__aul_error_convert(ret), __FUNCTION__, NULL);
+
+ return APP_MANAGER_ERROR_NONE;
+}