All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sir_cmemlist.h
Go to the documentation of this file.
1 /*
2  * sir_cmemlist.h
3  *
4  * Created on: Feb 12, 2015
5  * Author: root
6  */
7 
8 #ifndef SIR_CMEMLIST_H_
9 #define SIR_CMEMLIST_H_
10 
11 #include <cvmx.h>
12 #include <cvmx-fpa.h>
13 
15 
16 typedef void* pMemList;
17 
18 #ifdef __cplusplus
19  #include "sir_memlist.h"
20 #else
21  void CMemList_Init(int iFpaPool);
22  void *CMemList_New(void);
23  void *CMemList_Delete(pMemList pMemlist);
24  sir_memlist_seg* CMemList_GetFirstMember(pMemList pMemList);
25  sir_memlist_seg* CMemList_GetNextMember(pMemList pMemList);
26  sir_memlist_seg* CMemList_GetCurrentMember(pMemList pMemList);
27  sir_memlist_seg* CMemList_GetPreviousMember(pMemList pMemList);
28  sir_memlist_seg* CMemList_GetLastMember(pMemList pMemList);
29  int CMemList_GetPayloadSize (pMemList pMemList, EPayload_Indicator ePayloadType);
30  int CMemList_TransferPayload(pMemList pMemList, char *pData, int iMaxSize, bool bRemovePayload);
31  int CMemList_RemovePayload(pMemList pMemList, int iAdjustment);
32  void CMemList_DumpMemList(pMemList pMemList);
33 #endif
34 #endif /* SIR_CMEMLIST_H_ */
EPayload_Indicator
Payload indicator.
void * pMemList
Definition: sir_cmemlist.h:16