suricata
ippair-storage.h File Reference
#include "ippair.h"
Include dependency graph for ippair-storage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  IPPairStorageId
 

Typedefs

typedef struct IPPairStorageId IPPairStorageId
 

Functions

unsigned int IPPairStorageSize (void)
 
void * IPPairGetStorageById (IPPair *h, IPPairStorageId id)
 
int IPPairSetStorageById (IPPair *h, IPPairStorageId id, void *ptr)
 
void * IPPairAllocStorageById (IPPair *h, IPPairStorageId id)
 
void IPPairFreeStorage (IPPair *h)
 
void RegisterIPPairStorageTests (void)
 
IPPairStorageId IPPairStorageRegister (const char *name, const unsigned int size, void *(*Alloc)(unsigned int), void(*Free)(void *))
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

IPPair wrapper around storage api

Definition in file ippair-storage.h.

Typedef Documentation

◆ IPPairStorageId

Function Documentation

◆ IPPairAllocStorageById()

void* IPPairAllocStorageById ( IPPair h,
IPPairStorageId  id 
)

Definition at line 45 of file ippair-storage.c.

References IPPair_::storage, STORAGE_IPPAIR, and StorageAllocByIdPrealloc().

Here is the call graph for this function:

◆ IPPairFreeStorage()

void IPPairFreeStorage ( IPPair h)

Definition at line 50 of file ippair-storage.c.

References IPPairStorageSize(), IPPair_::storage, STORAGE_IPPAIR, and StorageFreeAll().

Referenced by IPPairCleanup(), and IPPairClearMemory().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IPPairGetStorageById()

void* IPPairGetStorageById ( IPPair h,
IPPairStorageId  id 
)

Definition at line 35 of file ippair-storage.c.

References IPPair_::storage, STORAGE_IPPAIR, and StorageGetById().

Referenced by IPPairBitsTimedoutCheck(), and IPPairHasBits().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IPPairSetStorageById()

int IPPairSetStorageById ( IPPair h,
IPPairStorageId  id,
void *  ptr 
)

Definition at line 40 of file ippair-storage.c.

References IPPair_::storage, STORAGE_IPPAIR, and StorageSetById().

Here is the call graph for this function:

◆ IPPairStorageRegister()

IPPairStorageId IPPairStorageRegister ( const char *  name,
const unsigned int  size,
void *(*)(unsigned int)  Alloc,
void(*)(void *)  Free 
)

Definition at line 56 of file ippair-storage.c.

References IPPairStorageId::id, STORAGE_IPPAIR, and StorageRegister().

Here is the call graph for this function:

◆ IPPairStorageSize()

unsigned int IPPairStorageSize ( void  )

Definition at line 30 of file ippair-storage.c.

References STORAGE_IPPAIR, and StorageGetSize().

Referenced by IPPairClearMemory(), IPPairFreeStorage(), and IPPairInitConfig().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RegisterIPPairStorageTests()

void RegisterIPPairStorageTests ( void  )

Definition at line 292 of file ippair-storage.c.

References UtRegisterTest().

Referenced by IPPairRegisterUnittests().

Here is the call graph for this function:
Here is the caller graph for this function: