[PATCH 2/5] include/windows.media.speechrecognition.idl: Add SpeechRecognitionListConstraint class.

Bernhard Kölbl besentv at gmail.com
Sun Mar 13 11:10:51 CDT 2022


And it's dependencies.

Signed-off-by: Bernhard Kölbl <besentv at gmail.com>
---
 include/windows.media.speechrecognition.idl | 43 +++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/include/windows.media.speechrecognition.idl b/include/windows.media.speechrecognition.idl
index d83547a9a02..79107aab1bf 100644
--- a/include/windows.media.speechrecognition.idl
+++ b/include/windows.media.speechrecognition.idl
@@ -46,6 +46,8 @@ namespace Windows {
             interface ISpeechRecognitionConstraint;
             interface ISpeechRecognitionHypothesis;
             interface ISpeechRecognitionHypothesisGeneratedEventArgs;
+            interface ISpeechRecognitionListConstraint;
+            interface ISpeechRecognitionListConstraintFactory;
             interface ISpeechRecognitionQualityDegradingEventArgs;
             interface ISpeechRecognitionResult;
             interface ISpeechRecognitionResult2;
@@ -64,6 +66,7 @@ namespace Windows {
             runtimeclass SpeechRecognitionCompilationResult;
             runtimeclass SpeechRecognitionHypothesis;
             runtimeclass SpeechRecognitionHypothesisGeneratedEventArgs;
+            runtimeclass SpeechRecognitionListConstraint;
             runtimeclass SpeechRecognitionQualityDegradingEventArgs;
             runtimeclass SpeechRecognitionResult;
             runtimeclass SpeechRecognitionSemanticInterpretation;
@@ -273,6 +276,35 @@ namespace Windows {
                 [propget] HRESULT Hypothesis([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionHypothesis **value);
             }
 
+            [
+                contract(Windows.Foundation.UniversalApiContract, 1.0),
+                exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint),
+                uuid(09c487e9-e4ad-4526-81f2-4946fb481d98)
+            ]
+            interface ISpeechRecognitionListConstraint : IInspectable
+                requires
+                    Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint
+            {
+                [propget] HRESULT Commands([out, retval] Windows.Foundation.Collections.IVector<HSTRING> **value);
+            }
+
+            [
+                contract(Windows.Foundation.UniversalApiContract, 1.0),
+                exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint),
+                uuid(40f3cdc7-562a-426a-9f3b-3b4e282be1d5)
+            ]
+            interface ISpeechRecognitionListConstraintFactory : IInspectable
+            {
+                HRESULT Create(
+                    [in] Windows.Foundation.Collections.IIterable<HSTRING> *commands,
+                    [out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint **listconstraint);
+
+                HRESULT CreateWithTag(
+                    [in] Windows.Foundation.Collections.IIterable<HSTRING> *commands,
+                    [in] HSTRING tag,
+                    [out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint **listconstraint);
+            }
+
             [
                 contract(Windows.Foundation.UniversalApiContract, 1.0),
                 exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionQualityDegradingEventArgs),
@@ -498,6 +530,17 @@ namespace Windows {
                 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionHypothesisGeneratedEventArgs;
             }
 
+            [
+                activatable(Windows.Media.SpeechRecognition.ISpeechRecognitionListConstraintFactory, Windows.Foundation.UniversalApiContract, 1.0),
+                contract(Windows.Foundation.UniversalApiContract, 1.0),
+                marshaling_behavior(agile)
+            ]
+            runtimeclass SpeechRecognitionListConstraint
+            {
+                [default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionListConstraint;
+                interface Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint;
+            }
+
             [
                 contract(Windows.Foundation.UniversalApiContract, 1.0),
                 marshaling_behavior(agile)
-- 
2.35.1




More information about the wine-devel mailing list