/usr/lib/ruby/vendor_ruby/gir_ffi/interface_base.rb is in ruby-gir-ffi 0.9.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | require 'gir_ffi/registered_type_base'
module GirFFI
# Base module for modules representing GLib interfaces.
module InterfaceBase
include RegisteredTypeBase
def setup_instance_method(name)
gir_ffi_builder.setup_instance_method name
end
def wrap(ptr)
ptr.to_object
end
def to_ffi_type
:pointer
end
end
end
|