2015-04-05 02:09:23 +02:00
|
|
|
#ifndef __ACIPLIST_H
|
|
|
|
#define __ACIPLIST_H
|
|
|
|
|
2016-03-01 19:10:08 +01:00
|
|
|
#include "mavl.h"
|
2015-04-05 02:09:23 +02:00
|
|
|
|
|
|
|
struct cw_acip{
|
|
|
|
struct sockaddr_storage ip;
|
2015-04-10 17:14:55 +02:00
|
|
|
uint32_t wtp_count;
|
2015-04-05 02:09:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct cw_acip cw_acip_t;
|
|
|
|
|
2016-03-01 19:10:08 +01:00
|
|
|
typedef struct mavl * cw_aciplist_t;
|
2015-04-05 02:09:23 +02:00
|
|
|
|
|
|
|
extern cw_aciplist_t cw_aciplist_create();
|
|
|
|
|
2016-03-01 19:10:08 +01:00
|
|
|
#define cw_aciplist_destroy(l) mavl_destroy(l)
|
|
|
|
#define cw_aciplist_add(l,elem) mavl_add(l,elem)
|
|
|
|
#define cw_aciplist_del(l,elem) mavl_del(l,elem)
|
|
|
|
#define cw_aciplist_foreach(l,callback,cbpriv) mavl_foreach_asc(l,callback,cbpriv)
|
|
|
|
#define cw_aciplist_replace(l,r) mavl_replace(l,r)
|
2015-04-05 02:09:23 +02:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|