Commit graph

2 commits

Author SHA1 Message Date
Lane Kolbly
d6cb55ef08 uhd: Create discoverable feature registry implementation
Classes which want to implement discoverable_feature can simply inherit
from this registry and get access to an ergonomic map-backed registry of
features.
2020-06-25 13:36:08 -05:00
Lane Kolbly
e9ae5fb949 uhd: Add discoverable_features API
The "discoverable features" API handles how clients access the myriad
features we offer, without simply adding a million has_FOO and do_FOO
methods to radio_control and multi_usrp. discoverable_features allows
clients to query the existance of, enumerate, and ultimately they get
(by enum or by type) an object which implements their wanted feature.
2020-06-25 13:36:08 -05:00