示例#1
0
文件: iwinfo_lua.c 项目: caroid/qsdk
LUA_WRAP_STRING(wext,hardware_name)
LUA_WRAP_STRUCT(wext,mode)
LUA_WRAP_STRUCT(wext,assoclist)
LUA_WRAP_STRUCT(wext,txpwrlist)
LUA_WRAP_STRUCT(wext,scanlist)
LUA_WRAP_STRUCT(wext,freqlist)
LUA_WRAP_STRUCT(wext,countrylist)
LUA_WRAP_STRUCT(wext,hwmodelist)
LUA_WRAP_STRUCT(wext,encryption)
LUA_WRAP_STRUCT(wext,mbssid_support)
LUA_WRAP_STRUCT(wext,hardware_id)

#ifdef USE_WL
/* Broadcom table */
static const luaL_reg R_wl[] = {
	LUA_REG(wl,channel),
	LUA_REG(wl,frequency),
	LUA_REG(wl,frequency_offset),
	LUA_REG(wl,txpower),
	LUA_REG(wl,txpower_offset),
	LUA_REG(wl,bitrate),
	LUA_REG(wl,signal),
	LUA_REG(wl,noise),
	LUA_REG(wl,quality),
	LUA_REG(wl,quality_max),
	LUA_REG(wl,mode),
	LUA_REG(wl,ssid),
	LUA_REG(wl,bssid),
	LUA_REG(wl,country),
	LUA_REG(wl,assoclist),
	LUA_REG(wl,txpwrlist),
示例#2
0
/**
* Loads the library into a lua state
**/
void load_random_lib(lua_State *L)
{
	LUA_REG(random);
	LUA_REG(random_float);
	LUA_REG(random_arg);
}