Module: GrubY::TDLib::Native
- Extended by:
- FFI::Library
- Defined in:
- lib/gruubY/tdlib/native.rb
Defined Under Namespace
Classes: LibraryNotFoundError
Class Method Summary collapse
Class Method Details
.load!(path = nil) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/gruubY/tdlib/native.rb', line 11 def load!(path = nil) return if @loaded ffi_lib(resolve_library_path(path)) attach_function :td_json_client_create, [], :pointer attach_function :td_json_client_send, [:pointer, :string], :void attach_function :td_json_client_receive, [:pointer, :double], :string attach_function :td_json_client_execute, [:pointer, :string], :string attach_function :td_json_client_destroy, [:pointer], :void attach_function :td_set_log_verbosity_level, [:int], :void @loaded = true end |