DBUS_TIMEOUT_USE_DEFAULT appeared in dbus-1.4.12, but earlier dbus versions
are still in use in some distributions like Fedora 17.
#include <gdbus.h>
+#define TIMEOUT 30000
+
#define NEARD_SERVICE "org.neard"
#define NEARD_PATH "/"
#define NEARD_MANAGER_INTERFACE "org.neard.Manager"
&path, DBUS_TYPE_STRING, &type, DBUS_TYPE_INVALID);
if (dbus_connection_send_with_reply(connection, message,
- ®ister_call, DBUS_TIMEOUT_USE_DEFAULT) == FALSE) {
+ ®ister_call, TIMEOUT) == FALSE) {
dbus_message_unref(message);
goto out;
}