Previous: What else to know about interfaces., Up: Inspection of D-Bus services. [Contents][Index]
Methods and signals have arguments. They are described in the
arg
XML elements.
This function returns a list of all argument names as strings.
name must be a method
or signal
XML element.
Example:
(dbus-introspect-get-argument-names :session "org.freedesktop.xesam.searcher" "/org/freedesktop/xesam/searcher/main" "org.freedesktop.xesam.Search" "GetHitData") ⇒ ("search" "hit_ids" "fields" "hit_data")
Argument names are optional; the function can therefore return
nil
, even if the method or signal has arguments.
This function returns the argument arg as an XML object.
name must be a method
or signal
XML element.
Example:
(dbus-introspect-get-argument :session "org.freedesktop.xesam.searcher" "/org/freedesktop/xesam/searcher/main" "org.freedesktop.xesam.Search" "GetHitData" "search") ⇒ (arg ((name . "search") (type . "s") (direction . "in")))
This function returns the signature of a method
or
signal
, represented by name, as a string.
If name is a method
, direction can be either
‘in’ or ‘out’. If direction is nil
, ‘in’
is assumed.
If name is a signal
, and direction is
non-nil
, direction must be ‘out’. Example:
(dbus-introspect-get-signature :session "org.freedesktop.xesam.searcher" "/org/freedesktop/xesam/searcher/main" "org.freedesktop.xesam.Search" "GetHitData" "in") ⇒ "sauas" (dbus-introspect-get-signature :session "org.freedesktop.xesam.searcher" "/org/freedesktop/xesam/searcher/main" "org.freedesktop.xesam.Search" "HitsAdded") ⇒ "su"