]>
Commit | Line | Data |
---|---|---|
a5600261 MT |
1 | /*############################################################################# |
2 | # # | |
3 | # Pakfire - The IPFire package management system # | |
4 | # Copyright (C) 2021 Pakfire development team # | |
5 | # # | |
6 | # This program is free software: you can redistribute it and/or modify # | |
7 | # it under the terms of the GNU General Public License as published by # | |
8 | # the Free Software Foundation, either version 3 of the License, or # | |
9 | # (at your option) any later version. # | |
10 | # # | |
11 | # This program is distributed in the hope that it will be useful, # | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # | |
18 | # # | |
19 | #############################################################################*/ | |
20 | ||
21 | #ifndef PAKFIRE_ARCH_H | |
22 | #define PAKFIRE_ARCH_H | |
23 | ||
24 | int pakfire_arch_supported(const char* name); | |
9faaedf7 | 25 | const char** pakfire_supported_arches(void); |
518429b6 | 26 | const char* pakfire_arch_native(void); |
a5600261 | 27 | |
5301d9e1 MT |
28 | const char* pakfire_arch_is_supported_by_host(const char* name); |
29 | ||
399e7b55 MT |
30 | #ifdef PAKFIRE_PRIVATE |
31 | ||
32 | unsigned long pakfire_arch_personality(const char* name); | |
33 | ||
34 | #define pakfire_arch_machine(buffer, arch, vendor) \ | |
603694ad | 35 | __pakfire_arch_machine(buffer, sizeof(buffer), arch, vendor) |
399e7b55 MT |
36 | int __pakfire_arch_machine(char* buffer, size_t length, const char* arch, const char* vendor); |
37 | ||
38 | #define pakfire_arch_buildtarget(buffer, arch, vendor) \ | |
603694ad | 39 | __pakfire_arch_buildtarget(buffer, sizeof(buffer), arch, vendor) |
399e7b55 MT |
40 | int __pakfire_arch_buildtarget(char* buffer, size_t length, const char* arch, const char* vendor); |
41 | ||
42 | const char* pakfire_arch_platform(const char* name); | |
43 | int pakfire_arch_is_compatible(const char* name, const char* compatible_arch); | |
44 | ||
a29c7190 MT |
45 | char* pakfire_arch_find_interpreter(const char* name); |
46 | ||
399e7b55 MT |
47 | #endif |
48 | ||
a5600261 | 49 | #endif /* PAKFIRE_ARCH_H */ |