util  wglist.h at [a52546afcc]

File wgsync/src/wglist.h artifact 3fe54f7b74 part of check-in a52546afcc


#pragma once
#include "def.h"
#include <wireguard.h>

#define _ll_rec peer
#define _ll_box wg_device
#define _ll_obj wg_peer
#define _ll_iter wg_for_each_peer
#define _ll_ns wgd
#include "list.h"

#define _ll_rec allowedip
#define _ll_box wg_peer
#define _ll_obj wg_allowedip
#define _ll_iter wg_for_each_allowedip
#define _ll_ns wgd_peer
#include "list.h"