Sha256: e50a181724694be9e9827b0ee8b13f8908192cd113045cdbdc4cf1ccf13c5795
Contents?: true
Size: 809 Bytes
Versions: 33
Compression:
Stored size: 809 Bytes
Contents
require 'ffi' module INotify # This module contains the low-level foreign-function interface code # for dealing with the inotify C APIs. # It's an implementation detail, and not meant for users to deal with. # # @private module Native extend FFI::Library ffi_lib FFI::Library::LIBC # The C struct describing an inotify event. # # @private class Event < FFI::Struct layout( :wd, :int, :mask, :uint32, :cookie, :uint32, :len, :uint32) end attach_function :inotify_init, [], :int attach_function :inotify_add_watch, [:int, :string, :uint32], :int attach_function :inotify_rm_watch, [:int, :uint32], :int attach_function :read, [:int, :pointer, :size_t], :ssize_t attach_function :close, [:int], :int end end
Version data entries
33 entries across 31 versions & 11 rubygems