[cups.development] [RFE] STR #2261: extend API to add streaming print function cupsPrintStream

mike dizaemon at hotmail.com
Sat Feb 24 04:38:54 PST 2007


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

currently, cupsPrintFile() is the only method of submitting a print job via
the convenience functions provided by the API.  cupsPrintFile() expects to
be given the name of the file, then cupsPrintFile() opens and reads the
file.

a streaming version of this function utilizing chunked transfer encoding
would be a universally welcome addition to the API.

attached is a patch against cups-1.2 svn as of 2006-02-23 implementing
cupsPrintStream(), just such a streaming print function.

the changes have been tested with linux-2.6.19.1/libc-2.3.6/gcc-4.0.3. 
cupsPrintFile() is modified in the patch to use cupsPrintStream() to
reduce code duplication.  lpr is also modified to use cupsPrintStream()
for printing from stdin.

Link: http://www.cups.org/str.php?L2261
Version:  -feature
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cups-stream.patch
URL: <http://lists.cups.org/pipermail/cups-devel/attachments/20070224/a8a1e09d/attachment.ksh>


More information about the cups-devel mailing list