You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
552 B
Lua

local base = string.match(..., "(.-)[^%.]+%.[^%.]+$")
local ffi = require("ffi")
local fh = require(base.."helper.ffi_struct")
local format = string.format
local mt, index = {}, {}
fh.gen_raw_accessor(index, "request_id")
fh.gen_raw_accessor(index, "retval")
fh.gen_raw_accessor(index, "effect_id")
function index:tostring()
return format(
"ff_erase{request_id=%d, retval=%d, effect_id=%d}",
self.request_id, self.retval, self.effect_id)
end
mt.__tostring = index.tostring
return fh.base(mt, index, ffi.typeof("struct uinput_ff_erase"))