Sha256: 4dc7f9ee8424260942fdeb9d7f2e217a311026a0c137df7a82624066353b5fb0
Contents?: true
Size: 1.88 KB
Versions: 13
Compression:
Stored size: 1.88 KB
Contents
# frozen_string_literal: true module Libvirt module FFI module Stream # https://libvirt.org/html/libvirt-libvirt-stream.html extend ::FFI::Library extend Helpers ffi_lib Util.library_path # virStreamPtr virStreamNew ( # virConnectPtr conn, # unsigned int flags # ) attach_function :virStreamNew, [:pointer, :uint], :pointer # typedef void (*virStreamEventCallback) ( # virStreamPtr stream, # int events, # void * opaque # ) callback :virStreamEventCallback, [:pointer, :int, :pointer], :void # int virStreamEventAddCallback ( # virStreamPtr stream, # int events, # virStreamEventCallback cb, # void * opaque, # virFreeCallback ff # ) attach_function :virStreamEventAddCallback, [ :pointer, :int, :virStreamEventCallback, :pointer, FFI::Common::FREE_CALLBACK ], :int # int virStreamEventRemoveCallback ( # virStreamPtr stream # ) attach_function :virStreamEventRemoveCallback, [:pointer], :int # int virStreamEventUpdateCallback ( # virStreamPtr stream, # int events # ) attach_function :virStreamEventUpdateCallback, [:pointer, :int], :int # int virStreamFinish ( # virStreamPtr stream # ) attach_function :virStreamFinish, [:pointer], :int # int virStreamFree ( # virStreamPtr stream # ) attach_function :virStreamFree, [:pointer], :int # int virStreamAbort ( # virStreamPtr stream # ) attach_function :virStreamAbort, [:pointer], :int # int virStreamRecv ( # virStreamPtr stream, # char *data, # size_t nbytes # ) attach_function :virStreamRecv, [:pointer, :pointer, :size_t], :int end end end
Version data entries
13 entries across 13 versions & 1 rubygems