31 lines
588 B
C
31 lines
588 B
C
#ifndef _CONNTABLE_H
|
|
#define _CONNTABLE_H
|
|
|
|
#ifdef __cpluscplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
|
|
struct tuple4
|
|
{
|
|
/* data */
|
|
};
|
|
|
|
struct conntable;
|
|
|
|
struct conntable *conntable_create();
|
|
void conntable_destory(struct conntable *table);
|
|
|
|
void conntable_add(struct conntable *table, uint64_t streamid, void *val);
|
|
void conntable_del(struct conntable *table, uint64_t streamid);
|
|
void *conntable_search_by_streamid(struct conntable *table, uint64_t streamid);
|
|
void *conntable_search_by_tuple4(struct conntable *table, struct tuple4 *tuplekey);
|
|
|
|
#ifdef __cpluscplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|