Changeset 24073 in vbox
- Timestamp:
- Oct 26, 2009 1:01:33 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/dbus-calls.h
r23863 r24073 27 27 /** The following are the symbols which we need from libdbus-1. */ 28 28 VBOX_PROXY_STUB(dbus_error_init, void, (DBusError *error), 29 (error)) 30 VBOX_PROXY_STUB(dbus_error_is_set, dbus_bool_t, (const DBusError *error), 29 31 (error)) 30 32 VBOX_PROXY_STUB(dbus_bus_get, DBusConnection *, -
trunk/src/VBox/Additions/x11/VBoxClient/hostversion.cpp
r24069 r24073 100 100 101 101 DBusError err; 102 dbus_connection_send_with_reply_and_block(conn, msg, 30 * 1000, &err); 102 DBusMessage *reply; 103 reply = dbus_connection_send_with_reply_and_block(conn, msg, 104 30 * 1000 /* 30 seconds timeout */, &err); 105 if (dbus_error_is_set(&err)) 106 { 107 Log(("D-BUS returned an error while sending the notification: %s", err.message)); 108 } 109 else if (reply) 110 { 103 111 dbus_connection_flush(conn); 112 dbus_message_unref(reply); 113 } 104 114 } 105 115 if (msg != NULL)
Note:
See TracChangeset
for help on using the changeset viewer.