dbuswrite: Add another write() form to WriteInterface

Adding another form of the write() call,
which takes 3 arguments instead of 1,
providing an alternate interface for caller to use.

A compatibility function is provided,
which simply calls write(), so no API breakage.

The additional arguments to write() allow caller
to force the write to happen even if old value same,
and/or to learn the actual raw value written.

Adding boilerplate to Sensor and PluggableSensor,
to also pass the 3-argument write() through.

Signed-off-by: Josh Lehan <krellan@google.com>
Change-Id: Iaf35f674ef9ce38b56017f6cb0f821df6c789649
diff --git a/sensors/pluggable.cpp b/sensors/pluggable.cpp
index 07d3d0e..530737d 100644
--- a/sensors/pluggable.cpp
+++ b/sensors/pluggable.cpp
@@ -29,6 +29,11 @@
     _writer->write(value);
 }
 
+void PluggableSensor::write(double value, bool force, int64_t* written)
+{
+    _writer->write(value, force, written);
+}
+
 bool PluggableSensor::getFailed(void)
 {
     return _reader->getFailed();