upipe/upipe_helper_output.h header reference
Upipe helper functions for output More
Header inclusion
Members
Macro
Description
Members detail
This macro is declared in upipe/upipe_helper_output.h source file, line 122.
This macro declares seven functions dealing with the output of a pipe, and an associated uref which is the flow definition on the output.
You must add three members to your private upipe structure, for instance:
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.
Called whenever you need to send a packet to your output. It takes care of sending the flow definition if necessary.
Called whenever you change the flow definition on this output.
Typically called from your upipe_foo_control() handler, such as:
Typically called from your upipe_foo_control() handler, such as:
Typically called from your upipe_foo_control() handler, such as:
Typically called from your upipe_foo_free() function.
Parameters list:
- STRUCTURE: name of your private upipe structure
- OUTPUT: name of the struct upipe * field of your private upipe structure
- FLOW_DEF: name of the struct uref * field of your private upipe structure
- FLOW_DEF_SENT: name of the bool field of your private upipe structure
This macro is declared in upipe/upipe_helper_output.h source file, line 31.