summaryrefslogtreecommitdiffstats
path: root/netlink.h
diff options
context:
space:
mode:
Diffstat (limited to 'netlink.h')
-rw-r--r--netlink.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/netlink.h b/netlink.h
new file mode 100644
index 0000000..9efbce4
--- /dev/null
+++ b/netlink.h
@@ -0,0 +1,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