summaryrefslogtreecommitdiffstats
path: root/dbus/property.h
diff options
context:
space:
mode:
authorkeybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-21 22:55:17 +0000
committerkeybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-21 22:55:17 +0000
commit5702b441f242c7ab09233898932bb2d6fc5c2c47 (patch)
treef2d6aa291a7254988d7671a3b9459a7d8ed21e6f /dbus/property.h
parent3b742d48691782b63415dcb529d9d7662f2b746e (diff)
downloadchromium_src-5702b441f242c7ab09233898932bb2d6fc5c2c47.zip
chromium_src-5702b441f242c7ab09233898932bb2d6fc5c2c47.tar.gz
chromium_src-5702b441f242c7ab09233898932bb2d6fc5c2c47.tar.bz2
DBus: declare property specializations
Without declaring the property specializations in the header file, the compiler can sometimes generate default constructors that don't initialize the variables correctly. BUG=none TEST=unit_tests pass Review URL: https://chromiumcodereview.appspot.com/10963037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158105 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus/property.h')
-rw-r--r--dbus/property.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/dbus/property.h b/dbus/property.h
index 2d98b74..87c9806 100644
--- a/dbus/property.h
+++ b/dbus/property.h
@@ -399,6 +399,66 @@ class Property : public PropertyBase {
T set_value_;
};
+template <> Property<uint8>::Property();
+template <> bool Property<uint8>::PopValueFromReader(MessageReader* reader);
+template <> void Property<uint8>::AppendSetValueToWriter(MessageWriter* writer);
+
+template <> Property<bool>::Property();
+template <> bool Property<bool>::PopValueFromReader(MessageReader* reader);
+template <> void Property<bool>::AppendSetValueToWriter(MessageWriter* writer);
+
+template <> Property<int16>::Property();
+template <> bool Property<int16>::PopValueFromReader(MessageReader* reader);
+template <> void Property<int16>::AppendSetValueToWriter(MessageWriter* writer);
+
+template <> Property<uint16>::Property();
+template <> bool Property<uint16>::PopValueFromReader(MessageReader* reader);
+template <> void Property<uint16>::AppendSetValueToWriter(
+ MessageWriter* writer);
+
+template <> Property<int32>::Property();
+template <> bool Property<int32>::PopValueFromReader(MessageReader* reader);
+template <> void Property<int32>::AppendSetValueToWriter(MessageWriter* writer);
+
+template <> Property<uint32>::Property();
+template <> bool Property<uint32>::PopValueFromReader(MessageReader* reader);
+template <> void Property<uint32>::AppendSetValueToWriter(
+ MessageWriter* writer);
+
+template <> Property<int64>::Property();
+template <> bool Property<int64>::PopValueFromReader(MessageReader* reader);
+template <> void Property<int64>::AppendSetValueToWriter(MessageWriter* writer);
+
+template <> Property<uint64>::Property();
+template <> bool Property<uint64>::PopValueFromReader(MessageReader* reader);
+template <> void Property<uint64>::AppendSetValueToWriter(
+ MessageWriter* writer);
+
+template <> Property<double>::Property();
+template <> bool Property<double>::PopValueFromReader(MessageReader* reader);
+template <> void Property<double>::AppendSetValueToWriter(
+ MessageWriter* writer);
+
+template <> bool Property<std::string>::PopValueFromReader(
+ MessageReader* reader);
+template <> void Property<std::string>::AppendSetValueToWriter(
+ MessageWriter* writer);
+
+template <> bool Property<ObjectPath>::PopValueFromReader(
+ MessageReader* reader);
+template <> void Property<ObjectPath>::AppendSetValueToWriter(
+ MessageWriter* writer);
+
+template <> bool Property<std::vector<std::string> >::PopValueFromReader(
+ MessageReader* reader);
+template <> void Property<std::vector<std::string> >::AppendSetValueToWriter(
+ MessageWriter* writer);
+
+template <> bool Property<std::vector<ObjectPath> >::PopValueFromReader(
+ MessageReader* reader);
+template <> void Property<std::vector<ObjectPath> >::AppendSetValueToWriter(
+ MessageWriter* writer);
+
} // namespace dbus
#endif // DBUS_PROPERTY_H_