Sha256: 155fced5b35ea64bcfdafdac022927e1ca17326cbd99e7846f04bba0d8254543

Contents?: true

Size: 494 Bytes

Versions: 13

Compression:

Stored size: 494 Bytes

Contents

# frozen_string_literal: true

module Libvirt
  module FFI
    module Common
      # https://libvirt.org/html/libvirt-libvirt-common.html

      extend ::FFI::Library
      extend Helpers
      ffi_lib Util.library_path

      # typedef void (*virFreeCallback)  (
      #   void * opaque
      # )
      FREE_CALLBACK = callback :virFreeCallback, [:pointer], :void

      def self.free_function(*args, &block)
        callback_function(FREE_CALLBACK, *args, &block)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
libvirt_ffi-0.8.1 lib/libvirt/ffi/common.rb
libvirt_ffi-0.8.0 lib/libvirt/ffi/common.rb
libvirt_ffi-0.7.0 lib/libvirt/ffi/common.rb
libvirt_ffi-0.6.2 lib/libvirt/ffi/common.rb
libvirt_ffi-0.6.1 lib/libvirt/ffi/common.rb
libvirt_ffi-0.6.0 lib/libvirt/ffi/common.rb
libvirt_ffi-0.5.6 lib/libvirt/ffi/common.rb
libvirt_ffi-0.5.5 lib/libvirt/ffi/common.rb
libvirt_ffi-0.5.4 lib/libvirt/ffi/common.rb
libvirt_ffi-0.5.3 lib/libvirt/ffi/common.rb
libvirt_ffi-0.5.2 lib/libvirt/ffi/common.rb
libvirt_ffi-0.5.1 lib/libvirt/ffi/common.rb
libvirt_ffi-0.5.0 lib/libvirt/ffi/common.rb