|
Sen API
Sen Libraries
|
#include <source_info.h>
Public Member Functions | |
| ~SessionsDiscoverer () override=default | |
| std::shared_ptr< SessionInfoProvider > | makeSessionInfoProvider (const std::string &sessionName) |
| const std::string & | getName () const noexcept |
| The name of the session. | |
| std::vector< std::string > | getDetectedSources () const |
| Name of the buses discovered so far. | |
| void | onSourceDetected (const std::function< void(const std::string &)> &callback) |
| Sets a callback that will be invoked when sources are detected. The first time it will be called for each of the already-detected sources. Replaces any previously-set callback. | |
| void | onSourceUndetected (const std::function< void(const std::string &)> &callback) |
| Sets a callback that will be invoked when sources are undetected. Replaces any previously-set callback. | |
Protected Member Functions | |
| void | drainInputs () override |
| void | addSource (const std::string &name) |
| void | removeSource (const std::string &name) |
| void | lock () |
| void | unlock () |
Friends | |
| class | KernelApi |
| class | impl::KernelImpl |
| class | impl::Runner |
|
overridedefault |
|
nodiscard |
|
overrideprotectedvirtual |
Reimplemented from sen::kernel::SourceInfo.
|
nodiscardnoexceptinherited |
The name of the session.
|
nodiscardinherited |
Name of the buses discovered so far.
|
inherited |
Sets a callback that will be invoked when sources are detected. The first time it will be called for each of the already-detected sources. Replaces any previously-set callback.
|
inherited |
Sets a callback that will be invoked when sources are undetected. Replaces any previously-set callback.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
friend |
|
friend |
|
friend |