local barexml = [=[
]=]
local function _retxml(nextnode)
return [=[
]=]
end
local function _introspect_cb(data, text)
if data.member == "Introspect" then
local nextnode
if data.path == "/" then
nextnode = "org"
elseif data.path == "/org" then
nextnode = "freedesktop"
elseif data.path == "/org/freedesktop" then
nextnode = "Notifications"
else
return "s", barexml
end
return "s", _retxml(nextnode)
end
end
local function _property_cb(data, text)
end
dbus.connect_signal("", _introspect_cb)
dbus.connect_signal("org.freedesktop.DBus.Properties", _property_cb)