Method: VirtualBox::COM::FFI::Interface.define_interface_parent
- Defined in:
- lib/virtualbox/com/ffi/interface.rb
.define_interface_parent(parent) ⇒ Object
Defines the parent item of the layout. Since the VirtualBox XPCOM C library emulates an object-oriented environment using structs, the parent instance is pointed to by the first member of the struct. This method sets up that member.
71 72 73 74 75 76 |
# File 'lib/virtualbox/com/ffi/interface.rb', line 71 def define_interface_parent(parent) return if parent.nil? parent_klass = Util.versioned_interface(parent).const_get("Vtbl") layout_args << [:superklass, parent_klass] end |