5dc4fe6659e2a0e0c67dad288fe95ffdae673322
[platform/core/api/app-manager.git] / src / app_manager_internal.h
1 /*
2  * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 #ifndef __TIZEN_APPFW_APP_MANAGER_INTERNAL_H
18 #define __TIZEN_APPFW_APP_MANAGER_INTERNAL_H
19
20 #include "app_manager.h"
21 #include "app_context.h"
22 #include "app_manager_extension.h"
23
24 #ifndef API
25 #define API __attribute__ ((visibility("default")))
26 #endif
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
32 /**
33  * @file app_manager_internal.h
34  */
35
36 /**
37  * @addtogroup CAPI_APPLICATION_MANAGER_MODULE
38  * @{
39  */
40
41 int app_manager_error(app_manager_error_e error, const char *function, const char *description);
42
43 int app_context_foreach_app_context(app_manager_app_context_cb callback, void *user_data);
44
45 int app_context_foreach_running_app_context(app_manager_app_context_cb callback, void *user_data);
46
47 int app_context_get_app_context(const char *app_id, app_context_h *app_context);
48
49 int app_context_set_event_cb(app_manager_app_context_event_cb callback, void *user_data);
50
51 int app_context_set_status_cb(app_manager_app_context_status_cb callback, const char *appid, void *user_data);
52
53 void app_context_unset_event_cb(void);
54
55 int app_info_foreach_app_info(app_manager_app_info_cb callback, void *user_data);
56
57 int app_info_get_app_info(const char *app_id, app_info_h *app_info);
58
59 /**
60  * @}
61  */
62
63 #ifdef __cplusplus
64 }
65 #endif
66
67 #endif /* __TIZEN_APPFW_APP_MANAGER_INTERNAL_H */
68