-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to enable introspection #23
Comments
Support for introspection is not currently implemented in this repository. [0] phmarek@d729db6 |
On a similar topic, is it possible to use this library to call the method of an object that does not expose any introspection element? The only way I know to call methods using this library is to introspect objects as follows: (dbus:with-open-bus (bus (dbus:session-server-addresses))
(dbus:with-introspected-object (object bus +object-path+ +name+)
(apply #'object +interface+ method args))) |
I've managed to call an object method without introspection like this: (dbus:with-open-bus (bus (dbus:session-server-addresses))
(let ((object (dbus/introspect::make-object
(dbus:bus-connection bus) +core-object+ +core-name+
(list (dbus/introspect::make-interface
+core-interface+
(list
(dbus/introspect::make-method "make_buffers"
"as"
'("urls")
'("as")
'()))
nil nil)))))
(apply #'dbus:object-invoke object +core-interface+ method args))) This requires access to a lot of unexposed methods. I believe that introspection is not a requirement of D-Bus and in fact glib's dbus API supports them (that's how I can call Common Lisp methods). So what about exposing a convenience function that roughly does the above? |
If you don't want to use introspection, use |
Thanks!
I will send a pull request for a documentation update listing the most
useful methods and some more examples.
|
When I run D-Feet to introspect the object, it appears in the object list on the session. When I click on it however, I get the following error message:
Do I need to do something special to enable introspection or is it simply lacking in this library?
The text was updated successfully, but these errors were encountered: