/* usb-core/usb/objects.h
 *
 * (c) 2003 Simtec Electronics
 *
 * Ben Dooks
 *
 * Get information about an object in the usb system
 *
 * $Id: objects.h,v 1.2 2003/08/06 15:56:11 ben Exp $
 *
 * This Library file is part of the Simtec Electronics USB stack development
 *   suite.
 * Specific licence is granted to use this file by third parties for the
 *   development of USB device drivers.
 *
*/

#ifndef __USB_OBJECTS_H
#define __USB_OBJECTS_H "$Id: objects.h,v 1.2 2003/08/06 15:56:11 ben Exp $"

struct usb_refinfo {
	unsigned int	refs;
	unsigned int	sub_refs;
};

/* usb_object_refinfo
 *
 * read reference information for the given usb object. The type field is
 * of the USB_REFERENCE_* range, and the return is USB_RESULT_*
*/

extern int usb_object_refinfo(void *obj, int type, struct usb_refinfo *ref);

#endif /* __USB_OBJECTS_H */
