Sha256: 9cbc0b8c5caf91361fcda8bf8defe09cf237c54ba517043005886489d0344dd8

Contents?: true

Size: 819 Bytes

Versions: 124

Compression:

Stored size: 819 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
    begin
      ffi_lib 'inotify'
    rescue LoadError
    end

    # 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 :fpathconf, [:int, :int], :long
  end
end

Version data entries

124 entries across 120 versions & 10 rubygems

Version Path
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb
harbr-0.2.10 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb
harbr-0.2.9 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb
harbr-0.2.8 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb
harbr-0.2.7 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb
harbr-0.2.6 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb
harbr-0.2.5 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb
harbr-0.2.4 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb
harbr-0.2.3 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb
harbr-0.2.2 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb
harbr-0.2.1 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb
harbr-0.2.0 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb
harbr-0.1.99 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb
harbr-0.1.98 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb
harbr-0.1.97 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb
harbr-0.1.96 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb
harbr-0.1.95 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb
harbr-0.1.94 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb
harbr-0.1.93 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb
harbr-0.1.91 vendor/bundle/ruby/3.2.0/gems/rb-inotify-0.10.1/lib/rb-inotify/native.rb