You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/include/llarp/exit_info.h

38 lines
767 B
C

7 years ago
#ifndef LLARP_XI_H
#define LLARP_XI_H
7 years ago
#include <llarp/buffer.h>
7 years ago
#include <llarp/net.h>
7 years ago
#ifdef __cplusplus
extern "C" {
#endif
7 years ago
struct llarp_xi {
7 years ago
struct in6_addr address;
struct in6_addr netmask;
7 years ago
};
bool llarp_xi_bdecode(struct llarp_xi *xi, llarp_buffer_t *buf);
bool llarp_xi_bencode(struct llarp_xi *xi, llarp_buffer_t *buf);
struct llarp_xi_list;
7 years ago
struct llarp_xi_list * llarp_xi_list_new();
void llarp_xi_list_free(struct llarp_xi_list * l);
struct llarp_xi_list_iter
{
void * user;
struct llarp_xi_list * list;
bool (*visit)(struct llarp_xi_list_iter *, struct llarp_xi *);
};
void llarp_xi_list_iterate(struct llarp_xi_list *l,
struct llarp_xi_list_iter *iter);
7 years ago
#ifdef __cplusplus
}
#endif
#endif