fix: void validate arguments/properties name (#358)

This commit is contained in:
black_desk
2025-01-16 04:18:37 +08:00
committed by GitHub
parent e7750caed5
commit f58f1a6466
6 changed files with 89 additions and 27 deletions

View File

@@ -0,0 +1,10 @@
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node name="/com/example/sample_object0">
<interface name="com.example.SampleInterface0">
<method name="Frobate">
<arg name="0-foo-bar" type="i" direction="in"/>
</method>
<property name="0-baz-qux" type="y" access="write"/>
</interface>
</node>

View File

@@ -5,7 +5,7 @@
<method name="Frobate">
<arg name="foo" type="i" direction="in"/>
<arg name="bar" type="s" direction="out"/>
<arg name="baz" type="a{us}" direction="out"/>
<arg name="0-baz" type="a{us}" direction="out"/>
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>
<method name="Bazify">
@@ -16,11 +16,11 @@
<arg name="bar" type="(iiav)" direction="in"/>
</method>
<signal name="Changed">
<arg name="new_value" type="b"/>
<arg name="0-new_value" type="b"/>
</signal>
<signal name="ChangedMulti">
<arg name="new_value1" type="b"/>
<arg name="new_value2" type="y"/>
<arg name="0-new_value2" type="y"/>
</signal>
<property name="Bar" type="y" access="write"/>
</interface>