Debian Codegraph @

mingw-w64-headers/include/windows.devices.bluetooth.rfcomm.idl

raw
1 /*
2 * Copyright 2025 Vibhav Pant
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19 #ifdef __WIDL__
20 #pragma winrt ns_prefix
21 #endif
22
23 import "inspectable.idl";
24 import "asyncinfo.idl";
25 import "eventtoken.idl";
26 import "windowscontracts.idl";
27 import "windows.foundation.idl";
28 import "windows.devices.bluetooth.idl";
29 import "windows.networking.idl";
30 import "windows.networking.sockets.idl";
31 import "windows.storage.streams.idl";
32
33 namespace Windows.Devices.Bluetooth {
34 typedef enum BluetoothCacheMode BluetoothCacheMode;
35 }
36
37 namespace Windows.Devices.Bluetooth.Rfcomm {
38 interface IRfcommDeviceService;
39 interface IRfcommDeviceService2;
40 interface IRfcommDeviceService3;
41 interface IRfcommDeviceServiceStatics;
42 interface IRfcommDeviceServiceStatics2;
43 interface IRfcommServiceId;
44 interface IRfcommServiceIdStatics;
45
46 runtimeclass RfcommDeviceService;
47 runtimeclass RfcommServiceId;
48
49 declare {
50 interface Windows.Foundation.Collections.IMapView<UINT32, Windows.Storage.Streams.IBuffer *>;
51 interface Windows.Foundation.AsyncOperationCompletedHandler<Windows.Foundation.Collections.IMapView<UINT32, Windows.Storage.Streams.IBuffer *> *>;
52 interface Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IMapView<UINT32, Windows.Storage.Streams.IBuffer *> *>;
53 interface Windows.Foundation.AsyncOperationCompletedHandler<Windows.Devices.Bluetooth.Rfcomm.RfcommDeviceService *>;
54 interface Windows.Foundation.IAsyncOperation<Windows.Devices.Bluetooth.Rfcomm.RfcommDeviceService *>;
55 }
56
57 [
58 contract(Windows.Foundation.UniversalApiContract, 1.0),
59 exclusiveto(Windows.Devices.Bluetooth.Rfcomm.RfcommDeviceService),
60 uuid(ae81ff1f-c5a1-4c40-8c28-f3efd69062f3)
61 ]
62 interface IRfcommDeviceService : IInspectable
63 {
64 [propget] HRESULT ConnectionHostName([out, retval] Windows.Networking.HostName **value);
65 [propget] HRESULT ConnectionServiceName([out, retval] HSTRING *value);
66 [propget] HRESULT ServiceId([out, retval] Windows.Devices.Bluetooth.Rfcomm.RfcommServiceId **value);
67 [propget] HRESULT ProtectionLevel([out, retval] Windows.Networking.Sockets.SocketProtectionLevel *value);
68 [propget] HRESULT MaxProtectionLevel([out, retval] Windows.Networking.Sockets.SocketProtectionLevel *value);
69 [overload("GetSdpRawAttributesAsync")] HRESULT GetSdpRawAttributesAsync([out, retval] Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IMapView<UINT32, Windows.Storage.Streams.IBuffer *> *> **operation);
70 [overload("GetSdpRawAttributesAsync")] HRESULT GetSdpRawAttributesWithCacheModeAsync([in] Windows.Devices.Bluetooth.BluetoothCacheMode cache_mode,
71 [out, retval] Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IMapView<UINT32, Windows.Storage.Streams.IBuffer *> *> **operation);
72 }
73
74 [
75 contract(Windows.Foundation.UniversalApiContract, 1.0),
76 exclusiveto(Windows.Devices.Bluetooth.Rfcomm.RfcommDeviceService),
77 uuid(a4a149ef-626d-41ac-b253-87ac5c27e28a)
78 ]
79 interface IRfcommDeviceServiceStatics : IInspectable
80 {
81 HRESULT FromIdAsync([in] HSTRING id, [out, retval] Windows.Foundation.IAsyncOperation<Windows.Devices.Bluetooth.Rfcomm.RfcommDeviceService *> **operation);
82 HRESULT GetDeviceSelector([in] Windows.Devices.Bluetooth.Rfcomm.RfcommServiceId *id, [out] [retval] HSTRING *selector);
83 }
84
85 [
86 contract(Windows.Foundation.UniversalApiContract, 1.0),
87 exclusiveto(Windows.Devices.Bluetooth.Rfcomm.RfcommServiceId),
88 uuid(22629204-7e02-4017-8136-da1b6a1b9bbf)
89 ]
90 interface IRfcommServiceId : IInspectable
91 {
92 [propget] HRESULT Uuid([out, retval] GUID *value);
93 HRESULT AsShortId([out, retval] UINT32 *short_id);
94 HRESULT AsString([out, retval] HSTRING *id);
95 }
96
97 [
98 contract(Windows.Foundation.UniversalApiContract, 1.0),
99 marshaling_behavior(agile),
100 static(Windows.Devices.Bluetooth.Rfcomm.IRfcommDeviceServiceStatics, Windows.Foundation.UniversalApiContract, 1.0),
101 /* static(Windows.Devices.Bluetooth.Rfcomm.IRfcommDeviceServiceStatics2, Windows.Foundation.UniversalApiContract, 3.0), */
102 threading(both)
103 ]
104 runtimeclass RfcommDeviceService
105 {
106 [default] interface Windows.Devices.Bluetooth.Rfcomm.IRfcommDeviceService;
107 /* interface Windows.Devices.Bluetooth.Rfcomm.IRfcommDeviceService2; */
108 interface Windows.Foundation.IClosable;
109 /* [contract(Windows.Foundation.UniversalApiContract, 3.0)] interface Windows.Devices.Bluetooth.Rfcomm.IRfcommDeviceService3; */
110 }
111
112 [
113 contract(Windows.Foundation.UniversalApiContract, 1.0),
114 marshaling_behavior(agile),
115 /* static(Windows.Devices.Bluetooth.Rfcomm.IRfcommServiceIdStatics, Windows.Foundation.UniversalApiContract, 1.0), */
116 threading(both)
117 ]
118 runtimeclass RfcommServiceId
119 {
120 [default] interface Windows.Devices.Bluetooth.Rfcomm.IRfcommServiceId;
121 }
122 }