libASPL
Loading...
Searching...
No Matches
aspl::Context Struct Reference

Common object context. Shared between objects which belong to the same driver. More...

#include <aspl/Context.hpp>

Public Member Functions

 Context (std::shared_ptr< aspl::Tracer > tracer={}, std::shared_ptr< aspl::Dispatcher > dispatcher={})
 Create context. If dispatcher or tracer is not specified, default one is created. Default tracer sends output to syslog.
 

Public Attributes

const std::shared_ptr< DispatcherDispatcher
 Object dispatcher. Maps object identifiers to objects. Object ID is unique within a dispatcher.
 
const std::shared_ptr< TracerTracer
 Object operation tracer. All objects use it for logging.
 
std::atomic< AudioServerPlugInHostRefHost = nullptr
 Plugin host. Contains method table of HAL. Initially host is null. It is set during plugin initialization.
 

Detailed Description

Common object context. Shared between objects which belong to the same driver.

Definition at line 21 of file Context.hpp.

Constructor & Destructor Documentation

◆ Context()

aspl::Context::Context ( std::shared_ptr< aspl::Tracer > tracer = {},
std::shared_ptr< aspl::Dispatcher > dispatcher = {} )
inlineexplicit

Create context. If dispatcher or tracer is not specified, default one is created. Default tracer sends output to syslog.

Definition at line 40 of file Context.hpp.

Member Data Documentation

◆ Dispatcher

const std::shared_ptr<Dispatcher> aspl::Context::Dispatcher

Object dispatcher. Maps object identifiers to objects. Object ID is unique within a dispatcher.

Definition at line 26 of file Context.hpp.

◆ Host

std::atomic<AudioServerPlugInHostRef> aspl::Context::Host = nullptr

Plugin host. Contains method table of HAL. Initially host is null. It is set during plugin initialization.

Definition at line 35 of file Context.hpp.

◆ Tracer

const std::shared_ptr<Tracer> aspl::Context::Tracer

Object operation tracer. All objects use it for logging.

Definition at line 30 of file Context.hpp.


The documentation for this struct was generated from the following file: