My Project
mmal_events_private.h File Reference
#include "mmal_events.h"

Go to the source code of this file.

Functions

MMAL_STATUS_T mmal_event_error_send (MMAL_COMPONENT_T *component, MMAL_STATUS_T status)
 
MMAL_STATUS_T mmal_event_eos_send (MMAL_PORT_T *port)
 
MMAL_STATUS_T mmal_event_forward (MMAL_BUFFER_HEADER_T *event, MMAL_PORT_T *port)
 

Function Documentation

◆ mmal_event_eos_send()

MMAL_STATUS_T mmal_event_eos_send ( MMAL_PORT_T port)

Send an eos event through a specific port.

Parameters
portport to receive the error event.
Returns
MMAL_SUCCESS or an error if the event could not be sent.

◆ mmal_event_error_send()

MMAL_STATUS_T mmal_event_error_send ( MMAL_COMPONENT_T component,
MMAL_STATUS_T  status 
)

Send an error event through the component's control port. The error event data will be the MMAL_STATUS_T passed in.

Parameters
componentcomponent to receive the error event.
statusthe error status to be sent.
Returns
MMAL_SUCCESS or an error if the event could not be sent.

◆ mmal_event_forward()

MMAL_STATUS_T mmal_event_forward ( MMAL_BUFFER_HEADER_T event,
MMAL_PORT_T port 
)

Forward an event onto an output port. This will allocate a new event buffer on the output port, make a copy of the event buffer which will then be forwarded.

event to forward.

Parameters
portport to forward event to.
Returns
MMAL_SUCCESS or an error if the event could not be forwarded.