summaryrefslogtreecommitdiff
path: root/dbus/dbus-pending-call.h
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2011-06-10 17:38:14 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-06-10 18:33:04 +0100
commit719ada0e226eca87bbf6f01194e789d03ae602fd (patch)
treef87b27ed8716f8f3418ef7e4ea6d0719823d78ff /dbus/dbus-pending-call.h
parent0fa7d26c8e25c406d31b25b37fc3a5834f8891cd (diff)
downloaddbus-719ada0e226eca87bbf6f01194e789d03ae602fd.tar.gz
Add and use DBUS_TIMEOUT_INFINITE and DBUS_TIMEOUT_USE_DEFAULT
The documentation claimed that INT_MAX (whatever that means) meant the default, but the value that has actually always been checked for is 0x7fffffff (aka INT32_MAX on the competent platforms we sadly don't restrict our portability to), so we should use that. (In practice D-Bus probably never worked on platforms where int wasn't 32 bits, though.) Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
Diffstat (limited to 'dbus/dbus-pending-call.h')
-rw-r--r--dbus/dbus-pending-call.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/dbus/dbus-pending-call.h b/dbus/dbus-pending-call.h
index 8f64b8be..8a37ec0a 100644
--- a/dbus/dbus-pending-call.h
+++ b/dbus/dbus-pending-call.h
@@ -38,6 +38,9 @@ DBUS_BEGIN_DECLS
* @{
*/
+#define DBUS_TIMEOUT_INFINITE ((int) 0x7fffffff)
+#define DBUS_TIMEOUT_USE_DEFAULT (-1)
+
DBUS_EXPORT
DBusPendingCall* dbus_pending_call_ref (DBusPendingCall *pending);
DBUS_EXPORT