openusb_claim_interface, openusb_release_interface,
openusb_is_interface_claimed
openusb_claim_interface, openusb_release_interface,
openusb_is_interface_claimed
-- Claim interface exclusively, Release an interface,
Check if an interface has been claimed
openusb_claim_interface()
claims an interface of device dev
.
See openusb_open_device
for the meaning of flags
. Application
must call openusb_claim_interface
() before it further operates
on an interface.
openusb_release_interface
() releases a claimed interface ifc
.
openusb_is_interface_claimed
returns if the interface ifc
has been claimed.
openusb_claim_interface
() or openusb_release_interface
() returns 0 on success. openusb_is_interface_claimed
returns 0 if not claimed and 1 if already claimed. Otherwise, a openusb error is returned.
OPENUSB_SUCCESS No errors.
OPENUSB_BADARG ifc
is not valid.
OPENUSB_UNKNOWN_DEVICE Device handle is not valid
OPENUSB_BUSY The interface ifc
has already been claimed.