Add new functions to handling running components
[platform/core/appfw/aul-1.git] / include / aul_debug_info.h
1 /*
2  * Copyright (c) 2018 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 __AUL_DEBUG_INFO_H__
18 #define __AUL_DEBUG_INFO_H__
19
20 #include <bundle.h>
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 /**
27  * @brief Initializes debug information.
28  *
29  * @return      @c 0 on success,
30  *              otherwise a negative error value
31  */
32 int aul_debug_info_init(void);
33
34 /**
35  * @brief Finalizes debug information.
36  *
37  * @return      @c 0 on success,
38  *              otherwise a negative error value
39  */
40 int aul_debug_info_fini(void);
41
42 /**
43  * @breif Sets the debug information into the bundle object.
44  *
45  * @param[in]   src             The bundle object
46  * @param[in]   dst             The bundle object
47  *
48  * @return      @c 0 on success,
49  *              otherwise a negative error value
50  */
51 int aul_debug_info_set(bundle *src, bundle *dst);
52
53 #ifdef __cplusplus
54 }
55 #endif
56
57 #endif /* __AUL_DEBUG_INFO_H__ */