diff options
author | Didier Raboud <odyx@debian.org> | 2016-09-20 11:56:08 +0200 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2016-09-20 11:56:08 +0200 |
commit | 7f5731038556e5b03d2a886163ca2c873c77333d (patch) | |
tree | 8f4194af3949a73accf44b2b0bd8ebfa990ac577 /doc/developer/reference-html/c47.html | |
parent | a313257bdec71bc92a56598e74d9097c16cb6e48 (diff) |
New upstream version 5.2.12~pre2
Diffstat (limited to 'doc/developer/reference-html/c47.html')
-rw-r--r-- | doc/developer/reference-html/c47.html | 252 |
1 files changed, 252 insertions, 0 deletions
diff --git a/doc/developer/reference-html/c47.html b/doc/developer/reference-html/c47.html new file mode 100644 index 0000000..5fb0b90 --- /dev/null +++ b/doc/developer/reference-html/c47.html @@ -0,0 +1,252 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<HTML +><HEAD +><TITLE +>Using libgutenprint</TITLE +><META +NAME="GENERATOR" +CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK +REL="HOME" +TITLE="The Developer's Guide to Gutenprint" +HREF="book1.html"><LINK +REL="PREVIOUS" +TITLE="Copying, modification and redistribution" +HREF="c38.html"><LINK +REL="NEXT" +TITLE="Linking with libgutenprint" +HREF="x66.html"><META +http-equiv="Content-Type" +content="text/html; charset=@encoding@"></HEAD +><BODY +CLASS="chapter" +><DIV +CLASS="NAVHEADER" +><TABLE +SUMMARY="Header navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TH +COLSPAN="3" +ALIGN="center" +>The Developer's Guide to Gutenprint</TH +></TR +><TR +><TD +WIDTH="10%" +ALIGN="left" +VALIGN="bottom" +><A +HREF="c38.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="80%" +ALIGN="center" +VALIGN="bottom" +></TD +><TD +WIDTH="10%" +ALIGN="right" +VALIGN="bottom" +><A +HREF="x66.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +></TABLE +><HR +ALIGN="LEFT" +WIDTH="100%"></DIV +><DIV +CLASS="chapter" +><H1 +><A +NAME="AEN47" +></A +>Chapter 2. Using libgutenprint</H1 +><DIV +CLASS="TOC" +><DL +><DT +><B +>Table of Contents</B +></DT +><DT +><A +HREF="c47.html#AEN50" +>Code prerequisites</A +></DT +><DT +><A +HREF="x66.html" +>Linking with libgutenprint</A +></DT +><DT +><A +HREF="x78.html" +>Integrating libgutenprint</A +></DT +></DL +></DIV +><P +> This chapter describes how to write programs that use + libgutenprint. + </P +><DIV +CLASS="sect1" +><H1 +CLASS="sect1" +><A +NAME="AEN50" +>Code prerequisites</A +></H1 +><P +> To use libgutenprint with a program, several steps must be taken: + </P +><P +></P +><UL +><LI +><P +> Include the master libgutenprint header: + <DIV +CLASS="informalexample" +><P +></P +><A +NAME="AEN56" +></A +><TABLE +BORDER="0" +BGCOLOR="#E0E0E0" +WIDTH="100%" +><TR +><TD +><PRE +CLASS="programlisting" +><gimp-print/gimp-print.h></PRE +></TD +></TR +></TABLE +><P +></P +></DIV +> + </P +></LI +><LI +><P +> Call <CODE +CLASS="function" +>stp_init</CODE +>. + </P +></LI +><LI +><P +> Link with the libgutenprint library. + </P +></LI +></UL +><P +> The following is a short example program. It does not do + anything useful, but it does everything required to link with + libgutenprint and call other functions from libgutenprint. + </P +><DIV +CLASS="informalexample" +><P +></P +><A +NAME="AEN64" +></A +><TABLE +BORDER="0" +BGCOLOR="#E0E0E0" +WIDTH="100%" +><TR +><TD +><PRE +CLASS="programlisting" +>#include <gimp-print/gimp-print.h> +int +main (int argc, char *argv[]) +{ + stp_init(); + return 0; +} + </PRE +></TD +></TR +></TABLE +><P +></P +></DIV +></DIV +></DIV +><DIV +CLASS="NAVFOOTER" +><HR +ALIGN="LEFT" +WIDTH="100%"><TABLE +SUMMARY="Footer navigation table" +WIDTH="100%" +BORDER="0" +CELLPADDING="0" +CELLSPACING="0" +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +><A +HREF="c38.html" +ACCESSKEY="P" +>Prev</A +></TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +><A +HREF="book1.html" +ACCESSKEY="H" +>Home</A +></TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +><A +HREF="x66.html" +ACCESSKEY="N" +>Next</A +></TD +></TR +><TR +><TD +WIDTH="33%" +ALIGN="left" +VALIGN="top" +>Copying, modification and redistribution</TD +><TD +WIDTH="34%" +ALIGN="center" +VALIGN="top" +> </TD +><TD +WIDTH="33%" +ALIGN="right" +VALIGN="top" +>Linking with libgutenprint</TD +></TR +></TABLE +></DIV +></BODY +></HTML +>
\ No newline at end of file |