upipe/upump_common.h header reference

common declarations for event loop handlers More

Header inclusion  

Members  

Types  

Functions  

Description  

common declarations for event loop handlers

Members detail  

#define _UPIPE_UPUMP_COMMON_H_  

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

struct upump_common  

This struct is declared in upipe/upump_common.h source file, line 50.

This struct stores upump parameters invisible from modules but usually common.

FieldDescription
bool started;true if upump_start() was called on the pump
struct uchain blockers;list of blockers registered on this pump
struct upump upump;public upump structure

struct upump_blocker * upump_common_blocker_alloc(struct upump *upump)  

This function is declared in upipe/upump_common.h source file, line 67.

This function allocates and initializes a blocker.

Parameters list:

  • upump: description structure of the pump

The return value is pointer to blocker

void upump_common_blocker_free(struct upump_blocker *blocker)  

This function is declared in upipe/upump_common.h source file, line 73.

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

Parameters list:

  • blocker: description structure of the blocker

void upump_common_clean(struct upump *upump)  

This function is declared in upipe/upump_common.h source file, line 103.

This function cleans up the common part of a pump.

Parameters list:

  • upump: description structure of the pump

void upump_common_dispatch(struct upump *upump)  

This function is declared in upipe/upump_common.h source file, line 85.

This function dispatches a pump.

Parameters list:

  • upump: description structure of the pump

void upump_common_init(struct upump *upump)  

This function is declared in upipe/upump_common.h source file, line 79.

This function initializes the common part of a pump.

Parameters list:

  • upump: description structure of the pump

struct upump_common_mgr  

This struct is declared in upipe/upump_common.h source file, line 108.

This struct stores management parameters invisible from modules but usually common.

FieldDescription
struct upool upump_pool;upump pool
struct upool upump_blocker_pool;upump_blocker_pool
void (*upump_real_start)(struct upump *) ;function to really start a watcher
void (*upump_real_stop)(struct upump *) ;function to really stop a watcher
struct upump_mgr mgr;structure exported to modules

void upump_common_mgr_clean(struct upump_mgr *mgr)  

This function is declared in upipe/upump_common.h source file, line 150.

This function cleans up the common parts of a upump_common_mgr structure. Note that all pumps have to be stopped before.

Parameters list:

  • mgr: pointer to a upump_mgr structure wrapped into a upump_common_mgr structure

void upump_common_mgr_init(struct upump_mgr *mgr, uint16_t upump_pool_depth, uint16_t upump_blocker_pool_depth, void *pool_extra, void (*upump_real_start)(::upump *) , void (*upump_real_stop)(::upump *) , void *(*upump_alloc_inner)(::upool *) , void (*upump_free_inner)(::upool *,void *) )  

This function is declared in upipe/upump_common.h source file, line 171.

This function initializes the common parts of a upump_common_mgr structure.

Parameters list:

  • mgr: pointer to a upump_mgr structure wrapped into a upump_common_mgr structure
  • upump_pool_depth: maximum number of upump structures in the pool
  • upump_blocker_pool_depth: maximum number of upump_blocker structures in the pool
  • pool_extra: extra buffer space (see upump_common_mgr_sizeof)
  • upump_real_start: function of the real manager that starts a pump
  • upump_real_stop: function of the real manager that stops a pump
  • upump_alloc_inner: function to call to allocate a upump buffer
  • upump_free_inner: function to call to release a upump buffer

size_t upump_common_mgr_sizeof(uint16_t upump_pool_depth, uint16_t upump_blocker_pool_depth)  

This function is declared in upipe/upump_common.h source file, line 142.

This function returns the extra buffer space needed for pools.

Parameters list:

  • upump_pool_depth: maximum number of upump structures in the pool
  • upump_blocker_pool_depth: maximum number of upump_blocker structures in the pool

void upump_common_mgr_vacuum(struct upump_mgr *mgr)  

This function is declared in upipe/upump_common.h source file, line 133.

This function instructs an existing manager to release all structures currently kept in pools. It is intended as a debug tool only.

Parameters list:

  • mgr: pointer to a upump_mgr structure wrapped into a upump_common_mgr structure

void upump_common_start(struct upump *upump)  

This function is declared in upipe/upump_common.h source file, line 91.

This function starts a pump if allowed.

Parameters list:

  • upump: description structure of the pump

void upump_common_stop(struct upump *upump)  

This function is declared in upipe/upump_common.h source file, line 97.

This function stops a pump if needed.

Parameters list:

  • upump: description structure of the pump

struct upump_common * upump_common_from_upump(struct upump *sub)  

This function is for internal use only.

This function is declared in UBASE_FROM_TO function like macro expansion, line 19 in upipe/upump_common.h source file, line 60.

This function returns a pointer to upump.

Parameters list:

  • sub: pointer to struct upump

The return value is pointer to struct upump_common

struct upump_common_mgr * upump_common_mgr_from_upump_blocker_pool(struct upool *sub)  

This function is for internal use only.

This function is declared in UBASE_FROM_TO function like macro expansion, line 19 in upipe/upump_common.h source file, line 125.

This function returns a pointer to upump_blocker_pool.

Parameters list:

  • sub: pointer to struct upool

The return value is pointer to struct upump_common_mgr

struct upump_common_mgr * upump_common_mgr_from_upump_mgr(struct upump_mgr *sub)  

This function is for internal use only.

This function is declared in UBASE_FROM_TO function like macro expansion, line 19 in upipe/upump_common.h source file, line 123.

This function returns a pointer to upump_mgr.

Parameters list:

  • sub: pointer to struct upump_mgr

The return value is pointer to struct upump_common_mgr

struct upump_common_mgr * upump_common_mgr_from_upump_pool(struct upool *sub)  

This function is for internal use only.

This function is declared in UBASE_FROM_TO function like macro expansion, line 19 in upipe/upump_common.h source file, line 124.

This function returns a pointer to upump_pool.

Parameters list:

  • sub: pointer to struct upool

The return value is pointer to struct upump_common_mgr

struct upool * upump_common_mgr_to_upump_blocker_pool(struct upump_common_mgr *s)  

This function is for internal use only.

This function is declared in UBASE_FROM_TO function like macro expansion, line 9 in upipe/upump_common.h source file, line 125.

This function returns a pointer to upump_blocker_pool.

Parameters list:

  • upump_common_mgr: pointer to struct upump_common_mgr

The return value is pointer to struct upool

struct upump_mgr * upump_common_mgr_to_upump_mgr(struct upump_common_mgr *s)  

This function is for internal use only.

This function is declared in UBASE_FROM_TO function like macro expansion, line 9 in upipe/upump_common.h source file, line 123.

This function returns a pointer to upump_mgr.

Parameters list:

  • upump_common_mgr: pointer to struct upump_common_mgr

The return value is pointer to struct upump_mgr

struct upool * upump_common_mgr_to_upump_pool(struct upump_common_mgr *s)  

This function is for internal use only.

This function is declared in UBASE_FROM_TO function like macro expansion, line 9 in upipe/upump_common.h source file, line 124.

This function returns a pointer to upump_pool.

Parameters list:

  • upump_common_mgr: pointer to struct upump_common_mgr

The return value is pointer to struct upool

struct upump * upump_common_to_upump(struct upump_common *s)  

This function is for internal use only.

This function is declared in UBASE_FROM_TO function like macro expansion, line 9 in upipe/upump_common.h source file, line 60.

This function returns a pointer to upump.

Parameters list:

  • upump_common: pointer to struct upump_common

The return value is pointer to struct upump

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