C convenience lib (was Re: Is dbus_pending_call_set_notify() thread safe?)
Thiago Macieira
thiago at kde.org
Thu Aug 2 16:53:28 PDT 2007
Replying in multiple mails
Havoc Pennington wrote:
>1)
>
>So I think it would be OK for a library or plugin to assume "something
>will dispatch the session bus connection" and that would work fine, with
>no direct dependency on say dbus-glib. All a lib/plugin really has to
>know is that something will be doing the read/write/dispatch task.
>
>Contradicting my previous mail a bit, conceivably this allows some
>simple plugins or libraries to avoid caring about the main loop, though
>it would only work if the plugin never needed a main loop for any
>_other_ dbus-unrelated reason.
I agree that would be nice to have.
I also think it's not a feasible idea. The plugin/library has to require
that from the application. Which in turn makes it impossible to use said
plugin/library from a bare-bones application. It would have to do the
dispatching itself or link to a binding. This changes the requirements
for the library/plugin itself (i.e., you can't add D-Bus as a new backend
in an existing library).
Besides, this is a contradiction with "the binding can take over the
shared connection and do whatever it pleases with it".
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20070802/496fce78/attachment.pgp
More information about the dbus
mailing list