<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Nov 16, 2009, at 6:52 PM, wang wei wrote:</div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000">...</font></div></blockquote><blockquote type="cite"><div>i just need to implement the basic functions.Users can use it to print files and can know the status of the printer.indeed,it will be better if we can automaticlly probe the printer.<br>i talk to my printer just use USB.and i want to surpport HP printers.are these enough?<br></div></blockquote></div><div><br></div>What kind of files?  Are you sending printer-ready data, or do you need to convert to printer-ready data?<div><br></div><div>For USB printers, look at the backend/usb-unix.c code in CUPS - you can open the /dev/usb/lp* files to determine what printer(s) are connected and their type.</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>___________________________________________________</div><div>Michael Sweet, Senior Printing System Engineer</div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>