Class: LIBUSB::Context::HotplugCallback
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- LIBUSB::Context::HotplugCallback
- Defined in:
- lib/libusb/context.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#deregister ⇒ Object
Deregisters the hotplug callback.
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
76 77 78 |
# File 'lib/libusb/context.rb', line 76 def context @context end |
Instance Method Details
#deregister ⇒ Object
Deregisters the hotplug callback.
Deregister a callback from a LIBUSB::Context. This function is safe to call from within a hotplug callback.
Since libusb version 1.0.16.
92 93 94 95 |
# File 'lib/libusb/context.rb', line 92 def deregister Call.libusb_hotplug_deregister_callback(@ctx, self[:handle]) @callbacks.delete(self[:handle]) end |