summaryrefslogtreecommitdiffstats
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:04:37 -0800
commiteef4216ca7073868fb6cf15e5d6c8b75e1576538 (patch)
treeb0848faed1c0de4e60e7359811158b7674a18c30 /host/include
parent76ebda895cae3bd0014a5e428b07440445f3b631 (diff)
downloaduhd-eef4216ca7073868fb6cf15e5d6c8b75e1576538.tar.gz
uhd-eef4216ca7073868fb6cf15e5d6c8b75e1576538.tar.bz2
uhd-eef4216ca7073868fb6cf15e5d6c8b75e1576538.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;