aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-02-25 15:02:09 -0800
committerJosh Blum <josh@joshknows.com>2011-02-25 15:03:22 -0800
commitb99c655d2ae52ee14e6430b175fe4849ccc0f0e7 (patch)
treea59a97ee3f47aabd398dc6c19be80d95ed4905da /host/include
parenta675b9d8d0ee0f23f59bd6426cf42ed673a26c50 (diff)
downloaduhd-b99c655d2ae52ee14e6430b175fe4849ccc0f0e7.tar.gz
uhd-b99c655d2ae52ee14e6430b175fe4849ccc0f0e7.tar.bz2
uhd-b99c655d2ae52ee14e6430b175fe4849ccc0f0e7.zip
uhd: sensors header fix to make swig happy
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/types/sensors.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/host/include/uhd/types/sensors.hpp b/host/include/uhd/types/sensors.hpp
index b6215367f..97d82b4e2 100644
--- a/host/include/uhd/types/sensors.hpp
+++ b/host/include/uhd/types/sensors.hpp
@@ -117,13 +117,16 @@ namespace uhd{
*/
const std::string unit;
- //! The data type of the value
- const enum{
+ //! Enumeration of possible data types in a sensor
+ enum data_type_t {
BOOLEAN = 'b',
INTEGER = 'i',
REALNUM = 'r',
STRING = 's'
- } type;
+ };
+
+ //! The data type of the value
+ const data_type_t type;
//! Convert this sensor value into a printable string
std::string to_pp_string(void) const;