From c394bbb72611f779a5dc81eb7c0ed8b954dad010 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sat, 15 Mar 2008 14:57:51 +0000 Subject: [PATCH] Fix typo in sanei_usb.h. --- ChangeLog | 3 +++ include/sane/sanei_usb.h | 18 ++++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d4d067bb7..4378a596f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2008-03-15 Julien Blache + * include/sane/sanei_usb.h: typo fix. + 2008-03-02 Stéphane Voltz * doc/descriptions/lexmark.desc: added X1195 * doc/descriptions/unsupported.desc: removed X11xx, X12xx and diff --git a/include/sane/sanei_usb.h b/include/sane/sanei_usb.h index 243c4cfca..c9b5590b3 100644 --- a/include/sane/sanei_usb.h +++ b/include/sane/sanei_usb.h @@ -190,8 +190,8 @@ extern void sanei_usb_init (void); * @param vendor vendor id * @param product product id * - *@return - * - SANE_STATUS_GOOD - if the ids could be determinded + * @return + * - SANE_STATUS_GOOD - if the ids could be determined * - SANE_STATUS_UNSUPPORTED - if the OS doesn't support detection of ids */ extern SANE_Status @@ -241,6 +241,20 @@ extern SANE_Status sanei_usb_open (SANE_String_Const devname, SANE_Int * dn); */ extern void sanei_usb_close (SANE_Int dn); +/** Get the filename associated with a USB device. + * + * The full filename is stored into a malloc()ed string in devpath that + * the caller must free() after use. + * + * @param dn device number + * @param devpath string pointer + * + * @return + * - SANE_STATUS_GOOD - on success + * - SANE_STATUS_INVAL - on error + */ +extern SANE_Status sanei_usb_get_device_path (SANE_Int dn, SANE_String * devpath); + /** Set the libusb timeout for bulk and interrupt reads. * * @param timeout the new timeout in ms