2014-07-11 22:12:11 +02:00
|
|
|
#ifndef __WTPLIST_H
|
2014-08-26 07:42:56 +02:00
|
|
|
#define __WTPLIST_H
|
2014-07-11 22:12:11 +02:00
|
|
|
|
|
|
|
#include <sys/socket.h>
|
|
|
|
|
|
|
|
#include "wtpman.h"
|
|
|
|
|
|
|
|
extern int wtplist_init();
|
|
|
|
extern void wtplist_destroy();
|
|
|
|
|
|
|
|
extern struct wtpman * wtplist_get(const struct sockaddr * addr);
|
|
|
|
extern struct wtpman * wtplist_add(struct wtpman * wtpman);
|
|
|
|
extern void wtplist_remove(struct wtpman * wtpman);
|
|
|
|
extern void wtplist_lock();
|
|
|
|
extern void wtplist_unlock();
|
2016-04-10 16:04:58 +02:00
|
|
|
extern struct wtpman * wtplist_get_by_session_id(uint8_t *session_id);
|
2014-07-11 22:12:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|