upipe/upipe_helper_ubuf_mgr.h header reference
Upipe helper functions for ubuf manager More
Header inclusion
Members
Macro
Description
Members detail
This macro is declared in upipe/upipe_helper_ubuf_mgr.h source file, line 88.
This macro declares four functions dealing with the ubuf manager used on the output of a pipe.
You must add two members to your private upipe structure, for instance:
where the flow_def is probably shared with UPIPE_HELPER_OUTPUT.
You must also declare UPIPE_HELPER_UPIPE prior to using this macro.
Supposing the name of your structure is upipe_foo, it declares:
Typically called in your upipe_foo_alloc() function.
Typically called from your upipe_foo_control() handler, such as:
case UPIPE_ATTACH_UBUF_MGR: {
return upipe_foo_attach_ubuf_mgr(upipe);
}Checks if the ubuf manager is available, and asks for it otherwise.
Typically called from your upipe_foo_free() function.
Parameters list:
- STRUCTURE: name of your private upipe structure
- UBUF_MGR: name of the struct ubuf_mgr * field of your private upipe structure
- FLOW_DEF: name of the struct uref * field of your private upipe structure
This macro is declared in upipe/upipe_helper_ubuf_mgr.h source file, line 31.