class FFI::CallbackInfo
def initialize(return_type, arg_types = [], *other)
def initialize(return_type, arg_types = [], *other) @return_type = return_type @arg_types = arg_types @options = options end
def name(name)
def name(name) params = @arg_types.empty? ? 'void' : @arg_types.map(&:name).join(', ') "#{@return_type.name} (*#{name})(#{params})" end