IOUSBGetNextAssociatedDescriptor
Gets the next descriptor in the specified configuration descriptor that belongs to another container descriptor.
Declaration
const IOUSBDescriptorHeader *IOUSBGetNextAssociatedDescriptor(const IOUSBConfigurationDescriptor *configurationDescriptor, const IOUSBDescriptorHeader *parentDescriptor, const IOUSBDescriptorHeader *currentDescriptor);Parameters
- configurationDescriptor:
A configuration descriptor that contains the descriptors to iterate through.
- parentDescriptor:
A descriptor pointer within the bounds of the configuration descriptor.
- currentDescriptor:
A descriptor pointer within the bounds of the configuration descriptor, or
NULL.
Return Value
A descriptor pointer, or NULL if no descriptor can be returned.
Discussion
This method uses getNextDescriptor, but returns NULL if it finds another descriptor whose descriptor type field matches the value used for the parent descriptor’s type. Using NULL for the current descriptor returns the first descriptor after the parent descriptor.