compo_pool.h

来自「COMPO source code for reference」· C头文件 代码 · 共 69 行

H
69
字号
/*******************************************************************************File name   : compo_pool.hDescription : pool manager interfaceCOPYRIGHT (C) STMicroelectronics 2000.Date               Modification                               Name----               ------------                               ----05 April 2004        Creation                                   TM*******************************************************************************//* Define to prevent recursive inclusion */#ifndef __COMPO_POOL_H#define __COMPO_POOL_H/* Includes ----------------------------------------------------------------- */#include "stddefs.h"/* C++ support */#ifdef __cplusplusextern "C" {#endif/* Exported Types ----------------------------------------------------------- */typedef struct{  U32                   NbFreeElem;           /* Number of Free elements in Data Pool */  U32                   NbElem;               /* Number of elements */  U32                   ElemSize;             /* Size of an element in Byte */  void*                 ElemArray_p;          /* Array of elements */  void**                HandleArray_p;        /* Array of handle (i.e array of pointers to elements)*/} stcompo_DataPoolDesc_t;/* Exported Functions ------------------------------------------------------- */void stcompo_InitDataPool(  stcompo_DataPoolDesc_t*    DataPool_p,  U32                       NbElem,  U32                       ElemSize,  void*                     ElemArray_p,  void**                    HandleArray_p);ST_ErrorCode_t stcompo_GetElement(  stcompo_DataPoolDesc_t* DataPool_p,  void**                 Handle_p);ST_ErrorCode_t stcompo_ReleaseElement(  stcompo_DataPoolDesc_t*  DataPool_p,  void*                   Handle_p);/* C++ support */#ifdef __cplusplus}#endif#endif /* #ifndef __COMPO_POOL_H *//* End of blt_pool.h */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?