summaryrefslogtreecommitdiffstats
path: root/src/interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface.h')
-rw-r--r--src/interface.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/interface.h b/src/interface.h
new file mode 100644
index 0000000..b6f3b9d
--- /dev/null
+++ b/src/interface.h
@@ -0,0 +1,17 @@
+#ifndef foointerfacehfoo
+#define foointerfacehfoo
+
+#include <sys/socket.h>
+#include "wireless.h"
+#include "util.h"
+
+struct interface {
+ char name[IFNAMSIZ+1];
+ int fd;
+};
+
+struct interface *interface_open(char *name);
+void interface_close(struct interface *i);
+int interface_is_assoc(struct interface *i, struct hw_addr *a);
+
+#endif