upipe/upipe_helper_upump.h header reference
Upipe helper functions for pumps More
Header inclusion
Members
Macro
Description
Members detail
This macro is declared in upipe/upipe_helper_upump.h source file, line 78.
This macro declares three functions dealing with a pump which we suppose serves as a worker task for the pipe.
You must add one pointer to your private upipe structure, for instance:
You must also declare UPIPE_HELPER_UPIPE prior to using this macro. Also we suppose that you have a upump manager available in your structure.
Supposing the name of your structure is upipe_foo, and the name of the pointer is upump, it declares:
Typically called in your upipe_foo_alloc() function.
Called whenever you allocate or free the worker.
Typically called from your upipe_foo_free() function.
Parameters list:
- STRUCTURE: name of your private upipe structure
- UPUMP: name of the struct upump * field of your private upipe structure
- UPUMP_MGR: name of the struct upump_mgr * field of your private upipe structure
This macro is declared in upipe/upipe_helper_upump.h source file, line 31.