upipe/upump_blocker.h header reference

common declarations for event loop handlers More

Header inclusion  

Members  

Types  

Functions  

Macro  

Description  

common declarations for event loop handlers

Members detail  

#define _UPIPE_UPUMP_BLOCKER_H_  

This macro is declared in upipe/upump_blocker.h source file, line 31.

struct upump_blocker  

This struct is declared in upipe/upump_blocker.h source file, line 46.

This struct stores the parameters of a blocker.

FieldDescription
struct uchain uchain;structure for double-linked lists
struct upump *upump;blocked pump
upump_blocker_cb cb;function to call back when the pump is released
void *opaque;opaque pointer for the callback

struct upump_blocker * upump_blocker_alloc(struct upump *upump, upump_blocker_cb cb, void *opaque)  

This function is declared in upipe/upump_blocker.h source file, line 90.

This function allocates and initializes a blocker.

Parameters list:

  • upump: blocked pump
  • cb: function to call when the pump is released
  • opaque: pointer to the module's internal structure

The return value is pointer to allocated blocker, or NULL in case of failure

typedef void (*upump_blocker_cb)(struct upump_blocker *)   

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)  

This function is declared in upipe/upump_blocker.h source file, line 137.

This function finds in a ulist if a blocker already exists for the given pump.

Parameters 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)  

This function is declared in upipe/upump_blocker.h source file, line 108.

This function releases a blocker, and if allowed restarts the pump.

Parameters list:

  • blocker: description structure of the blocker

struct upump_blocker * upump_blocker_from_uchain(struct uchain *uchain)  

This function is declared in upipe/upump_blocker.h source file, line 65.

This function returns the high-level upump_blocker structure.

Parameters list:

  • uchain: pointer to the uchain structure wrapped into the upump_blocker

The return value is pointer to the upump_blocker structure

#define upump_blocker_get_opaque(blocker, type)  

This macro is declared in upipe/upump_blocker.h source file, line 113.

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)  

This function is declared in upipe/upump_blocker.h source file, line 124.

This function sets the callback parameters of an existing blocker.

Parameters 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 uchain * upump_blocker_to_uchain(struct upump_blocker *upump_blocker)  

This function is declared in upipe/upump_blocker.h source file, line 76.

This function returns the uchain structure used for FIFO, LIFO and lists.

Parameters list:

  • upump_blocker: upump_blocker structure

The return value is pointer to the uchain structure

Valid XHTML 1.0 StrictGenerated by cmassiot on Thu Nov 6 12:15:40 2014 using MkDoc