-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Support creation of a zbus::Connection
from a gio::DBusConnection
#592
Comments
This method is has a default implementation that just uses the lower-level sibling method, `sendmsg`. Implementers can either override this method or the lower-level method, depending on the underlying socket they're using. Hopefully this will enable us to: * In-memory Connection pair dbus2#591. * Support creation of a zbus::Connection from a gio::DBusConnection dbus2#592.
Last night I got #590 almost complete and thought more about this. I realized that Also while there are Due to this, I'm not sure #590 can help much here. We'll probably need some wrapper instead that |
I think this would be a great idea -- I would really like to see this, but I think it would be good to make it available under a feature flag (gtk libraries take literally forever to build). I am making a gtk app right now and it would really help to be able to use only one dbus implementation. |
Of course, that's implied here. 😊 We're not going to depend on gtk though, just gio. |
That is already possible. You don't have to use gio's connection for any of your D-Bus needs at all. The only "issue" is that But that's not really a problem, since it's a good D-Bus practice to append version numbers to your names anyway. So there doesn't need to be a conflict and in fact there's only a conflict if you don't follow recommended good practices. |
Glad to hear this is still planned. I have been trying out |
I wouldn't call this a plan. I created this issue with the assumption that #590 will enable this but I was wrong. Now I'm not sure how we can implement this. I'll probably not be the one doing it anyway. As I explained above, this isn't really an issue, especially if people would version their service names, like they should. |
This method is has a default implementation that just uses the lower-level sibling method, `recvmsg`. Implementers can either override this method or the lower-level method, depending on the underlying socket they're using. Hopefully this will enable us to: * In-memory Connection pair dbus2#591. * Support creation of a zbus::Connection from a gio::DBusConnection dbus2#592.
Support creation of a
zbus::Connection
from agio::DBusConnection
, which will mean we can finally remove this thorn. However, this will require a bit more. At least, we'll also need to figure out what to do with names registered by the underlying connection. This may or may not work out but it's worth a try.Requires #590.
The text was updated successfully, but these errors were encountered: