Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: dbus/message.h

Issue 502793002: Add a GetSignature() method to dbus::MessageReader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dbus/message.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/message.h
diff --git a/dbus/message.h b/dbus/message.h
index db3456acd0cd2aadb81fe76ed239f7de5bdc4b03..d29e5e46e89021ab11b60f18c92d73047ad21873 100644
--- a/dbus/message.h
+++ b/dbus/message.h
@@ -111,7 +111,7 @@ class CHROME_DBUS_EXPORT Message {
std::string GetMember();
std::string GetErrorName();
std::string GetSender();
- std::string GetSignature();
+ std::string GetDataSignature();
// Gets the serial and reply serial numbers. Returns 0 if not set.
uint32 GetSerial();
uint32 GetReplySerial();
@@ -463,6 +463,11 @@ class CHROME_DBUS_EXPORT MessageReader {
// end of the message.
Message::DataType GetDataType();
+ // Get the DBus signature of the value at the current iterator position.
+ // An empty string will be returned if the iterator points to the end of
+ // the message.
+ std::string GetDataSignature();
+
private:
// Returns true if the data type at the current iterator position
// matches the given D-Bus type, such as DBUS_TYPE_BYTE.
« no previous file with comments | « no previous file | dbus/message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698