diff options
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/property.hpp | 10 | ||||
-rw-r--r-- | host/include/uhd/usrp/mboard_eeprom.hpp | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/host/include/uhd/property.hpp b/host/include/uhd/property.hpp index 6f337cb52..10ce463e0 100644 --- a/host/include/uhd/property.hpp +++ b/host/include/uhd/property.hpp @@ -35,6 +35,16 @@ public: typedef boost::function<T(void)> publisher_type; typedef boost::function<T(const T &)> master_type; + //! Default constructor + property(void){ + /* NOP */ + } + + //! Value initializer constructor + property(const T &value){ + _value = value; + } + /*! * Register a master subscriber into the property. * A master is a special subscriber that coerces the value. diff --git a/host/include/uhd/usrp/mboard_eeprom.hpp b/host/include/uhd/usrp/mboard_eeprom.hpp index 52363b95c..ea66bb2e0 100644 --- a/host/include/uhd/usrp/mboard_eeprom.hpp +++ b/host/include/uhd/usrp/mboard_eeprom.hpp @@ -56,7 +56,7 @@ namespace uhd{ namespace usrp{ * \param iface the interface to i2c * \param map the map type enum */ - void commit(i2c_iface &iface, map_type map); + void commit(i2c_iface &iface, map_type map) const; }; |