summaryrefslogtreecommitdiffstats
path: root/src/nlapi.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2003-08-09 16:36:18 +0000
committerLennart Poettering <lennart@poettering.net>2003-08-09 16:36:18 +0000
commit9a5162c33017bab6677c528189cff5a501f3822a (patch)
tree6da7de6655a0d667bf2693a92e9eacf20412c2c4 /src/nlapi.h
parent3f995b59303d7fb3b95126714b94a0354b2cdb91 (diff)
netlink monitoring aded
wireless querying improved git-svn-id: file:///home/lennart/svn/public/ifplugd/trunk@30 2bf48fe7-cfc1-0310-909f-d9042e1e0fef
Diffstat (limited to 'src/nlapi.h')
-rw-r--r--src/nlapi.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/nlapi.h b/src/nlapi.h
new file mode 100644
index 0000000..b810e20
--- /dev/null
+++ b/src/nlapi.h
@@ -0,0 +1,39 @@
+#ifndef foonlapihfoo
+#define foonlapihfoo
+
+/* $Id: ifplugd.c 1.12 Sat, 01 Feb 2003 03:00:07 +0100 lennart $ */
+
+/*
+ * This file is part of ifplugd.
+ *
+ * ifplugd is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * ifplugd is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with ifplugd; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ */
+
+#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