C++ GDBus内省xml中的多个完整类型

C++ GDBus内省xml中的多个完整类型,c++,xml,introspection,dbus,gdbus,C++,Xml,Introspection,Dbus,Gdbus,如何在gdbus内省xml中传递多个完整类型。例如 <method name="Frobate"> <arg name="foo" type="ii" direction="in"/> <annotation name="org.freedesktop.DBus.Deprecated" value="true"/> </method> 当我尝试这种格式时,我得到的错误如下 Error org.free

如何在gdbus内省xml中传递多个完整类型。例如

<method name="Frobate">
          <arg name="foo" type="ii" direction="in"/> 
          <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>

当我尝试这种格式时,我得到的错误如下

Error org.freedesktop.DBus.Error.InvalidArgs:消息类型,“(ii)”, 不匹配预期的类型'(null)'

当我使用

<method name="Frobate">
          <arg name="foo" type="(ii)" direction="in"/> 
          <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
</method>

错误变成

Error org.freedesktop.DBus.Error.InvalidArgs:消息类型,“(ii)”, 与预期的类型“((ii))”不匹配


通过这种方式,您可以提供多个完整类型

 <method name='YourMethod'>"
  <arg type='i' name='name1' direction='in'/>"
  <arg type='i' name='name2' direction='in'/>"
 </method>
”
"
"