[patch] break glib bindings by adding timeout_milliseconds

Thiago Macieira thiago.macieira at trolltech.com
Wed Mar 1 02:19:33 PST 2006


David Zeuthen wrote:
>I don't really like magic numbers such as -1 or -2 so I would prefer b.
>[1]. Realistically, though, we probably want to go for a. and also add
>symbolic constants
>
> #define DBUS_TIMEOUT_DEFAULT -1
> #define DBUS_TIMEOUT_FOREVER -2
>
>or something. Sure, it's more typing but, eh, the -1 in most uses of
>dbus_connection_send_with_reply just seems to magical.

How about 0?

Making a blocking call that doesn't wait has no meaning. You cannot get an 
instantaneous reply anyways.
-- 
Thiago José Macieira - thiago.macieira AT trolltech.com
Trolltech AS - Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060301/df6badda/attachment.pgp


More information about the dbus mailing list