diff options
author | Didier Raboud <odyx@debian.org> | 2014-01-02 23:03:44 +0100 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2014-01-02 23:03:44 +0100 |
commit | d13746555c30d1d1bd617dcf64d5b92e319ae2b5 (patch) | |
tree | ba335eb874926e0d4efebaccb46f2d5d390c7854 /doc/help/api-cups.html | |
parent | 11884b3954f87fa67f02dca9169df32666b5363c (diff) | |
download | cups-d13746555c30d1d1bd617dcf64d5b92e319ae2b5.tar.gz |
Imported Upstream version 1.7.0~rc1upstream/1.7.0_rc1
Diffstat (limited to 'doc/help/api-cups.html')
-rw-r--r-- | doc/help/api-cups.html | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/doc/help/api-cups.html b/doc/help/api-cups.html index 3f4f48b0..b355e108 100644 --- a/doc/help/api-cups.html +++ b/doc/help/api-cups.html @@ -341,7 +341,7 @@ div.contents ul.subcontents li { <body> <div class='body'> <!-- - "$Id: api-cups.html 10909 2013-03-14 18:45:49Z mike $" + "$Id: api-cups.header 7279 2008-01-31 01:50:44Z mike $" CUPS API header for CUPS. @@ -547,11 +547,11 @@ constants">cups_ptype_e</a></li> </ul></li> </ul> <!-- - "$Id: api-cups.html 10909 2013-03-14 18:45:49Z mike $" + "$Id: api-cups.shtml 7337 2008-02-22 04:44:04Z mike $" API introduction for CUPS. - Copyright 2007-2011 by Apple Inc. + Copyright 2007-2013 by Apple Inc. Copyright 1997-2006 by Easy Software Products, all rights reserved. These coded instructions, statements, and computer programs are the @@ -731,7 +731,7 @@ int num_options = 0; <a href='#cups_option_t'>cups_option_t</a> *options = NULL; <a href='#cups_dest_t'>cups_dest_t</a> *dest; -for (i = 0; i < dest->num_options; i ++) +for (i = 0; i < dest->num_options; i ++) num_options = <a href='#cupsAddOption'>cupsAddOption</a>(dest->options[i].name, dest->options[i].value, num_options, &options); </pre> @@ -783,7 +783,7 @@ job_id = <a href='#cupsPrintFiles'>cupsPrintFiles</a>(dest->name, 3, files, "Tes <p>Finally, the <a href='#cupsCreateJob'><code>cupsCreateJob</code></a> function creates a new job with no files in it. Files are added using the -<a href='#cupsStartDocument'><code>cupsStartDocument</code></a>, +<a href='#cupsStartDocument'><code>cupsStartDocument</code></a>, <a href='api-httpipp.html#cupsWriteRequestData'><code>cupsWriteRequestData</code></a>, and <a href='#cupsFinishDocument'><code>cupsFinishDocument</code></a> functions. The following example creates a job with 10 text files for printing:</p> @@ -847,7 +847,7 @@ int num_jobs; <a href='#cups_job_t'>cups_job_t</a> *jobs; int i; ipp_jstate_t job_state = IPP_JOB_PENDING; - + while (job_state < IPP_JOB_STOPPED) { /* Get my jobs (1) with any state (-1) */ @@ -1629,7 +1629,7 @@ Enumeration happens on the current thread and does not return until all destinations have been enumerated or the block returns 0. </p> -<h3 class="function"><span class="info"> CUPS 1.7 </span><a name="cupsFindDestDefault">cupsFindDestDefault</a></h3> +<h3 class="function"><span class="info"> CUPS 1.7/OS X 10.9 </span><a name="cupsFindDestDefault">cupsFindDestDefault</a></h3> <p class="description">Find the default value(s) for the given option.</p> <p class="code"> ipp_attribute_t *cupsFindDestDefault (<br> @@ -1659,7 +1659,7 @@ ipp_attribute_t *cupsFindDestDefault (<br> functions to inspect the default value(s) as needed. </p> -<h3 class="function"><span class="info"> CUPS 1.7 </span><a name="cupsFindDestReady">cupsFindDestReady</a></h3> +<h3 class="function"><span class="info"> CUPS 1.7/OS X 10.9 </span><a name="cupsFindDestReady">cupsFindDestReady</a></h3> <p class="description">Find the default value(s) for the given option.</p> <p class="code"> ipp_attribute_t *cupsFindDestReady (<br> @@ -1689,7 +1689,7 @@ ipp_attribute_t *cupsFindDestReady (<br> functions to inspect the default value(s) as needed. </p> -<h3 class="function"><span class="info"> CUPS 1.7 </span><a name="cupsFindDestSupported">cupsFindDestSupported</a></h3> +<h3 class="function"><span class="info"> CUPS 1.7/OS X 10.9 </span><a name="cupsFindDestSupported">cupsFindDestSupported</a></h3> <p class="description">Find the default value(s) for the given option.</p> <p class="code"> ipp_attribute_t *cupsFindDestSupported (<br> @@ -1893,7 +1893,7 @@ not support the lpoptions-defined default printer. <h4 class="discussion">Discussion</h4> <p class="discussion">Use the <a href="#cupsGetDests"><code>cupsGetDests</code></a> or <a href="#cupsGetDests2"><code>cupsGetDests2</code></a> functions to get a list of supported destinations for the current user.</p> -<h3 class="function"><span class="info"> CUPS 1.7 </span><a name="cupsGetDestMediaByIndex">cupsGetDestMediaByIndex</a></h3> +<h3 class="function"><span class="info"> CUPS 1.7/OS X 10.9 </span><a name="cupsGetDestMediaByIndex">cupsGetDestMediaByIndex</a></h3> <p class="description">Get a media name, dimension, and margins for a specific size.</p> <p class="code"> @@ -2021,7 +2021,7 @@ The matching result (if any) is returned in the "cups_size_t" structur Returns 1 when there is a match and 0 if there is not a match. </p> -<h3 class="function"><span class="info"> CUPS 1.7 </span><a name="cupsGetDestMediaCount">cupsGetDestMediaCount</a></h3> +<h3 class="function"><span class="info"> CUPS 1.7/OS X 10.9 </span><a name="cupsGetDestMediaCount">cupsGetDestMediaCount</a></h3> <p class="description">Get the number of sizes supported by a destination.</p> <p class="code"> @@ -2050,7 +2050,7 @@ counted. For example, passing <code>CUPS_MEDIA_FLAGS_BORDERLESS</code> will ret the number of borderless sizes. </p> -<h3 class="function"><span class="info"> CUPS 1.7 </span><a name="cupsGetDestMediaDefault">cupsGetDestMediaDefault</a></h3> +<h3 class="function"><span class="info"> CUPS 1.7/OS X 10.9 </span><a name="cupsGetDestMediaDefault">cupsGetDestMediaDefault</a></h3> <p class="description">Get the default size for a destination.</p> <p class="code"> int cupsGetDestMediaDefault (<br> @@ -3019,7 +3019,7 @@ void cupsSetUser (<br> Note: The current user name is tracked separately for each thread in a program. Multi-threaded programs that override the user name need to do so in each thread for the same user name to be used.</p> -<h3 class="function"><span class="info"> CUPS 1.7 </span><a name="cupsSetUserAgent">cupsSetUserAgent</a></h3> +<h3 class="function"><span class="info"> CUPS 1.7/OS X 10.9 </span><a name="cupsSetUserAgent">cupsSetUserAgent</a></h3> <p class="description">Set the default HTTP User-Agent string.</p> <p class="code"> void cupsSetUserAgent (<br> @@ -3192,13 +3192,13 @@ const char *cupsUser (void);</p> program. Multi-threaded programs that override the user name with the <a href="#cupsSetUser"><code>cupsSetUser</code></a> function need to do so in each thread for the same user name to be used.</p> -<h3 class="function"><span class="info"> CUPS 1.7 </span><a name="cupsUserAgent">cupsUserAgent</a></h3> +<h3 class="function"><span class="info"> CUPS 1.7/OS X 10.9 </span><a name="cupsUserAgent">cupsUserAgent</a></h3> <p class="description">Return the default HTTP User-Agent string.</p> <p class="code"> const char *cupsUserAgent (void);</p> <h4 class="returnvalue">Return Value</h4> <p class="description">User-Agent string</p> -<h3 class="function"><span class="info"> CUPS 1.7 </span><a name="pwgFormatSizeName">pwgFormatSizeName</a></h3> +<h3 class="function"><span class="info"> CUPS 1.7/OS X 10.9 </span><a name="pwgFormatSizeName">pwgFormatSizeName</a></h3> <p class="description">Generate a PWG self-describing media size name.</p> <p class="code"> int pwgFormatSizeName (<br> @@ -3246,7 +3246,7 @@ units string is <code>NULL</code>, otherwise inches ("in") or millimet are used. </p> -<h3 class="function"><span class="info"> CUPS 1.7 </span><a name="pwgInitSize">pwgInitSize</a></h3> +<h3 class="function"><span class="info"> CUPS 1.7/OS X 10.9 </span><a name="pwgInitSize">pwgInitSize</a></h3> <p class="description">Initialize a pwg_size_t structure using IPP Job Template attributes.</p> <p class="code"> @@ -3276,7 +3276,7 @@ member attribute was specified in the "media-col" Job Template attribu otherwise it is initialized to 0. </p> -<h3 class="function"><span class="info"> CUPS 1.7 </span><a name="pwgMediaForLegacy">pwgMediaForLegacy</a></h3> +<h3 class="function"><span class="info"> CUPS 1.7/OS X 10.9 </span><a name="pwgMediaForLegacy">pwgMediaForLegacy</a></h3> <p class="description">Find a PWG media size by ISO/IPP legacy name.</p> <p class="code"> <a href="#pwg_media_t">pwg_media_t</a> *pwgMediaForLegacy (<br> @@ -3294,7 +3294,7 @@ otherwise it is initialized to 0. "iso-a4" or "na-letter". </p> -<h3 class="function"><span class="info"> CUPS 1.7 </span><a name="pwgMediaForPPD">pwgMediaForPPD</a></h3> +<h3 class="function"><span class="info"> CUPS 1.7/OS X 10.9 </span><a name="pwgMediaForPPD">pwgMediaForPPD</a></h3> <p class="description">Find a PWG media size by Adobe PPD name.</p> <p class="code"> <a href="#pwg_media_t">pwg_media_t</a> *pwgMediaForPPD (<br> @@ -3318,7 +3318,7 @@ thread. Custom names can be of the form "Custom.WIDTHxLENGTH[units]" "WIDTHxLENGTH[units]". </p> -<h3 class="function"><span class="info"> CUPS 1.7 </span><a name="pwgMediaForPWG">pwgMediaForPWG</a></h3> +<h3 class="function"><span class="info"> CUPS 1.7/OS X 10.9 </span><a name="pwgMediaForPWG">pwgMediaForPWG</a></h3> <p class="description">Find a PWG media size by 5101.1 self-describing name.</p> <p class="code"> <a href="#pwg_media_t">pwg_media_t</a> *pwgMediaForPWG (<br> @@ -3340,7 +3340,7 @@ thread-local storage and is overwritten by each call to the function in the thread. </p> -<h3 class="function"><span class="info"> CUPS 1.7 </span><a name="pwgMediaForSize">pwgMediaForSize</a></h3> +<h3 class="function"><span class="info"> CUPS 1.7/OS X 10.9 </span><a name="pwgMediaForSize">pwgMediaForSize</a></h3> <p class="description">Get the PWG media size for the given dimensions.</p> <p class="code"> <a href="#pwg_media_t">pwg_media_t</a> *pwgMediaForSize (<br> |