C-API Examples
Ralf Habacker
ralf.habacker at freenet.de
Wed May 10 10:15:51 PDT 2006
Havoc Pennington schrieb:
> Ralf Habacker wrote:
>> I recognized that some core tools like dbus-monitor uses the glib
>> mainloop. What does this means relating to the binding split from the
>> core ?
>> If glib will be a requirement for the core library, than on windows
>> glib will be a requirement for dbus, which would not be good at all.
>> If glib will not be a requirement, a dbus only mainloop has to be
>> implemented for unix and windows.
>>
>
> I don't really consider dbus-monitor a "core tool", it's just a
> debugging hack more or less. There's already a crappy main loop
> abstraction used by dbus-daemon that dbus-monitor could use (or for
> that matter dbus-monitor could just be blocking, I don't know why it
> isn't, I'm surprised it isn't really ... don't have the source handy
> to look)
>
> Anyhow, I would oppose public API offering a "dbus main loop" (for
> obvious reasons) but using the existing dbus main loop for stuff that
> ships with dbus is of course feasible.
>
As I initial took a look into dbus-monitor I saw the function
g_main_loop_run () and my thoughts are "Is there something similar in
native dbus ? I found dbus_loop_run() but were surprised, that it does
not work similar. Isn't this function intendet for a public main loop
API ?
Ralf
More information about the dbus
mailing list