Skip to content

Commit 8e448b0

Browse files
committed
Optimize D-Bus API stub for wpa_supplicant
This optimization saves: .text -> 69969 bytes .data -> 16384 bytes
1 parent 5efa69d commit 8e448b0

File tree

4 files changed

+117
-285
lines changed

4 files changed

+117
-285
lines changed
+30-24
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,42 @@
1-
<?xml version="1.0" ?>
2-
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "https://raw.githubusercontent.com/freedesktop/dbus/master/doc/introspect.dtd">
1+
<!--
2+
Copyright (c) 2020 Project CHIP Authors
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
17+
<!--
18+
This file is constructed based on the wpa_supplicant D-Bus API exposed by the
19+
wpa_supplicant daemon. The list of methods and properties is available at:
20+
https://w1.fi/wpa_supplicant/devel/dbus.html
21+
22+
Please note that this file is not a complete representation of the
23+
wpa_supplicant D-Bus API, but only includes the methods that are relevant for
24+
the wpa_supplicant integration with the Matter SDK.
25+
-->
26+
27+
<!DOCTYPE node PUBLIC
28+
"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
29+
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
30+
331
<node>
432
<interface name="fi.w1.wpa_supplicant1">
533
<method name="CreateInterface">
634
<arg name="args" type="a{sv}" direction="in" />
735
<arg name="path" type="o" direction="out" />
836
</method>
9-
<method name="RemoveInterface">
10-
<arg name="path" type="o" direction="in" />
11-
</method>
1237
<method name="GetInterface">
1338
<arg name="ifname" type="s" direction="in" />
1439
<arg name="path" type="o" direction="out" />
1540
</method>
16-
<method name="ExpectDisconnect" />
17-
<signal name="InterfaceAdded">
18-
<arg name="path" type="o" />
19-
<arg name="properties" type="a{sv}" />
20-
</signal>
21-
<signal name="InterfaceRemoved">
22-
<arg name="path" type="o" />
23-
</signal>
24-
<signal name="PropertiesChanged">
25-
<arg name="properties" type="a{sv}" />
26-
</signal>
27-
<property name="DebugLevel" type="s" access="readwrite" />
28-
<property name="DebugTimestamp" type="b" access="readwrite" />
29-
<property name="DebugShowKeys" type="b" access="readwrite" />
30-
<property name="Interfaces" type="ao" access="read" />
31-
<property name="EapMethods" type="as" access="read" />
32-
<property name="Capabilities" type="as" access="read" />
33-
<property name="WFDIEs" type="ay" access="readwrite" />
3441
</interface>
35-
<node name="Interfaces" />
3642
</node>

src/platform/Linux/dbus/wpa/DBusWpaBss.xml

+20-14
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
1-
<?xml version="1.0" ?>
2-
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "https://raw.githubusercontent.com/freedesktop/dbus/master/doc/introspect.dtd">
1+
<!--
2+
Copyright (c) 2021 Project CHIP Authors
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
17+
<!DOCTYPE node PUBLIC
18+
"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
19+
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
20+
321
<node>
422
<interface name="fi.w1.wpa_supplicant1.BSS">
5-
<annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
6-
<signal name="PropertiesChanged">
7-
<arg name="properties" type="a{sv}" />
8-
</signal>
9-
10-
<property name="SSID" type="ay" access="read">
11-
<annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
12-
</property>
13-
<property name="BSSID" type="ay" access="read">
14-
<annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
15-
</property>
16-
<property name="WPA" type="a{sv}" access="read" />
1723
<property name="Signal" type="n" access="read" />
1824
<property name="Frequency" type="q" access="read" />
1925
</interface>

0 commit comments

Comments
 (0)