summaryrefslogtreecommitdiffstats
path: root/src/nlapi.h
blob: 11ee81d6926c225bf508ed8fd97a321cd4a692f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef foonlapihfoo
#define foonlapihfoo

#include <stdint.h>
#include <sys/socket.h>
#include <linux/types.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>

typedef int (*nlapi_callback_t) (struct nlmsghdr *n, void *u);

extern int nlapi_fd;

int nlapi_open(uint32_t groups);
void nlapi_close(void);
int nlapi_work(int block);
int nlapi_register(nlapi_callback_t cb, void *u);

#endif