summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/iwinfo/src/iwinfo_utils.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-10-24 17:21:54 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-10-24 17:21:54 +0000
commiteecec8b0f2a2cd86827115c1479de974ece00850 (patch)
treeaeedae966fbdefb3c7ddeb8ba1aaf1afc498a93d /contrib/package/iwinfo/src/iwinfo_utils.h
parent6ef55ba3276ba85cb30d07c528266d92067725d4 (diff)
libiwinfo: move duplicated coded into iwinfo_utils.[ch]
Diffstat (limited to 'contrib/package/iwinfo/src/iwinfo_utils.h')
-rw-r--r--contrib/package/iwinfo/src/iwinfo_utils.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/contrib/package/iwinfo/src/iwinfo_utils.h b/contrib/package/iwinfo/src/iwinfo_utils.h
new file mode 100644
index 0000000000..57958b1b54
--- /dev/null
+++ b/contrib/package/iwinfo/src/iwinfo_utils.h
@@ -0,0 +1,40 @@
+/*
+ * iwinfo - Wireless Information Library - Utility Headers
+ *
+ * Copyright (C) 2010 Jo-Philipp Wich <xm@subsignal.org>
+ *
+ * The iwinfo library is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License version 2
+ * as published by the Free Software Foundation.
+ *
+ * The iwinfo library 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 the iwinfo library. If not, see http://www.gnu.org/licenses/.
+ */
+
+#ifndef __IWINFO_UTILS_H_
+#define __IWINFO_UTILS_H_
+
+#include <sys/socket.h>
+#include <net/if.h>
+
+#include "iwinfo.h"
+
+#define LOG10_MAGIC 1.25892541179
+
+int iwinfo_ioctl(int cmd, void *ifr);
+
+int iwinfo_dbm2mw(int in);
+int iwinfo_mw2dbm(int in);
+
+int iwinfo_ifup(const char *ifname);
+int iwinfo_ifdown(const char *ifname);
+int iwinfo_ifmac(const char *ifname);
+
+void iwinfo_close(void);
+
+#endif