Add --device/-D support to the command line tools and manuals
[fw/altos] / ao-tools / lib / cc.h
index dad11bf3e8c87e3768a0f76849ff129d42cb57b0..0933f2725a9fe79ee1db50bc3e2803ed16a84943 100644 (file)
@@ -32,7 +32,7 @@ struct cc_usbdev {
        char    *tty;
        char    *manufacturer;
        char    *product;
-       char    *serial;
+       int     serial; /* AltOS always uses simple integer serial numbers */
        int     idProduct;
        int     idVendor;
 };
@@ -48,4 +48,7 @@ cc_usbdevs_free(struct cc_usbdevs *usbdevs);
 struct cc_usbdevs *
 cc_usbdevs_scan(void);
 
+char *
+cc_usbdevs_find_by_arg(char *arg, char *default_product);
+
 #endif /* _CC_H_ */