upipe/upump_blocker.h header reference
common declarations for event loop handlers More
Header inclusion [link]
Members [link]
Type [link]
- typedef void (*upump_blocker_cb)(struct upump_blocker *)
Functions [link]
- struct upump_blocker * upump_blocker_alloc(struct upump *upump, upump_blocker_cb cb, void *opaque)
- struct upump_blocker * upump_blocker_find(struct uchain *ulist, struct upump *upump)
- void upump_blocker_free(struct upump_blocker *blocker)
- void upump_blocker_set_cb(struct upump_blocker *upump_blocker, upump_blocker_cb cb, void *opaque)
Macro [link]
Description [link]
common declarations for event loop handlers
Members detail [link]
#define _UPIPE_UPUMP_BLOCKER_H_ [link]
This macro is declared in upipe/upump_blocker.h source file, line 31.
[link]
This struct is declared in upipe/upump_common.h source file, line 46.
struct upump_blocker * upump_blocker_alloc(struct upump *upump, upump_blocker_cb cb, void *opaque) [link]
This function is declared in upipe/upump_blocker.h source file, line 70.
This function allocates and initializes a blocker.
Parameter list:
- upump: blocked pump
- cb: function to call when the pump is released
- opaque: pointer to the module's internal structure or NULL
The return value is pointer to allocated blocker, or NULL in case of failure
typedef void (*upump_blocker_cb)(struct upump_blocker *) [link]
This typedef is declared in upipe/upump_blocker.h source file, line 42.
function called when a pump is triggered
struct upump_blocker * upump_blocker_find(struct uchain *ulist, struct upump *upump) [link]
This function is declared in upipe/upump_blocker.h source file, line 118.
This function finds in a ulist if a blocker already exists for the given pump.
Parameter list:
- ulist: list of blockers
- upump: pump to block
The return value is a pointer to the blocker, or NULL if not found
void upump_blocker_free(struct upump_blocker *blocker) [link]
This function is declared in upipe/upump_blocker.h source file, line 89.
This function releases a blocker, and if allowed restarts the pump.
Parameter list:
- blocker: description structure of the blocker
#define upump_blocker_get_opaque(blocker, type) [link]
This macro is declared in upipe/upump_blocker.h source file, line 94.
This macro gets the opaque structure with a cast.
void upump_blocker_set_cb(struct upump_blocker *upump_blocker, upump_blocker_cb cb, void *opaque) [link]
This function is declared in upipe/upump_blocker.h source file, line 105.
This function sets the callback parameters of an existing blocker.
Parameter list:
- upump_blocker: description structure of the blocker
- cb: function to call when the pump is released
- opaque: pointer to the module's internal structure
struct upump_blocker * upump_blocker_from_uchain(struct uchain *sub) [link]
This function is for internal use only.
This function is declared in UBASE_FROM_TO function like macro expansion, line 19 in upipe/upump_blocker.h source file, line 58.
This function returns a pointer to uchain.
Parameter list:
- sub: pointer to struct uchain
The return value is pointer to struct upump_blocker
struct uchain * upump_blocker_to_uchain(struct upump_blocker *s) [link]
This function is for internal use only.
This function is declared in UBASE_FROM_TO function like macro expansion, line 9 in upipe/upump_blocker.h source file, line 58.
This function returns a pointer to uchain.
Parameter list:
- upump_blocker: pointer to struct upump_blocker
The return value is pointer to struct uchain