[TWAIN] (take 3) Reconcile sane's long names to TWAIN's 32 byte limit

Jeremy White jwhite at winehq.org
Mon Feb 13 20:49:14 CST 2006


(Remove the unused TWAIN_strdup function).

libsane can return arbitrarily long names, but TWAIN supports only a maximum of 32.
Further, the name is a unique identifier, and so must be returned to libsane for processing.

This algorithm tries to convert a long libsane name into a more reasonable short name,
but adds a crude signature process in an attempt to ensure a unique short identifier.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t3.diff
Type: text/x-patch
Size: 5962 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060213/0456856f/t3-0001.diff


More information about the wine-patches mailing list