openthread-br  0.3.0-72c0388
Public Member Functions | List of all members
otbr::MainloopProcessor Class Referenceabstract

#include <src/common/mainloop.hpp>

Inheritance diagram for otbr::MainloopProcessor:
otbr::Mdns::AvahiPoller otbr::Mdns::PublisherMDnsSd otbr::Ncp::ControllerOpenThread otbr::rest::Connection otbr::rest::RestWebServer otbr::TaskRunner otbr::ubus::UBusAgent

Public Member Functions

virtual void Update (MainloopContext &aMainloop)=0
 
virtual void Process (const MainloopContext &aMainloop)=0
 

Detailed Description

This abstract class defines the interface of a mainloop processor which adds fds to the mainloop context and handles fds events.

Member Function Documentation

◆ Process()

virtual void otbr::MainloopProcessor::Process ( const MainloopContext aMainloop)
pure virtual

This method processes mainloop events.

Parameters
[in]aMainloopA reference to the mainloop context.

Implemented in otbr::ubus::UBusAgent, otbr::Mdns::AvahiPoller, otbr::TaskRunner, otbr::Ncp::ControllerOpenThread, otbr::rest::Connection, otbr::Mdns::PublisherMDnsSd, and otbr::rest::RestWebServer.

◆ Update()

virtual void otbr::MainloopProcessor::Update ( MainloopContext aMainloop)
pure virtual

This method updates the mainloop context.

Parameters
[in,out]aMainloopA reference to the mainloop to be updated.

Implemented in otbr::ubus::UBusAgent, otbr::Mdns::AvahiPoller, otbr::TaskRunner, otbr::Ncp::ControllerOpenThread, otbr::rest::Connection, otbr::Mdns::PublisherMDnsSd, and otbr::rest::RestWebServer.


The documentation for this class was generated from the following files: