Sha256: aaa9684a3c44d81f8cb0508faae75c9a877348c8085ed80a2b9253772a1ffe41

Contents?: true

Size: 1.19 KB

Versions: 3

Compression:

Stored size: 1.19 KB

Contents

require "ffi" unless defined?(FFI)

module CF
  extend FFI::Library
  ffi_lib '/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation'

  if FFI::Platform::ARCH == 'x86_64'
    typedef :long_long, :cfindex
    typedef :long_long, :cfcomparisonresult
    typedef :ulong_long, :cfoptionflags
    typedef :ulong_long, :cftypeid
    typedef :ulong_long, :cfhashcode
  else
    typedef :long, :cfindex
    typedef :long, :cfcomparisonresult
    typedef :ulong, :cfoptionflags
    typedef :ulong, :cftypeid
    typedef :ulong, :cfhashcode
  end

  typedef :pointer, :cftyperef
end

require_relative 'corefoundation/refinements'
require_relative 'corefoundation/memory'
require_relative 'corefoundation/register'
require_relative 'corefoundation/base'
require_relative 'corefoundation/null'
require_relative 'corefoundation/range'
require_relative 'corefoundation/string'
require_relative 'corefoundation/array'
require_relative 'corefoundation/boolean'
require_relative 'corefoundation/data'
require_relative 'corefoundation/dictionary'
require_relative 'corefoundation/number'
require_relative 'corefoundation/date'
require_relative 'corefoundation/exceptions'
require_relative 'corefoundation/preferences'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
corefoundation-0.3.13 lib/corefoundation.rb
corefoundation-0.3.10 lib/corefoundation.rb
corefoundation-0.3.4 lib/corefoundation.rb