summaryrefslogtreecommitdiffhomepage
path: root/libs/iwinfo/src/iwinfo_lualib.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-08-19 04:03:00 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-08-19 04:03:00 +0000
commit91ceab5b19a7b8c8b748a27e7bd8cb2cd4a44132 (patch)
treea235584c68a24630f0aca3fe80b014b7f8aef3f5 /libs/iwinfo/src/iwinfo_lualib.h
parent8e31e6bed28d3c154f7fd101d5907359a4d3eabd (diff)
libs/iwinfo: implement *_get_txpwrlist() to obtain valid tx power levels
Diffstat (limited to 'libs/iwinfo/src/iwinfo_lualib.h')
-rw-r--r--libs/iwinfo/src/iwinfo_lualib.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/iwinfo/src/iwinfo_lualib.h b/libs/iwinfo/src/iwinfo_lualib.h
index ca1a4421c9..909080bb45 100644
--- a/libs/iwinfo/src/iwinfo_lualib.h
+++ b/libs/iwinfo/src/iwinfo_lualib.h
@@ -66,5 +66,12 @@
type##_get_assoclist); \
}
+#define LUA_WRAP_TXPWRLIST(type) \
+ static int iwinfo_L_##type##_txpwrlist(lua_State *L)\
+ { \
+ return iwinfo_L_txpwrlist(L, \
+ type##_get_txpwrlist); \
+ }
+
#endif