Index: dbus/bus.h |
diff --git a/dbus/bus.h b/dbus/bus.h |
index 89fba919fb35b279d7ef63551d26866db80b17eb..075bfb5d5439778e88db92d087a65e20b021362c 100644 |
--- a/dbus/bus.h |
+++ b/dbus/bus.h |
@@ -100,11 +100,15 @@ class ObjectProxy; |
// |
// Exporting a method: |
// |
-// Response* Echo(dbus::MethodCall* method_call) { |
+// void Echo(dbus::MethodCall* method_call, |
+// dbus::ExportedObject::SendResponseCallback send_response_cb) { |
// // Do something with method_call. |
// Response* response = Response::FromMethodCall(method_call); |
// // Build response here. |
-// return response; |
+// // Can send an immediate response here to implement a synchronous service |
+// // or store the send_response_cb and send a response later to implement |
+// // an asynchronous service. |
+// send_response_cb.Run(response); |
// } |
// |
// void OnExported(const std::string& interface_name, |