libs/iwinfo: implement *_get_txpwrlist() to obtain valid tx power levels
[project/luci.git] / libs / iwinfo / src / iwinfo_lualib.h
index ca1a442..909080b 100644 (file)
                        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