[FEATURE] Implement kernel -> user connection
[platform/core/system/swap-manager.git] / daemon / elf.h
1 /*
2  *  DA manager
3  *
4  * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:
7  *
8  * Cherepanov Vitaliy <v.cherepanov@samsung.com>
9  * Dmitry Bogatov     <d.bogatov@samsung.com>
10  * Nikita Kalyazin    <n.kalyazin@samsung.com>
11  *
12  * Licensed under the Apache License, Version 2.0 (the "License");
13  * you may not use this file except in compliance with the License.
14  * You may obtain a copy of the License at
15  *
16  * http://www.apache.org/licenses/LICENSE-2.0
17  *
18  * Unless required by applicable law or agreed to in writing, software
19  * distributed under the License is distributed on an "AS IS" BASIS,
20  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  * See the License for the specific language governing permissions and
22  * limitations under the License.
23  *
24  * Contributors:
25  * - Samsung RnD Institute Russia
26  *
27  */
28
29
30 #ifndef _ELF_
31 #define _ELF_
32 #include <limits.h>
33 enum binary_type_t {
34         BINARY_TYPE_NO_PIE = 0,
35         BINARY_TYPE_PIE = 1,
36         BINARY_TYPE_UNKNOWN
37 };
38
39 uint32_t get_binary_type(const char *path);
40 void get_build_dir(char builddir[PATH_MAX], const char *path);
41 #endif                          /* _ELF_ */