|
PipeWire 1.4.10
|
Queued processing of work items. More...
Files | |
| file | work-queue.h |
| pipewire/work-queue.h | |
Data Structures | |
| struct | pw_work_queue |
Typedefs | |
| typedef void(* | pw_work_func_t) (void *obj, void *data, int res, uint32_t id) |
Functions | |
| struct pw_work_queue * | pw_work_queue_new (struct pw_loop *loop) |
| Create a new Work Queue. | |
| void | pw_work_queue_destroy (struct pw_work_queue *queue) |
| Destroy a work queue. | |
| uint32_t | pw_work_queue_add (struct pw_work_queue *queue, void *obj, int res, pw_work_func_t func, void *data) |
| Add an item to the work queue. | |
| int | pw_work_queue_cancel (struct pw_work_queue *queue, void *obj, uint32_t id) |
| Cancel a work item. | |
| int | pw_work_queue_complete (struct pw_work_queue *queue, void *obj, uint32_t seq, int res) |
| Complete a work item. | |
Queued processing of work items.
| struct pw_work_queue * pw_work_queue_new | ( | struct pw_loop * | loop | ) |
| void pw_work_queue_destroy | ( | struct pw_work_queue * | queue | ) |
Destroy a work queue.
| queue | the work queue to destroy |
| uint32_t pw_work_queue_add | ( | struct pw_work_queue * | queue, |
| void * | obj, | ||
| int | res, | ||
| pw_work_func_t | func, | ||
| void * | data ) |
Add an item to the work queue.
| queue | the work queue |
| obj | the object owning the work item |
| res | a result code |
| func | a work function |
| data | passed to func |
| int pw_work_queue_cancel | ( | struct pw_work_queue * | queue, |
| void * | obj, | ||
| uint32_t | id ) |
Cancel a work item.
| queue | the work queue |
| obj | the owner object |
| id | the work id to cancel |
| int pw_work_queue_complete | ( | struct pw_work_queue * | queue, |
| void * | obj, | ||
| uint32_t | seq, | ||
| int | res ) |