aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorLane Kolbly <lane.kolbly@ni.com>2020-06-25 13:31:57 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2020-06-25 13:36:08 -0500
commit1b502694e1ae283446c3b0bd2d9b9279b8699889 (patch)
tree77bb622c9904d9baa28d11cfea1093f1582bd2ee /host
parentd25782cf487bbed397a35c330ca0613251fd1b5d (diff)
downloaduhd-1b502694e1ae283446c3b0bd2d9b9279b8699889.tar.gz
uhd-1b502694e1ae283446c3b0bd2d9b9279b8699889.tar.bz2
uhd-1b502694e1ae283446c3b0bd2d9b9279b8699889.zip
fixup! uhd: Add discoverable_features API
Diffstat (limited to 'host')
-rw-r--r--host/include/uhd/features/discoverable_feature.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/host/include/uhd/features/discoverable_feature.hpp b/host/include/uhd/features/discoverable_feature.hpp
index dfb0ede5b..afe25cb63 100644
--- a/host/include/uhd/features/discoverable_feature.hpp
+++ b/host/include/uhd/features/discoverable_feature.hpp
@@ -25,6 +25,9 @@ class discoverable_feature
{
public:
using sptr = std::shared_ptr<discoverable_feature>;
+
+ //! An enum of all features supported by the driver. When creating a new
+ // feature, you should add an entry to this enum.
enum feature_id_t {
RESERVED0,
RESERVED1,
@@ -32,7 +35,7 @@ public:
virtual ~discoverable_feature() = default;
- //! Returns a human-readonable string name of this feature.
+ //! Returns a human-readable string name of this feature.
virtual std::string get_feature_name() const = 0;
};