/* usb/lib/parsecmd.h
 *
 * (c) 2002 Simtec Electronics
 *
 * Ben Dooks
 *
 * USB Library: Header file for parsing command line parameters
 *
 * $Id: parsecmd.h,v 1.4 2003/09/26 10:44:04 vince 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_LIB_PARSECMD_H
#define __USB_LIB_PARSECMD_H "$Id: parsecmd.h,v 1.4 2003/09/26 10:44:04 vince Exp $"

/** Parses an command line for relevant device details

This call retreives the relevant device details for the command line

@memo Parse command line for details of usb device
@param argc arg count
@param argv arg string vector
@param tmp  pointer to temporary place to build new message if needed
*/

extern struct usbmsg_new_device* usblib_parse_cmd_line(int argc,
                                                       char **argv,
                                                       struct usbmsg_new_device *tmp);

/** Parses an string from the command line for relevant device details

This call retreives the relevant device details specified by the string
representation of the command line

@memo Parse command line for details of usb device
@param args arg string
@param tmp  pointer to temporary place to build new message if needed
*/

extern struct usbmsg_new_device* usblib_parse_cmd_str(const char *argv,
                                                      struct usbmsg_new_device *tmp);

#endif /* __USB_LIB_PARSECMD_H */
