Skip to content

Commit f624057

Browse files
authored
[Linux] Trim down auto-generated BlueZ D-Bus API stub (#33920)
1 parent c07bbd1 commit f624057

File tree

1 file changed

+10
-105
lines changed

1 file changed

+10
-105
lines changed

src/platform/Linux/dbus/bluez/DbusBluez.xml

+10-105
Original file line numberDiff line numberDiff line change
@@ -14,88 +14,43 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
17-
# This file is constructed using the below method.
18-
# 1. running bluetoothd
19-
# 2. running two Bluetooth adapter with LE capability and create ble connection with Gatt servie and Gatt Char.
20-
# For the purposes of XML generation we use btvirt emulator with the LE only capability.
21-
# Assume the LE chip is on hci 0
22-
# we get the bluez XML via:
23-
# sudo gdbus introspect -s -d org.bluez -r -o /org/bluez -x
24-
# sudo gdbus introspect -s -d org.bluez -r -o /org/bluez/hci0 -x
25-
# sudo gdbus introspect -s -d org.bluez -r -o /org/bluez/hci0/dev_00_AA_01_01_00_24 -x
26-
# sudo gdbus introspect -s -d org.bluez -r -o /org/bluez/hci0/dev_00_AA_01_01_00_24/service0006 -x
27-
# sudo gdbus introspect -s -d org.bluez -r -o /org/bluez/hci0/dev_00_AA_01_01_00_24/service0006/char0007 -x
28-
# sudo gdbus introspect -s -d org.bluez -r -o /org/bluez/hci0/dev_00_AA_01_01_00_24/service0006/char0007/desc0009 -x
29-
# sudo gdbus introspect -s -d org.bluez -r -o / -x
17+
# This file is constructed based on the BlueZ D-Bus API documentation
18+
# available at: https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc
19+
#
20+
# It does not contain all exported interfaces, but only those that are
21+
# relevant for the Matter GATT service and advertisement management. Also,
22+
# some properties and methods not used by Matter are omitted in order to
23+
# decrease the size of Matter SDK library.
24+
#
3025
-->
3126

3227
<node>
28+
3329
<interface name="org.bluez.Adapter1">
3430
<method name="StartDiscovery" />
31+
<method name="StopDiscovery" />
3532
<method name="SetDiscoveryFilter">
3633
<arg name="properties" type="a{sv}" direction="in" />
3734
</method>
38-
<method name="StopDiscovery" />
3935
<method name="RemoveDevice">
4036
<arg name="device" type="o" direction="in" />
4137
</method>
42-
<method name="GetDiscoveryFilters">
43-
<arg name="filters" type="as" direction="out" />
44-
</method>
45-
<method name="ConnectDevice">
46-
<arg name="properties" type="a{sv}" direction="in" />
47-
</method>
48-
4938
<property name="Address" type="s" access="read" />
50-
<property name="AddressType" type="s" access="read" />
5139
<property name="Name" type="s" access="read" />
5240
<property name="Alias" type="s" access="readwrite" />
5341
<property name="Class" type="u" access="read" />
5442
<property name="Powered" type="b" access="readwrite" />
5543
<property name="Discoverable" type="b" access="readwrite" />
56-
<property name="DiscoverableTimeout" type="u" access="readwrite" />
57-
<property name="Pairable" type="b" access="readwrite" />
58-
<property name="PairableTimeout" type="u" access="readwrite" />
59-
<property name="Discovering" type="b" access="read" />
60-
<property name="UUIDs" type="as" access="read" />
61-
<property name="Modalias" type="s" access="read" />
62-
<property name="Roles" type="as" access="read" />
6344
</interface>
6445

6546
<interface name="org.bluez.Device1">
6647
<method name="Disconnect" />
6748
<method name="Connect" />
68-
<method name="ConnectProfile">
69-
<arg name="UUID" type="s" direction="in" />
70-
</method>
71-
<method name="DisconnectProfile">
72-
<arg name="UUID" type="s" direction="in" />
73-
</method>
74-
<method name="Pair" />
75-
<method name="CancelPairing" />
7649
<property name="Address" type="s" access="read" />
77-
<property name="AddressType" type="s" access="read" />
78-
<property name="Name" type="s" access="read" />
79-
<property name="Alias" type="s" access="readwrite" />
80-
<property name="Class" type="u" access="read" />
81-
<property name="Appearance" type="q" access="read" />
82-
<property name="Icon" type="s" access="read" />
83-
<property name="Paired" type="b" access="read" />
84-
<property name="Trusted" type="b" access="readwrite" />
85-
<property name="Blocked" type="b" access="readwrite" />
86-
<property name="LegacyPairing" type="b" access="read" />
87-
<property name="RSSI" type="n" access="read" />
8850
<property name="Connected" type="b" access="read" />
89-
<property name="UUIDs" type="as" access="read" />
90-
<property name="Modalias" type="s" access="read" />
9151
<property name="Adapter" type="o" access="read" />
92-
<property name="ManufacturerData" type="a{qv}" access="read" />
9352
<property name="ServiceData" type="a{sv}" access="read" />
94-
<property name="TxPower" type="n" access="read" />
9553
<property name="ServicesResolved" type="b" access="read" />
96-
<property name="AdvertisingFlags" type="ay" access="read" />
97-
<property name="AdvertisingData" type="a{yv}" access="read" />
98-
<property name="WakeAllowed" type="b" access="readwrite" />
9954
</interface>
10055

10156
<interface name="org.bluez.GattManager1">
@@ -240,56 +195,6 @@
240195
<method name="UnregisterAdvertisement">
241196
<arg name="service" type="o" direction="in" />
242197
</method>
243-
<property name="ActiveInstances" type="y" access="read" />
244-
<property name="SupportedInstances" type="y" access="read" />
245-
<property name="SupportedIncludes" type="as" access="read" />
246-
<property name="SupportedSecondaryChannels" type="as" access="read" />
247198
</interface>
248199

249-
<interface name="org.freedesktop.DBus.Properties">
250-
<method name="Get">
251-
<arg name="interface" type="s" direction="in" />
252-
<arg name="name" type="s" direction="in" />
253-
<arg name="value" type="v" direction="out" />
254-
</method>
255-
<method name="Set">
256-
<arg name="interface" type="s" direction="in" />
257-
<arg name="name" type="s" direction="in" />
258-
<arg name="value" type="v" direction="in" />
259-
</method>
260-
<method name="GetAll">
261-
<arg name="interface" type="s" direction="in" />
262-
<arg name="properties" type="a{sv}" direction="out" />
263-
</method>
264-
<signal name="PropertiesChanged">
265-
<arg name="interface" type="s" />
266-
<arg name="changed_properties" type="a{sv}" />
267-
<arg name="invalidated_properties" type="as" />
268-
</signal>
269-
</interface>
270-
271-
<interface name="org.bluez.ProfileManager1">
272-
<method name="RegisterProfile">
273-
<arg name="profile" type="o" direction="in" />
274-
<arg name="UUID" type="s" direction="in" />
275-
<arg name="options" type="a{sv}" direction="in" />
276-
</method>
277-
<method name="UnregisterProfile">
278-
<arg name="profile" type="o" direction="in" />
279-
</method>
280-
</interface>
281-
282-
<interface name="org.freedesktop.DBus.ObjectManager">
283-
<method name="GetManagedObjects">
284-
<arg name="objects" type="a{oa{sa{sv}}}" direction="out" />
285-
</method>
286-
<signal name="InterfacesAdded">
287-
<arg name="object" type="o" />
288-
<arg name="interfaces" type="a{sa{sv}}" />
289-
</signal>
290-
<signal name="InterfacesRemoved">
291-
<arg name="object" type="o" />
292-
<arg name="interfaces" type="as" />
293-
</signal>
294-
</interface>
295200
</node>

0 commit comments

Comments
 (0)