|
Zephyr Project API 4.4.99
A Scalable Open Source RTOS
|
Queries and events exchanged between elements. More...
Files | |
| file | mpipe_dispatch.h |
| Queries and events exchanged between elements. | |
Data Structures | |
| struct | mpipe_dispatch |
| A query or an event traveling a pad link. More... | |
Enumerations | |
| enum | mpipe_dispatch_type { MPIPE_DISPATCH_UNKNOWN = 0 , MPIPE_DISPATCH_EOS , MPIPE_DISPATCH_CAPS , MPIPE_DISPATCH_BUFFER_POOL , MPIPE_DISPATCH_END = UINT8_MAX } |
| Supported dispatch types. More... | |
Queries and events exchanged between elements.
A dispatch is what an element hands its peer across a pad link when what it sends is not data. It is one of two things:
One fixed-size structure carries both, because a negotiation must allocate nothing. A dispatch is not an Messages either: a message travels up the bus to the application, a dispatch travels across a pad link between two elements.
Nothing in the structure says which of the two it is. The type says what the dispatch is about, and the function it is passed to decides whether it asks or announces:
| Type | As a query | As an event |
|---|---|---|
| CAPS | what do you accept, given this filter? | this is the format, apply it |
| BUFFER_POOL | what buffers do you need? | - |
| EOS | - | the stream is over |
| enum mpipe_dispatch_type |
#include <mpipe_dispatch.h>
Supported dispatch types.