Sha256: 015ab5bd0b40d03c0685e5149668d96b087e01c1d515b1c79efcbd918d24178b
Contents?: true
Size: 1.26 KB
Versions: 42
Compression:
Stored size: 1.26 KB
Contents
module Ethon module Curl # :nodoc: class MsgData < ::FFI::Union layout :whatever, :pointer, :code, :easy_code end # :nodoc: class Msg < ::FFI::Struct layout :code, :msg_code, :easy_handle, :pointer, :data, MsgData end class VersionInfoData < ::FFI::Struct layout :curl_version, :uint8, :version, :string, :version_num, :int, :host, :string, :features, :int, :ssl_version, :string, :ssl_version_num, :long, :libz_version, :string, :protocols, :pointer end # :nodoc: class FDSet < ::FFI::Struct if Curl.windows? layout :fd_count, :uint, # TODO: Make it future proof by dynamically grabbing FD_SETSIZE. :fd_array, [:uint, 2048] def clear; self[:fd_count] = 0; end else # FD Set size. FD_SETSIZE = ::Ethon::Libc.getdtablesize layout :fds_bits, [:long, FD_SETSIZE / ::FFI::Type::LONG.size] # :nodoc: def clear; super; end end end # :nodoc: class Timeval < ::FFI::Struct if Curl.windows? layout :sec, :long, :usec, :long else layout :sec, :time_t, :usec, :suseconds_t end end end end
Version data entries
42 entries across 41 versions & 8 rubygems