Section Buffer Manager (for use by Section Filter Manager and client) Provides mechanism to allocate and release buffers for section data without cost of using standard malloc and free.
More...
#include "techtype.h"
#include "stdfuncs.h"
Go to the source code of this file.
|
typedef struct s_SbmInstance * | H_SbmInstance |
|
Section Buffer Manager (for use by Section Filter Manager and client) Provides mechanism to allocate and release buffers for section data without cost of using standard malloc and free.
- Date
- 30th October 2013
- Author
- Adam Sturtridge
Definition in file sbm.h.
U8BIT* SBM_AllocateBuffer |
( |
H_SbmInstance |
sbm, |
|
|
U8BIT |
size1 |
|
) |
| |
Allocate buffer for a DVB section.
- Parameters
-
H_SbmInstance | sbm SBM instance handle. |
U8BIT | size1 First 'size' byte in DVB section data That is value to be assigned to buffer[1]. Or section size (less 3) in 256 byte units. |
- Returns
- U8BIT* pointer to section buffer, NULL is failure.
- Parameters
-
H_SbmInstance | sbm SBM instance handle. |
U8BIT | size1 First 'size' byte in DVB section data That is 'section_data_ptr[1]' or section size (less 3) in 256 byte units. |
- Returns
- U8BIT* pointer to section buffer, NULL is failure.
Definition at line 369 of file sbm.c.
H_SbmInstance SBM_CreateInstance |
( |
S_SbmSetup * |
pSetup | ) |
|
Create Section Buffer Manager instance, using setup structure.
- Parameters
-
- Returns
- SBM instance. NULL is failure.
Definition at line 457 of file sbm.c.
void SBM_DestroyInstance |
( |
H_SbmInstance |
sbm, |
|
|
void ** |
pBufMtx |
|
) |
| |
Destroy Section Filter Manager instance, and return mutexes so that they may be destroyed by client.
- Parameters
-
H_SbmInstance | sbm SBM instance handle. |
void** | pBufMtx Pointer to mtx_sem provided in setup |
- Returns
- void
Definition at line 517 of file sbm.c.
void SBM_ReleaseBuffer |
( |
H_SbmInstance |
sbm, |
|
|
U8BIT * |
buffer |
|
) |
| |
Release DVB section buffer allocated with SBM_AllocateBuffer.
- Parameters
-
H_SbmInstance | sbm SBM instance handle. |
U8BIT* | buffer Pointer to DVB section data buffer |
- Returns
- void
Definition at line 432 of file sbm.c.