2 * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __TIZEN_APPFW_APP_MANAGER_INTERNAL_H
18 #define __TIZEN_APPFW_APP_MANAGER_INTERNAL_H
20 #include "app_manager.h"
21 #include "app_context.h"
22 #include "app_manager_extension.h"
25 #define API __attribute__ ((visibility("default")))
33 * @file app_manager_internal.h
37 * @addtogroup CAPI_APPLICATION_MANAGER_MODULE
41 int app_manager_error(app_manager_error_e error, const char *function, const char *description);
43 int app_context_foreach_app_context(app_manager_app_context_cb callback, void *user_data);
45 int app_context_foreach_running_app_context(app_manager_app_context_cb callback, void *user_data);
47 int app_context_get_app_context(const char *app_id, app_context_h *app_context);
49 int app_context_set_event_cb(app_manager_app_context_event_cb callback, void *user_data);
51 int app_context_set_status_cb(app_manager_app_context_status_cb callback, const char *appid, void *user_data);
53 void app_context_unset_event_cb(void);
55 int app_info_foreach_app_info(app_manager_app_info_cb callback, void *user_data);
57 int app_info_get_app_info(const char *app_id, app_info_h *app_info);
59 int app_context_get_app_context_by_instance_id(const char *app_id, const char *instance_id, app_context_h *app_context);
61 int app_context_get_instance_id(app_context_h app_context, char **instance_id);
71 #endif /* __TIZEN_APPFW_APP_MANAGER_INTERNAL_H */