Mohamad Al-Jaf : include: Add IJsonValueStatics interface definition.
Module: wine Branch: master Commit: 4c81ee3f8af256ab6001aab6bef8503d328ac3d9 URL: https://gitlab.winehq.org/wine/wine/-/commit/4c81ee3f8af256ab6001aab6bef8503... Author: Mohamad Al-Jaf <mohamadaljaf(a)gmail.com> Date: Wed Jul 3 23:33:31 2024 -0400 include: Add IJsonValueStatics interface definition. --- include/windows.data.json.idl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/windows.data.json.idl b/include/windows.data.json.idl index 483d8dce721..c37c0a59b88 100644 --- a/include/windows.data.json.idl +++ b/include/windows.data.json.idl @@ -114,6 +114,20 @@ namespace Windows.Data.Json { HRESULT GetObject([out, retval] Windows.Data.Json.JsonObject **value); } + [ + contract(Windows.Foundation.UniversalApiContract, 1.0), + exclusiveto(Windows.Data.Json.JsonValue), + uuid(5f6b544a-2f53-48e1-91a3-f78b50a6345c) + ] + interface IJsonValueStatics : IInspectable + { + HRESULT Parse([in] HSTRING input, [out, retval] Windows.Data.Json.JsonValue **value); + HRESULT TryParse([in] HSTRING input, [out] Windows.Data.Json.JsonValue **result, [out, retval] boolean *succeeded); + HRESULT CreateBooleanValue([in] boolean input, [out, retval] Windows.Data.Json.JsonValue **value); + HRESULT CreateNumberValue([in] DOUBLE input, [out, retval] Windows.Data.Json.JsonValue **value); + HRESULT CreateStringValue([in] HSTRING input, [out, retval] Windows.Data.Json.JsonValue **value); + } + [ activatable(Windows.Foundation.UniversalApiContract, 1.0), contract(Windows.Foundation.UniversalApiContract, 1.0),
participants (1)
-
Alexandre Julliard