13#ifndef ZEPHYR_INCLUDE_MPIPE_MPIPE_MESSAGE_H_
14#define ZEPHYR_INCLUDE_MPIPE_MPIPE_MESSAGE_H_
73#define MPIPE_MESSAGE_ANY UINT32_MAX
mpipe_message_type
Message types, usable as bitmask filters.
Definition mpipe_message.h:60
int mpipe_message_post(const struct mpipe_message *message)
Post a message to the bus of the bin holding its origin.
mpipe_error_domain
The domain a failure happened in: what the element was doing.
Definition mpipe_message.h:91
@ MPIPE_MESSAGE_ERROR
Error.
Definition mpipe_message.h:64
@ MPIPE_MESSAGE_EOS
End of stream.
Definition mpipe_message.h:63
@ MPIPE_MESSAGE_UNKNOWN
Uninitialized: what a zeroed message carries; cannot be posted.
Definition mpipe_message.h:62
@ MPIPE_ERROR_FLOW
Buffer flow: processing, an acquire or a push failed while streaming; stop or restart.
Definition mpipe_message.h:103
@ MPIPE_ERROR_CAPS
Capability negotiation: the formats would not intersect; try another config.
Definition mpipe_message.h:99
@ MPIPE_ERROR_DOMAIN_END
One past the last domain; not itself a domain.
Definition mpipe_message.h:107
@ MPIPE_ERROR_FAILED
Nothing more specific fits.
Definition mpipe_message.h:97
@ MPIPE_ERROR_BUFFER_POOL
Buffer negotiation: a pool would not configure or start; reduce counts or sizes.
Definition mpipe_message.h:101
@ MPIPE_ERROR_RESOURCE
A device, file or driver refused; check the media or the hardware.
Definition mpipe_message.h:105
#define BIT(n)
Unsigned integer with bit position n set (signed in assembly language).
Definition util_macro.h:44
Element: the unit a pipeline is built from.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__INT32_TYPE__ int32_t
Definition stdint.h:74
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Element base class.
Definition mpipe_element.h:167
Message structure carrying type and origin of the message.
Definition mpipe_message.h:116
uint8_t domain
What the element was doing, see mpipe_error_domain.
Definition mpipe_message.h:120
uint32_t type
Message type (see mpipe_message_type).
Definition mpipe_message.h:118
int32_t code
errno-style code, negative, 0 if unset
Definition mpipe_message.h:119
struct mpipe_element * origin
Element that posted this message.
Definition mpipe_message.h:117