Skip to content

Commit

Permalink
Merge pull request #161 from alufers/feature/add-missing-fields-to-bos
Browse files Browse the repository at this point in the history
fix: Add missing fields to libusb_bos_descriptor and libusb_bos_dev_capability_descriptor
  • Loading branch information
a1ien committed Apr 27, 2024
2 parents b99c8ce + aba2025 commit 01bfb3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libusb1-sys/src/lib.rs
Expand Up @@ -126,6 +126,7 @@ pub struct libusb_bos_dev_capability_descriptor {
pub bLength: u8,
pub bDescriptorType: u8,
pub bDevCapabilityType: u8,
pub dev_capability_data: [u8; 0],
}

#[allow(non_snake_case)]
Expand All @@ -135,6 +136,7 @@ pub struct libusb_bos_descriptor {
pub bDescriptorType: u8,
pub wTotalLength: u16,
pub bNumDeviceCaps: u8,
pub dev_capability: [libusb_bos_dev_capability_descriptor; 0],
}

#[allow(non_snake_case)]
Expand Down

0 comments on commit 01bfb3e

Please sign in to comment.