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

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

#include <glib.h>

struct _flxNetlink;
typedef struct _flxNetlink flxNetlink;

flxNetlink *flx_netlink_new(GMainContext *c, guint32 groups, void (*cb) (flxNetlink *n, struct nlmsghdr *m, gpointer userdata), gpointer userdata);
void flx_netlink_free(flxNetlink *n);

int flx_netlink_send(flxNetlink *n, struct nlmsghdr *m, guint *ret_seq);

#endif