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
bool status;true if the pump is blocking
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 69.

This function allocates and initializes a blocker.

Parameter 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 75.

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

Parameter 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 119.

This function cleans up the common part of a pump.

Parameter 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 87.

This function dispatches a pump.

Parameter list:

  • upump: description structure of the pump

void upump_common_get_status(struct upump *upump, int *status_p)  

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

This function gets the blocking status of a pump.

Parameter list:

  • upump: description structure of the pump
  • status_p: reference to blocking status

void upump_common_init(struct upump *upump)  

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

This function initializes the common part of a pump.

Parameter list:

  • upump: description structure of the pump

struct upump_common_mgr  

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

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 *, bool ) ;function to really start a watcher
void (*upump_real_stop)(struct upump *, bool ) ;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 166.

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

Parameter 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)(struct ::upump *,bool) , void (*upump_real_stop)(struct ::upump *,bool) , void *(*upump_alloc_inner)(struct ::upool *) , void (*upump_free_inner)(struct ::upool *,void *) )  

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

This function initializes the common parts of a upump_common_mgr structure.

Parameter 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 158.

This function returns the extra buffer space needed for pools.

Parameter 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 149.

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

Parameter list:

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

void upump_common_set_status(struct upump *upump, int status)  

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

This function sets the blocking status of a pump.

Parameter list:

  • upump: description structure of the pump
  • status: blocking status

void upump_common_start(struct upump *upump)  

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

This function starts a pump if allowed.

Parameter 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 99.

This function stops a pump if needed.

Parameter 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 62.

This function returns a pointer to upump.

Parameter 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 141.

This function returns a pointer to upump_blocker_pool.

Parameter 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 139.

This function returns a pointer to upump_mgr.

Parameter 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 140.

This function returns a pointer to upump_pool.

Parameter 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 141.

This function returns a pointer to upump_blocker_pool.

Parameter 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 139.

This function returns a pointer to upump_mgr.

Parameter 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 140.

This function returns a pointer to upump_pool.

Parameter 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 62.

This function returns a pointer to upump.

Parameter list:

  • upump_common: pointer to struct upump_common

The return value is pointer to struct upump

Valid XHTML 1.0 StrictGenerated by cmassiot on Fri Feb 2 23:57:19 2018 using MkDoc