Displaying 1 result from an estimated 1 matches for "host_bus".
2014 Nov 28
2
[PATCH] Add ldisk.c32 Lua module
...+ SET_TABLE_STRING_INT(L, "sectors", info.edd_params.sectors);
+ // size in mb as lua number type is uint32_t
+ SET_TABLE_STRING_INT(L, "size",
+ (uint64_t) info.edd_params.sectors * info.edd_params.bytes_per_sector
+ / (1024 * 1024));
+ SET_TABLE_STRING_STRING(L, "host_bus", info.edd_params.host_bus_type);
+ SET_TABLE_STRING_STRING(L, "interface", info.edd_params.interface_type);
+ lua_settable(L, -3);
+ i++;
+ }
+ return 1;
+}
+
+static const luaL_Reg disklib[] = {
+ {"get_disks", get_disks},
+ {NULL, NULL}
+};
+
+
+LUALIB_API i...