diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-05 01:56:14 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-05 01:56:14 +0000 |
commit | e3024465ac38cafd6ef30c4e08c107acef249b94 (patch) | |
tree | 315c4c3c86753ef6fc8215e220a3c192f21e2d8c /dbus/message.h | |
parent | aaf2a32109d62ae6f96cc83263370a824ee85a6d (diff) | |
download | chromium_src-e3024465ac38cafd6ef30c4e08c107acef249b94.zip chromium_src-e3024465ac38cafd6ef30c4e08c107acef249b94.tar.gz chromium_src-e3024465ac38cafd6ef30c4e08c107acef249b94.tar.bz2 |
dbus: Make it possible to build as shared_library.
BUG=158887
R=satorux@chromium.org
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/11364033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165893 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus/message.h')
-rw-r--r-- | dbus/message.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/dbus/message.h b/dbus/message.h index 85d045c..42d6860 100644 --- a/dbus/message.h +++ b/dbus/message.h @@ -10,6 +10,7 @@ #include <dbus/dbus.h> #include "base/basictypes.h" +#include "dbus/dbus_export.h" #include "dbus/file_descriptor.h" #include "dbus/object_path.h" @@ -35,7 +36,7 @@ class MessageReader; // Returns true if Unix FD passing is supported in libdbus. // The check is done runtime rather than compile time as the libdbus // version used at runtime may be different from the one used at compile time. -bool IsDBusTypeUnixFdSupported(); +CHROME_DBUS_EXPORT bool IsDBusTypeUnixFdSupported(); // Message is the base class of D-Bus message types. Client code must use // sub classes such as MethodCall and Response instead. @@ -44,7 +45,7 @@ bool IsDBusTypeUnixFdSupported(); // as the class is inside 'dbus' namespace. We chose to name this way, as // libdbus defines lots of types starting with DBus, such as // DBusMessage. We should avoid confusion and conflict with these types. -class Message { +class CHROME_DBUS_EXPORT Message { public: // The message type used in D-Bus. Redefined here so client code // doesn't need to use raw D-Bus macros. DBUS_MESSAGE_TYPE_INVALID @@ -137,7 +138,7 @@ class Message { }; // MessageCall is a type of message used for calling a method via D-Bus. -class MethodCall : public Message { +class CHROME_DBUS_EXPORT MethodCall : public Message { public: // Creates a method call message for the specified interface name and // the method name. @@ -166,7 +167,7 @@ class MethodCall : public Message { }; // Signal is a type of message used to send a signal. -class Signal : public Message { +class CHROME_DBUS_EXPORT Signal : public Message { public: // Creates a signal message for the specified interface name and the // method name. @@ -196,7 +197,7 @@ class Signal : public Message { // Response is a type of message used for receiving a response from a // method via D-Bus. -class Response : public Message { +class CHROME_DBUS_EXPORT Response : public Message { public: // Returns a newly created Response from the given raw message of the // type DBUS_MESSAGE_TYPE_METHOD_RETURN. The caller must delete the @@ -222,7 +223,7 @@ class Response : public Message { // ErrorResponse is a type of message used to return an error to the // caller of a method. -class ErrorResponse: public Response { +class CHROME_DBUS_EXPORT ErrorResponse: public Response { public: // Returns a newly created Response from the given raw message of the // type DBUS_MESSAGE_TYPE_METHOD_RETURN. The caller must delete the @@ -261,7 +262,7 @@ class ErrorResponse: public Response { // // writer.AppendString(str); // -class MessageWriter { +class CHROME_DBUS_EXPORT MessageWriter { public: // Data added with Append* will be written to |message|, which may be NULL // to create a sub-writer for passing to OpenArray, etc. @@ -362,7 +363,7 @@ class MessageWriter { // // MessageReader manages an internal iterator to read data. All functions // starting with Pop advance the iterator on success. -class MessageReader { +class CHROME_DBUS_EXPORT MessageReader { public: // The data will be read from the given |message|, which may be NULL to // create a sub-reader for passing to PopArray, etc. |