Skip to content

Commit

Permalink
Declare the Introspectable interface, fixes #99
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Aug 16, 2022
1 parent a6f988b commit 7e401c5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

Bug fixes:
* Declare the Introspectable interface in exported objects([#99][]).

[#99]: https://github.com/mvidner/ruby-dbus/issues/99

## Ruby D-Bus 0.18.1 - 2022-07-13

No changes since 0.18.0.beta8.
Expand Down
7 changes: 7 additions & 0 deletions lib/dbus/object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -459,5 +459,12 @@ def dbus_lookup_property(interface_name, property_name)

dbus_signal :PropertiesChanged, "interface:s, changed_properties:a{sv}, invalidated_properties:as"
end

dbus_interface "org.freedesktop.DBus.Introspectable" do
dbus_method :Introspect, "out xml_data:s" do
# The body is not used, Connection#process handles it instead
# which is more efficient and handles paths without objects.
end
end
end
end

0 comments on commit 7e401c5

Please sign in to comment.