swift_runtime_sys/
Paths.rs

1/* automatically generated by rust-bindgen 0.69.4 */
2
3#![allow(dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals, improper_ctypes)]
4pub type _Tp = ();
5
6pub const _LIBCPP_ABI_VERSION: u32 = 1;
7pub const _LIBCPP_HARDENING_MODE_DEFAULT: u32 = 2;
8pub const _LIBCPP_VERSION: u32 = 180100;
9pub const _LIBCPP_STD_VER: u32 = 14;
10pub const _LIBCPP_OBJECT_FORMAT_MACHO: u32 = 1;
11pub const _LIBCPP_HARDENING_MODE_NONE: u32 = 2;
12pub const _LIBCPP_HARDENING_MODE_FAST: u32 = 4;
13pub const _LIBCPP_HARDENING_MODE_EXTENSIVE: u32 = 16;
14pub const _LIBCPP_HARDENING_MODE_DEBUG: u32 = 8;
15pub const _LIBCPP_HARDENING_MODE: u32 = 2;
16pub const _LIBCPP_LOCALE__L_EXTENSIONS: u32 = 1;
17pub const SWIFT_COMPILER_IS_MSVC: u32 = 0;
18pub const SWIFT_BUG_REPORT_URL: &[u8; 47] = b"https://swift.org/contributing/#reporting-bugs\0";
19pub const SWIFT_BUG_REPORT_MESSAGE_BASE: &[u8; 69] =
20    b"submit a bug report (https://swift.org/contributing/#reporting-bugs)\0";
21pub const SWIFT_BUG_REPORT_MESSAGE: &[u8; 76] =
22    b"please submit a bug report (https://swift.org/contributing/#reporting-bugs)\0";
23pub const SWIFT_CRASH_BUG_REPORT_MESSAGE : & [u8 ; 109] = b"Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.\0" ;
24pub const SWIFT_POINTER_IS_8_BYTES: u32 = 1;
25pub const SWIFT_POINTER_IS_4_BYTES: u32 = 0;
26pub const SWIFT_OBJC_INTEROP: u32 = 1;
27pub const SWIFT_HAS_ISA_MASKING: u32 = 1;
28pub const SWIFT_HAS_OPAQUE_ISAS: u32 = 0;
29pub const SWIFT_STDLIB_HAS_MALLOC_TYPE: u32 = 0;
30pub const SWIFT_CLASS_IS_SWIFT_MASK: u32 = 2;
31pub const SWIFT_IMAGE_EXPORTS_swiftCore: u32 = 0;
32pub const SWIFT_IMAGE_EXPORTS_swift_Concurrency: u32 = 0;
33pub const SWIFT_IMAGE_EXPORTS_swiftDistributed: u32 = 0;
34pub const SWIFT_IMAGE_EXPORTS_swift_Differentiation: u32 = 0;
35pub const SWIFT_COMPACT_ABSOLUTE_FUNCTION_POINTER: u32 = 0;
36pub const SWIFT_PTRAUTH: u32 = 0;
37pub const DYNAMIC_TARGETS_ENABLED: u32 = 0;
38pub const TARGET_OS_MAC: u32 = 1;
39pub const TARGET_OS_OSX: u32 = 1;
40pub const TARGET_OS_IPHONE: u32 = 0;
41pub const TARGET_OS_IOS: u32 = 0;
42pub const TARGET_OS_WATCH: u32 = 0;
43pub const TARGET_OS_TV: u32 = 0;
44pub const TARGET_OS_MACCATALYST: u32 = 0;
45pub const TARGET_OS_UIKITFORMAC: u32 = 0;
46pub const TARGET_OS_SIMULATOR: u32 = 0;
47pub const TARGET_OS_EMBEDDED: u32 = 0;
48pub const TARGET_OS_UNIX: u32 = 0;
49pub const TARGET_OS_RTKIT: u32 = 0;
50pub const TARGET_RT_LITTLE_ENDIAN: u32 = 1;
51pub const TARGET_RT_BIG_ENDIAN: u32 = 0;
52pub const TARGET_RT_64_BIT: u32 = 1;
53pub const TARGET_RT_MAC_CFM: u32 = 0;
54pub const TARGET_RT_MAC_MACHO: u32 = 1;
55pub const TARGET_CPU_ARM64: u32 = 1;
56pub const TARGET_OS_VISION: u32 = 0;
57pub const TARGET_OS_DRIVERKIT: u32 = 0;
58pub const TARGET_OS_WIN32: u32 = 0;
59pub const TARGET_OS_WINDOWS: u32 = 0;
60pub const TARGET_OS_LINUX: u32 = 0;
61pub const TARGET_CPU_PPC: u32 = 0;
62pub const TARGET_CPU_PPC64: u32 = 0;
63pub const TARGET_CPU_68K: u32 = 0;
64pub const TARGET_CPU_X86: u32 = 0;
65pub const TARGET_CPU_X86_64: u32 = 0;
66pub const TARGET_CPU_ARM: u32 = 0;
67pub const TARGET_CPU_MIPS: u32 = 0;
68pub const TARGET_CPU_SPARC: u32 = 0;
69pub const TARGET_CPU_ALPHA: u32 = 0;
70pub const TARGET_IPHONE_SIMULATOR: u32 = 0;
71pub const TARGET_OS_NANO: u32 = 0;
72pub const SWIFT_BACKTRACE_ON_CRASH_SUPPORTED: u32 = 1;
73pub const SWIFT_BACKTRACE_SECTION: &[u8; 24] = b"__DATA,swift5_backtrace\0";
74pub const SWIFT_PAGE_SIZE: u32 = 16384;
75pub type max_align_t = f64;
76extern "C" {
77    #[doc = " Return the path of the libswiftCore library.\n\n This can be used to locate files that are installed alongside the Swift\n runtime library.\n\n \\return A string containing the full path to libswiftCore.  The string is\n         owned by the runtime and should not be freed."]
78    pub fn swift_getRuntimeLibraryPath() -> *const ::std::os::raw::c_char;
79}
80extern "C" {
81    #[doc = " Return the path of the Swift root.\n\n If the path to libswiftCore is `/usr/local/swift/lib/libswiftCore.dylib`,\n this function would return `/usr/local/swift`.\n\n The path returned here can be overridden by setting the environment variable\n SWIFT_ROOT.\n\n \\return A string containing the full path to the Swift root directory, based\n         either on the location of the Swift runtime, or on the `SWIFT_ROOT`\n         environment variable if set.  The string is owned by the runtime\n         and should not be freed."]
82    pub fn swift_getRootPath() -> *const ::std::os::raw::c_char;
83}
84extern "C" {
85    #[doc = " Return the path of the specified auxiliary executable.\n\n This function will search for the auxiliary executable in the following\n paths:\n\n   <swift-root>/libexec/swift/<platform>/<name>\n   <swift-root>/libexec/swift/<name>\n   <swift-root>/bin/<name>\n   <swift-root>/<name>\n\n It will return the first of those that exists, but it does not test that\n the file is indeed executable.\n\n On Windows, it will automatically add `.exe` to the name, which means you\n do not need to special case the name for Windows.\n\n If you are using this function to locate a utility program for use by the\n runtime, you should provide a way to override its location using an\n environment variable.\n\n If the executable cannot be found, it will return nullptr.\n\n \\param name      The name of the executable to locate.\n\n \\return A string containing the full path to the executable.  This string\n         should be released with `free()` when no longer required."]
86    pub fn swift_copyAuxiliaryExecutablePath(
87        name: *const ::std::os::raw::c_char,
88    ) -> *mut ::std::os::raw::c_char;
89}