Sha256: aefcb269bd93dae40b70093183cf3aafd327fb572a2d2e3d8dcbb615116a9f8d
Contents?: true
Size: 667 Bytes
Versions: 3
Compression:
Stored size: 667 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 # 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, :int], :int attach_function :inotify_rm_watch, [:int, :int], :int end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rb-inotify-0.2.1 | lib/rb-inotify/native.rb |
rb-inotify-0.2.0 | lib/rb-inotify/native.rb |
rb-inotify-0.1.0 | lib/rb-inotify/native.rb |