DBusWatch / DBUS_WATCH_WRITABLE

Havoc Pennington hp at redhat.com
Thu Jun 1 12:08:36 PDT 2006



Sander Jansen wrote:
> Ah, ok. I will try that. Is there a document anywhere that descripes
> the meaning of the return values of the callback functions? For
> example, the add_watch callback returns a bool. If I don't add a watch
> since it is not enabled should I return true or false. Or should I
> always return true, unless an error occurs?
> 

False means you ran out of memory trying to add it, should always return 
true otherwise.

http://dbus.freedesktop.org/doc/api/html/group__DBusConnection.html#g99ebf416cd427a1044c244f1f92bc7aa
are the only docs, would be nice to add docs on the callbacks as you say.

Havoc


More information about the dbus mailing list