]>
Commit | Line | Data |
---|---|---|
064997fb FG |
1 | #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] |
2 | #[link(name = "windows")] | |
3 | extern "system" {} | |
4 | pub type OfflineMapPackage = *mut ::core::ffi::c_void; | |
5 | pub type OfflineMapPackageQueryResult = *mut ::core::ffi::c_void; | |
6 | #[repr(transparent)] | |
7 | pub struct OfflineMapPackageQueryStatus(pub i32); | |
8 | impl OfflineMapPackageQueryStatus { | |
9 | pub const Success: Self = Self(0i32); | |
10 | pub const UnknownError: Self = Self(1i32); | |
11 | pub const InvalidCredentials: Self = Self(2i32); | |
12 | pub const NetworkFailure: Self = Self(3i32); | |
13 | } | |
14 | impl ::core::marker::Copy for OfflineMapPackageQueryStatus {} | |
15 | impl ::core::clone::Clone for OfflineMapPackageQueryStatus { | |
16 | fn clone(&self) -> Self { | |
17 | *self | |
18 | } | |
19 | } | |
20 | pub type OfflineMapPackageStartDownloadResult = *mut ::core::ffi::c_void; | |
21 | #[repr(transparent)] | |
22 | pub struct OfflineMapPackageStartDownloadStatus(pub i32); | |
23 | impl OfflineMapPackageStartDownloadStatus { | |
24 | pub const Success: Self = Self(0i32); | |
25 | pub const UnknownError: Self = Self(1i32); | |
26 | pub const InvalidCredentials: Self = Self(2i32); | |
27 | pub const DeniedWithoutCapability: Self = Self(3i32); | |
28 | } | |
29 | impl ::core::marker::Copy for OfflineMapPackageStartDownloadStatus {} | |
30 | impl ::core::clone::Clone for OfflineMapPackageStartDownloadStatus { | |
31 | fn clone(&self) -> Self { | |
32 | *self | |
33 | } | |
34 | } | |
35 | #[repr(transparent)] | |
36 | pub struct OfflineMapPackageStatus(pub i32); | |
37 | impl OfflineMapPackageStatus { | |
38 | pub const NotDownloaded: Self = Self(0i32); | |
39 | pub const Downloading: Self = Self(1i32); | |
40 | pub const Downloaded: Self = Self(2i32); | |
41 | pub const Deleting: Self = Self(3i32); | |
42 | } | |
43 | impl ::core::marker::Copy for OfflineMapPackageStatus {} | |
44 | impl ::core::clone::Clone for OfflineMapPackageStatus { | |
45 | fn clone(&self) -> Self { | |
46 | *self | |
47 | } | |
48 | } |