Sha256: 1f778840eef0bf18ee3f9759ff6c3e8ce2270be3e65e8e5002b90480b5e713d4
Contents?: true
Size: 753 Bytes
Versions: 3
Compression:
Stored size: 753 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 "c" # 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 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rb-inotify-0.7.2 | lib/rb-inotify/native.rb |
rb-inotify-0.7.1 | lib/rb-inotify/native.rb |
rb-inotify-0.7.0 | lib/rb-inotify/native.rb |