From fabed5f21324473a5b1345ce5d4ff8807715e7eb Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 20 Jul 2017 11:50:55 -0700 Subject: C API: Added constructor for empty sensor value handles' --- host/include/uhd/types/sensors.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'host/include') diff --git a/host/include/uhd/types/sensors.h b/host/include/uhd/types/sensors.h index c0037c9f6..68468b04b 100644 --- a/host/include/uhd/types/sensors.h +++ b/host/include/uhd/types/sensors.h @@ -51,6 +51,20 @@ typedef enum { UHD_SENSOR_VALUE_STRING = 115 } uhd_sensor_value_data_type_t; +//! Make an empty UHD sensor value. +/*! + * The purpose of this call is to populate the handle with a valid sensor value + * object. Querying this object will always yield 'false'. Typically, this + * sensor value object will never be used, but it will allow the handle object + * to be used with sensor functions later on. + * + * \param h the sensor handle in which to place sensor + * \returns UHD error code + */ +UHD_API uhd_error uhd_sensor_value_make( + uhd_sensor_value_handle* h +); + //! Make a UHD sensor from a boolean. /*! * \param h the sensor handle in which to place sensor -- cgit v1.2.3