]> pilppa.com Git - lib1wire.git/commit
Api cleanups for device querying
authorMika Laitio <lamikr@pilppa.org>
Thu, 3 Mar 2011 17:42:05 +0000 (19:42 +0200)
committerMika Laitio <lamikr@pilppa.org>
Thu, 3 Mar 2011 17:42:05 +0000 (19:42 +0200)
commitda203ad44792ca37320768f4cbe68587c4806910
treec88506c21d9a8b4a457ca9cfbe0e3beb38fb3080
parent6caee6cb22c1334701afe7aa30bcf9668ca3a5c5
Api cleanups for device querying

Instead of having separate methods for asking the list of device-datas
stored to save directory and list of devices active, only one list of
devices is now returned which compines active devices and list of
inactive devices which have anyway data. Device has now lifecycle state
which indicates whether it's active.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
17 files changed:
src/DataReader.cc [moved from src/DeviceData.cc with 85% similarity]
src/DataReader.hh [moved from src/DeviceData.hh with 93% similarity]
src/Device.hh [moved from src/DeviceTypeGeneric.hh with 63% similarity]
src/DeviceTypes.hh [new file with mode: 0644]
src/Factory.cc
src/Factory.hh
src/Makefile.am
src/SensorDevice.hh [moved from src/DeviceTypeSensor.hh with 54% similarity]
src/StoreCache.cc
src/W1CounterDevice.cc
src/W1CounterDevice.hh
src/W1Device.cc
src/W1Device.hh
src/W1TemperatureSensor.cc
src/W1TemperatureSensor.hh
src_test/test_w1_datalog_read.cc
src_test/test_w1_datalog_write.cc