|
Zephyr Project API 4.4.99
A Scalable Open Source RTOS
|
Application sink element. More...
#include <stdint.h>#include <zephyr/kernel.h>#include <zephyr/net_buf.h>#include <zephyr/mpipe/mpipe_element.h>#include <zephyr/mpipe/mpipe_sink.h>#include <zephyr/mpipe/mpipe_structure.h>Go to the source code of this file.
Data Structures | |
| struct | mpipe_app_sink_cb |
| Callback registration for MPIPE_PROP_BASE_APP_SINK_CB. More... | |
| struct | mpipe_app_sink |
| Application sink element structure. More... | |
Typedefs | |
| typedef void(* | mpipe_app_sink_cb_t) (const struct net_buf *buf, void *user_data) |
| Buffer callback. | |
Enumerations | |
| enum | { MPIPE_PROP_BASE_APP_SINK_CAPS = MPIPE_PROP_SINK_LAST , MPIPE_PROP_BASE_APP_SINK_CB } |
| Application sink property identifiers. More... | |
Functions | |
| int | mpipe_app_sink_init (struct mpipe_app_sink *app_sink, uint8_t id) |
| Initialize an application sink element. | |
| int | mpipe_app_sink_pull (struct mpipe_app_sink *app_sink, struct net_buf **buf, k_timeout_t timeout) |
| Pull the next buffer. | |
Application sink element.
The app_sink element hands the buffers reaching the end of a pipeline to the application, either through a callback running in the pipeline's streaming context or through a pull API the application calls at its own pace.