1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
<HTML>
<BODY>
<DIV ALIGN='JUSTIFY'>
<H1 ALIGN="RIGHT"><A NAME="API">C - CUPS Driver API Reference</A></H1>
<P>This appendix provides a reference for the CUPS driver API included
with the CUPS DDK.</P>
<h2>Header File</h2>
<p>The CUPS driver API provides a single header file called
<var>driver.h</var>. You include it using the following
preprocessor command:</p>
<pre>
#include <cups/driver.h>
</pre>
<h2>Library</h2>
<p>The CUPS driver API is provided in a single library called
<tt>cupsdriver</tt>. The driver API also depends upon the CUPS
imaging API and CUPS API libraries. A typical link command will
look like the following:</p>
<pre>
<kbd>cc -o rastertomyprinter rastertomyprinter.o -lcupsdriver \
-lcupsimage -lcups -lm <i>ENTER</i></kbd>
</pre>
<EMBED SRC="cupsdriver.html">
</DIV>
</BODY>
</HTML>
|