|
Search the USB bus for a Nomad JukeBox. We can handle up to NJB_MAX_DEVICES JukeBox's per USB simultaneously (a value arbitrarily set in base.h, because it's easier to work with a fixed size array than build dynamically growing code...if anyone _really_ plans on having more than NJB_MAX_DEVICES jukeboxes on their system, they can recompile with a bigger number). The USB device starts at usb0 and goes to usbNNN where NNN is USB_MAX_DEVICES. Check each bus for a usb device. Return -1 if errors occurred...though this doesn't mean we failed to find devices. *count gives the number of NJB devices that were found. Store the resulting NJB structues structure into the njbs[NJB_MAX_DEVICES] array.
- Parameters:
-
| njbs | an array of jukeboxes to fill up. The array must be NJB_MAX_DEVICES large. |
| limit | a variable that is supposed to limit the number of devices retrieved, currently not used. |
| count | a pointer to a variable that will hold the number of devices found after the call to this function. |
- Returns:
- 0 on OK, -1 on failure.
|