fdf::DriverBase

Summary

Constructors and Destructors

DriverBase(std::string_view name, DriverStartArgs start_args, fdf::UnownedSynchronizedDispatcher driver_dispatcher)
DriverBase(const DriverBase &)
~DriverBase()

Protected attributes

logger_
std::unique_ptr< Logger >

Public static functions

GetInstanceFromTokenForTesting(void *token)
DriverBaseImpl *

Public functions

PrepareStop(PrepareStopCompleter completer)
virtual void
Start()
virtual zx::result
Start(StartCompleter completer)
virtual void
Stop()
virtual void
logger()
Logger &
operator=(const DriverBase &)=delete

Protected functions

InitInspectorExactlyOnce(inspect::Inspector inspector)
void
dispatcher() const
async_dispatcher_t *
driver_dispatcher() const
incoming() const
const std::shared_ptr< Namespace > &
inspector()
name() const
std::string_view
node()
fidl::ClientEnd< fuchsia_driver_framework::Node > &
node() const
const fidl::ClientEnd< fuchsia_driver_framework::Node > &
node_name() const
const std::optional< std::string > &
node_properties(const std::string & parent_node_name) const
cpp20::span< const fuchsia_driver_framework::NodeProperty >
outgoing()
std::shared_ptr< OutgoingDirectory > &
program() const
const std::optional< fuchsia_data::Dictionary > &
svc() const
fidl::UnownedClientEnd< fuchsia_io::Directory >
symbols() const
const std::optional< std::vector< fuchsia_driver_framework::NodeSymbol > > &
take_config()
StructuredConfig
url() const
const std::optional< std::string > &

Protected attributes

logger_

std::unique_ptr< Logger > logger_

Public static functions

GetInstanceFromTokenForTesting

DriverBaseImpl * GetInstanceFromTokenForTesting(
  void *token
)

Public functions

DriverBase

 DriverBase(
  std::string_view name,
  DriverStartArgs start_args,
  fdf::UnownedSynchronizedDispatcher driver_dispatcher
)

DriverBase

 DriverBase(
  const DriverBase &
)=delete

PrepareStop

virtual void PrepareStop(
  PrepareStopCompleter completer
)

Start

virtual zx::result Start()

Start

virtual void Start(
  StartCompleter completer
)

Stop

virtual void Stop()

logger

Logger & logger()

operator=

DriverBase & operator=(
  const DriverBase &
)=delete

~DriverBase

virtual  ~DriverBase()

Protected functions

InitInspectorExactlyOnce

void InitInspectorExactlyOnce(
  inspect::Inspector inspector
)

dispatcher

async_dispatcher_t * dispatcher() const 

driver_dispatcher

const fdf::UnownedSynchronizedDispatcher & driver_dispatcher() const 

incoming

const std::shared_ptr< Namespace > & incoming() const 

inspector

inspect::ComponentInspector & inspector()

name

std::string_view name() const 

node

fidl::ClientEnd< fuchsia_driver_framework::Node > & node()

node

const fidl::ClientEnd< fuchsia_driver_framework::Node > & node() const 

node_name

const std::optional< std::string > & node_name() const 

node_properties

cpp20::span< const fuchsia_driver_framework::NodeProperty > node_properties(
  const std::string & parent_node_name
) const 

outgoing

std::shared_ptr< OutgoingDirectory > & outgoing()

program

const std::optional< fuchsia_data::Dictionary > & program() const 

svc

fidl::UnownedClientEnd< fuchsia_io::Directory > svc() const 

symbols

const std::optional< std::vector< fuchsia_driver_framework::NodeSymbol > > & symbols() const 

take_config

StructuredConfig take_config()

url

const std::optional< std::string > & url() const