]>
Commit | Line | Data |
---|---|---|
5e7ed085 FG |
1 | #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] |
2 | pub type ActivationSignalDetectionConfiguration = *mut ::core::ffi::c_void; | |
3 | pub type ActivationSignalDetectionConfigurationCreationResult = *mut ::core::ffi::c_void; | |
04454e1e | 4 | #[doc = "*Required features: `\"ApplicationModel_ConversationalAgent\"`*"] |
5e7ed085 FG |
5 | #[repr(transparent)] |
6 | pub struct ActivationSignalDetectionConfigurationCreationStatus(pub i32); | |
7 | impl ActivationSignalDetectionConfigurationCreationStatus { | |
8 | pub const Success: Self = Self(0i32); | |
9 | pub const SignalIdNotAvailable: Self = Self(1i32); | |
10 | pub const ModelIdNotSupported: Self = Self(2i32); | |
11 | pub const InvalidSignalId: Self = Self(3i32); | |
12 | pub const InvalidModelId: Self = Self(4i32); | |
13 | pub const InvalidDisplayName: Self = Self(5i32); | |
14 | pub const ConfigurationAlreadyExists: Self = Self(6i32); | |
15 | pub const CreationNotSupported: Self = Self(7i32); | |
16 | } | |
17 | impl ::core::marker::Copy for ActivationSignalDetectionConfigurationCreationStatus {} | |
18 | impl ::core::clone::Clone for ActivationSignalDetectionConfigurationCreationStatus { | |
19 | fn clone(&self) -> Self { | |
20 | *self | |
21 | } | |
22 | } | |
04454e1e | 23 | #[doc = "*Required features: `\"ApplicationModel_ConversationalAgent\"`*"] |
5e7ed085 FG |
24 | #[repr(transparent)] |
25 | pub struct ActivationSignalDetectionConfigurationRemovalResult(pub i32); | |
26 | impl ActivationSignalDetectionConfigurationRemovalResult { | |
27 | pub const Success: Self = Self(0i32); | |
28 | pub const NotFound: Self = Self(1i32); | |
29 | pub const CurrentlyEnabled: Self = Self(2i32); | |
30 | pub const RemovalNotSupported: Self = Self(3i32); | |
31 | } | |
32 | impl ::core::marker::Copy for ActivationSignalDetectionConfigurationRemovalResult {} | |
33 | impl ::core::clone::Clone for ActivationSignalDetectionConfigurationRemovalResult { | |
34 | fn clone(&self) -> Self { | |
35 | *self | |
36 | } | |
37 | } | |
04454e1e | 38 | #[doc = "*Required features: `\"ApplicationModel_ConversationalAgent\"`*"] |
5e7ed085 FG |
39 | #[repr(transparent)] |
40 | pub struct ActivationSignalDetectionConfigurationSetModelDataResult(pub i32); | |
41 | impl ActivationSignalDetectionConfigurationSetModelDataResult { | |
42 | pub const Success: Self = Self(0i32); | |
43 | pub const EmptyModelData: Self = Self(1i32); | |
44 | pub const UnsupportedFormat: Self = Self(2i32); | |
45 | pub const ConfigurationCurrentlyEnabled: Self = Self(3i32); | |
46 | pub const InvalidData: Self = Self(4i32); | |
47 | pub const SetModelDataNotSupported: Self = Self(5i32); | |
48 | pub const ConfigurationNotFound: Self = Self(6i32); | |
49 | pub const UnknownError: Self = Self(7i32); | |
50 | } | |
51 | impl ::core::marker::Copy for ActivationSignalDetectionConfigurationSetModelDataResult {} | |
52 | impl ::core::clone::Clone for ActivationSignalDetectionConfigurationSetModelDataResult { | |
53 | fn clone(&self) -> Self { | |
54 | *self | |
55 | } | |
56 | } | |
04454e1e | 57 | #[doc = "*Required features: `\"ApplicationModel_ConversationalAgent\"`*"] |
5e7ed085 FG |
58 | #[repr(transparent)] |
59 | pub struct ActivationSignalDetectionConfigurationStateChangeResult(pub i32); | |
60 | impl ActivationSignalDetectionConfigurationStateChangeResult { | |
61 | pub const Success: Self = Self(0i32); | |
62 | pub const NoModelData: Self = Self(1i32); | |
63 | pub const ConfigurationNotFound: Self = Self(2i32); | |
64 | } | |
65 | impl ::core::marker::Copy for ActivationSignalDetectionConfigurationStateChangeResult {} | |
66 | impl ::core::clone::Clone for ActivationSignalDetectionConfigurationStateChangeResult { | |
67 | fn clone(&self) -> Self { | |
68 | *self | |
69 | } | |
70 | } | |
04454e1e | 71 | #[doc = "*Required features: `\"ApplicationModel_ConversationalAgent\"`*"] |
5e7ed085 FG |
72 | #[repr(transparent)] |
73 | pub struct ActivationSignalDetectionTrainingDataFormat(pub i32); | |
74 | impl ActivationSignalDetectionTrainingDataFormat { | |
75 | pub const Voice8kHz8BitMono: Self = Self(0i32); | |
76 | pub const Voice8kHz16BitMono: Self = Self(1i32); | |
77 | pub const Voice16kHz8BitMono: Self = Self(2i32); | |
78 | pub const Voice16kHz16BitMono: Self = Self(3i32); | |
79 | pub const VoiceOEMDefined: Self = Self(4i32); | |
80 | pub const Audio44kHz8BitMono: Self = Self(5i32); | |
81 | pub const Audio44kHz16BitMono: Self = Self(6i32); | |
82 | pub const Audio48kHz8BitMono: Self = Self(7i32); | |
83 | pub const Audio48kHz16BitMono: Self = Self(8i32); | |
84 | pub const AudioOEMDefined: Self = Self(9i32); | |
85 | pub const OtherOEMDefined: Self = Self(10i32); | |
86 | } | |
87 | impl ::core::marker::Copy for ActivationSignalDetectionTrainingDataFormat {} | |
88 | impl ::core::clone::Clone for ActivationSignalDetectionTrainingDataFormat { | |
89 | fn clone(&self) -> Self { | |
90 | *self | |
91 | } | |
92 | } | |
93 | pub type ActivationSignalDetector = *mut ::core::ffi::c_void; | |
04454e1e | 94 | #[doc = "*Required features: `\"ApplicationModel_ConversationalAgent\"`*"] |
5e7ed085 FG |
95 | #[repr(transparent)] |
96 | pub struct ActivationSignalDetectorKind(pub i32); | |
97 | impl ActivationSignalDetectorKind { | |
98 | pub const AudioPattern: Self = Self(0i32); | |
99 | pub const AudioImpulse: Self = Self(1i32); | |
100 | pub const HardwareEvent: Self = Self(2i32); | |
101 | } | |
102 | impl ::core::marker::Copy for ActivationSignalDetectorKind {} | |
103 | impl ::core::clone::Clone for ActivationSignalDetectorKind { | |
104 | fn clone(&self) -> Self { | |
105 | *self | |
106 | } | |
107 | } | |
04454e1e | 108 | #[doc = "*Required features: `\"ApplicationModel_ConversationalAgent\"`*"] |
5e7ed085 FG |
109 | #[repr(transparent)] |
110 | pub struct ActivationSignalDetectorPowerState(pub i32); | |
111 | impl ActivationSignalDetectorPowerState { | |
112 | pub const HighPower: Self = Self(0i32); | |
113 | pub const ConnectedLowPower: Self = Self(1i32); | |
114 | pub const DisconnectedLowPower: Self = Self(2i32); | |
115 | } | |
116 | impl ::core::marker::Copy for ActivationSignalDetectorPowerState {} | |
117 | impl ::core::clone::Clone for ActivationSignalDetectorPowerState { | |
118 | fn clone(&self) -> Self { | |
119 | *self | |
120 | } | |
121 | } | |
04454e1e | 122 | #[doc = "*Required features: `\"ApplicationModel_ConversationalAgent\"`*"] |
5e7ed085 FG |
123 | #[repr(transparent)] |
124 | pub struct ConversationalAgentActivationKind(pub i32); | |
125 | impl ConversationalAgentActivationKind { | |
126 | pub const VoiceActivationPreview: Self = Self(0i32); | |
127 | pub const Foreground: Self = Self(1i32); | |
128 | } | |
129 | impl ::core::marker::Copy for ConversationalAgentActivationKind {} | |
130 | impl ::core::clone::Clone for ConversationalAgentActivationKind { | |
131 | fn clone(&self) -> Self { | |
132 | *self | |
133 | } | |
134 | } | |
04454e1e | 135 | #[doc = "*Required features: `\"ApplicationModel_ConversationalAgent\"`*"] |
5e7ed085 FG |
136 | #[repr(transparent)] |
137 | pub struct ConversationalAgentActivationResult(pub i32); | |
138 | impl ConversationalAgentActivationResult { | |
139 | pub const Success: Self = Self(0i32); | |
140 | pub const AgentInactive: Self = Self(1i32); | |
141 | pub const ScreenNotAvailable: Self = Self(2i32); | |
142 | pub const AgentInterrupted: Self = Self(3i32); | |
143 | } | |
144 | impl ::core::marker::Copy for ConversationalAgentActivationResult {} | |
145 | impl ::core::clone::Clone for ConversationalAgentActivationResult { | |
146 | fn clone(&self) -> Self { | |
147 | *self | |
148 | } | |
149 | } | |
150 | pub type ConversationalAgentDetectorManager = *mut ::core::ffi::c_void; | |
151 | pub type ConversationalAgentSession = *mut ::core::ffi::c_void; | |
152 | pub type ConversationalAgentSessionInterruptedEventArgs = *mut ::core::ffi::c_void; | |
04454e1e | 153 | #[doc = "*Required features: `\"ApplicationModel_ConversationalAgent\"`*"] |
5e7ed085 FG |
154 | #[repr(transparent)] |
155 | pub struct ConversationalAgentSessionUpdateResponse(pub i32); | |
156 | impl ConversationalAgentSessionUpdateResponse { | |
157 | pub const Success: Self = Self(0i32); | |
158 | pub const Failed: Self = Self(1i32); | |
159 | } | |
160 | impl ::core::marker::Copy for ConversationalAgentSessionUpdateResponse {} | |
161 | impl ::core::clone::Clone for ConversationalAgentSessionUpdateResponse { | |
162 | fn clone(&self) -> Self { | |
163 | *self | |
164 | } | |
165 | } | |
166 | pub type ConversationalAgentSignal = *mut ::core::ffi::c_void; | |
167 | pub type ConversationalAgentSignalDetectedEventArgs = *mut ::core::ffi::c_void; | |
04454e1e | 168 | #[doc = "*Required features: `\"ApplicationModel_ConversationalAgent\"`*"] |
5e7ed085 FG |
169 | #[repr(transparent)] |
170 | pub struct ConversationalAgentState(pub i32); | |
171 | impl ConversationalAgentState { | |
172 | pub const Inactive: Self = Self(0i32); | |
173 | pub const Detecting: Self = Self(1i32); | |
174 | pub const Listening: Self = Self(2i32); | |
175 | pub const Working: Self = Self(3i32); | |
176 | pub const Speaking: Self = Self(4i32); | |
177 | pub const ListeningAndSpeaking: Self = Self(5i32); | |
178 | } | |
179 | impl ::core::marker::Copy for ConversationalAgentState {} | |
180 | impl ::core::clone::Clone for ConversationalAgentState { | |
181 | fn clone(&self) -> Self { | |
182 | *self | |
183 | } | |
184 | } | |
04454e1e | 185 | #[doc = "*Required features: `\"ApplicationModel_ConversationalAgent\"`*"] |
5e7ed085 FG |
186 | #[repr(transparent)] |
187 | pub struct ConversationalAgentSystemStateChangeType(pub i32); | |
188 | impl ConversationalAgentSystemStateChangeType { | |
189 | pub const UserAuthentication: Self = Self(0i32); | |
190 | pub const ScreenAvailability: Self = Self(1i32); | |
191 | pub const IndicatorLightAvailability: Self = Self(2i32); | |
192 | pub const VoiceActivationAvailability: Self = Self(3i32); | |
193 | } | |
194 | impl ::core::marker::Copy for ConversationalAgentSystemStateChangeType {} | |
195 | impl ::core::clone::Clone for ConversationalAgentSystemStateChangeType { | |
196 | fn clone(&self) -> Self { | |
197 | *self | |
198 | } | |
199 | } | |
200 | pub type ConversationalAgentSystemStateChangedEventArgs = *mut ::core::ffi::c_void; | |
04454e1e | 201 | #[doc = "*Required features: `\"ApplicationModel_ConversationalAgent\"`*"] |
5e7ed085 FG |
202 | #[repr(transparent)] |
203 | pub struct ConversationalAgentVoiceActivationPrerequisiteKind(pub i32); | |
204 | impl ConversationalAgentVoiceActivationPrerequisiteKind { | |
205 | pub const MicrophonePermission: Self = Self(0i32); | |
206 | pub const KnownAgents: Self = Self(1i32); | |
207 | pub const AgentAllowed: Self = Self(2i32); | |
208 | pub const AppCapability: Self = Self(3i32); | |
209 | pub const BackgroundTaskRegistration: Self = Self(4i32); | |
210 | pub const PolicyPermission: Self = Self(5i32); | |
211 | } | |
212 | impl ::core::marker::Copy for ConversationalAgentVoiceActivationPrerequisiteKind {} | |
213 | impl ::core::clone::Clone for ConversationalAgentVoiceActivationPrerequisiteKind { | |
214 | fn clone(&self) -> Self { | |
215 | *self | |
216 | } | |
217 | } | |
04454e1e | 218 | #[doc = "*Required features: `\"ApplicationModel_ConversationalAgent\"`*"] |
5e7ed085 FG |
219 | #[repr(transparent)] |
220 | pub struct DetectionConfigurationAvailabilityChangeKind(pub i32); | |
221 | impl DetectionConfigurationAvailabilityChangeKind { | |
222 | pub const SystemResourceAccess: Self = Self(0i32); | |
223 | pub const Permission: Self = Self(1i32); | |
224 | pub const LockScreenPermission: Self = Self(2i32); | |
225 | } | |
226 | impl ::core::marker::Copy for DetectionConfigurationAvailabilityChangeKind {} | |
227 | impl ::core::clone::Clone for DetectionConfigurationAvailabilityChangeKind { | |
228 | fn clone(&self) -> Self { | |
229 | *self | |
230 | } | |
231 | } | |
232 | pub type DetectionConfigurationAvailabilityChangedEventArgs = *mut ::core::ffi::c_void; | |
233 | pub type DetectionConfigurationAvailabilityInfo = *mut ::core::ffi::c_void; | |
04454e1e | 234 | #[doc = "*Required features: `\"ApplicationModel_ConversationalAgent\"`*"] |
5e7ed085 FG |
235 | #[repr(transparent)] |
236 | pub struct DetectionConfigurationTrainingStatus(pub i32); | |
237 | impl DetectionConfigurationTrainingStatus { | |
238 | pub const Success: Self = Self(0i32); | |
239 | pub const FormatNotSupported: Self = Self(1i32); | |
240 | pub const VoiceTooQuiet: Self = Self(2i32); | |
241 | pub const VoiceTooLoud: Self = Self(3i32); | |
242 | pub const VoiceTooFast: Self = Self(4i32); | |
243 | pub const VoiceTooSlow: Self = Self(5i32); | |
244 | pub const VoiceQualityProblem: Self = Self(6i32); | |
245 | pub const TrainingSystemInternalError: Self = Self(7i32); | |
246 | pub const TrainingTimedOut: Self = Self(8i32); | |
247 | pub const ConfigurationNotFound: Self = Self(9i32); | |
248 | } | |
249 | impl ::core::marker::Copy for DetectionConfigurationTrainingStatus {} | |
250 | impl ::core::clone::Clone for DetectionConfigurationTrainingStatus { | |
251 | fn clone(&self) -> Self { | |
252 | *self | |
253 | } | |
254 | } | |
04454e1e | 255 | #[doc = "*Required features: `\"ApplicationModel_ConversationalAgent\"`*"] |
5e7ed085 FG |
256 | #[repr(transparent)] |
257 | pub struct SignalDetectorResourceKind(pub i32); | |
258 | impl SignalDetectorResourceKind { | |
259 | pub const ParallelModelSupport: Self = Self(0i32); | |
260 | pub const ParallelModelSupportForAgent: Self = Self(1i32); | |
261 | pub const ParallelSignalSupport: Self = Self(2i32); | |
262 | pub const ParallelSignalSupportForAgent: Self = Self(3i32); | |
263 | pub const DisplayOffSupport: Self = Self(4i32); | |
264 | pub const PluggedInPower: Self = Self(5i32); | |
265 | pub const Detector: Self = Self(6i32); | |
266 | pub const SupportedSleepState: Self = Self(7i32); | |
267 | pub const SupportedBatterySaverState: Self = Self(8i32); | |
268 | pub const ScreenAvailability: Self = Self(9i32); | |
269 | pub const InputHardware: Self = Self(10i32); | |
270 | pub const AcousticEchoCancellation: Self = Self(11i32); | |
271 | pub const ModelIdSupport: Self = Self(12i32); | |
272 | pub const DataChannel: Self = Self(13i32); | |
273 | } | |
274 | impl ::core::marker::Copy for SignalDetectorResourceKind {} | |
275 | impl ::core::clone::Clone for SignalDetectorResourceKind { | |
276 | fn clone(&self) -> Self { | |
277 | *self | |
278 | } | |
279 | } |