Zigbee Protocol Controller 1.6.0
zigpc_discovery::process Namespace Reference

Typedefs

using event_t = std::unique_ptr< events::DiscoverEvent >
 

Functions

size_t queue_size (void)
 Retrieve the current number of events in the process queue. More...
 
const event_tpeek_event (void)
 Add an event to be processed in the zigpc_discovery process context. More...
 
sl_status_t enqueue_event (event_t &&event)
 Add an event to be processed in the zigpc_discovery process context. More...
 
void clear_queue (void)
 Remove all events from process queue. More...
 

Typedef Documentation

◆ event_t

using zigpc_discovery::process::event_t = typedef std::unique_ptr<events::DiscoverEvent>

Function Documentation

◆ clear_queue()

void zigpc_discovery::process::clear_queue ( void  )

Remove all events from process queue.

◆ enqueue_event()

sl_status_t zigpc_discovery::process::enqueue_event ( event_t &&  event)

Add an event to be processed in the zigpc_discovery process context.

Parameters
eventReference to discovery event.
Returns
sl_status_t SL_STATUS_OK on success, error otherwise.

◆ peek_event()

const event_t * zigpc_discovery::process::peek_event ( void  )

Add an event to be processed in the zigpc_discovery process context.

Returns
event_t Pointer to event, or nullptr if the queue is empty.

◆ queue_size()

size_t zigpc_discovery::process::queue_size ( void  )

Retrieve the current number of events in the process queue.

Returns
size_t process queue size.