Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ppd_find_choice(3) [debian man page]

ppd_find_choice(3)					     Library Functions Manual						ppd_find_choice(3)

NAME
ppd_find_choice, ppd_find_marked_choice, ppd_find_option_by_keyword - set of functions for returning pointers to choices from PPD files. SYNOPSIS
#include <ppd.h> PpdChoice *ppd_find_choice (PpdOption *o, const char *choice); PpdChoice *ppd_find_marked_choice (PpdFile *ppd, const char *keyword); PpdOption *ppd_find_option_by_keyword (PpdFile *ppd, const char *keyword); DESCRIPTION
These three functions allow the programmer access options and choices within a PPD file. PpdChoice *ppd_find_choice (PpdOption *o, const char *choice); This function accepts two parameters. The first is a pointer to a PPD option structure and the second is the name of the choice to locate. PpdChoice *ppd_find_marked_choice (PpdFile *ppd, const char *keyword); This function accepts a valid PpdFile pointer (see ppd_file_new(3)) and a keyword or option name to locate in the PPD file. PpdOption *ppd_find_option_by_keyword (PpdFile *ppd, const char *keyword); This function accepts two parameters which are identical to those used when invoking the ppd_find_marked_choice() function. However, the ppd_find_option_by_keyword() function does not mark the designated option as being selected. RETURN VALUE
ppd_find_choice() Return a pointer to an option choice; NULL in the case of a failure ppd_find_marked_choice() Return the marked choice for the specified option; NULL in the case of a failure ppd_find_option_by_keyword() Return a pointer to the specified option; NULL in the case of a failure SEE ALSO
ppd_file_new(3), ppd_emit_to_file(3), ppd_file_free(3), ppd_get_num_conflicts(3), ppd_check_option_is_marked(3), ppd_get_page_length(3) AUTHOR
This man page was written by Gerald Carter <gcarter@valinux.com>. It was updated by Mark Fasheh <mfasheh@valinux.com> to reflect changes in libppd 0.5 Some of the code for these functions was originally part of the Common UNIX Printing System (CUPS). ppd_find_choice(3)

Check Out this Related Man Page

ppdc(1) 							    Apple Inc.								   ppdc(1)

NAME
ppdc - cups ppd compiler SYNOPSIS
ppdc [ -D name[=value] ] [ -I include-directory ] [ -c message-catalog ] [ -d output-directory ] [ -l language(s) ] [-m] [-t] [ -v ] [ -z ] [ --cr ] [ --crlf ] [ --lf ] source-file DESCRIPTION
ppdc compiles PPDC source files into one or more PPD files. This program is deprecated and will be removed in a future release of CUPS. The -D option sets the named variable for use in the source file. It is equivalent to using the #define directive in the source file. The -I option specifies an alternate include directory; multiple -I options can be supplied to add additional directories. The -c option specifies a single message catalog file in GNU gettext source format (filename.po) to be used for localization. The -d option specifies the output directory for PPD files. The default output directory is "ppd". The -l option specifies one or more languages to use when localizing the PPD file(s). The default language is "en" (English). Separate mul- tiple languages with commas, for example "de_DE,en_UK,es_ES,es_MX,es_US,fr_CA,fr_FR,it_IT" will create PPD files with German, UK English, Spanish (Spain, Mexico, and US), French (France and Canada), and Italian languages in each file. The -m option specifies that the output filename should be based on the ModelName value instead of FileName or PCFilenName. The -t option specifies that PPD files should be tested instead of generated. The -v option provides more verbose output, basically a running status of which files are being loaded or written. The -z option generates compressed PPD files (filename.ppd.gz). The default is to generate uncompressed PPD files. The --cr, --crlf, and --lf options specify the line ending to use - carriage return, carriage return and line feed, or line feed. The default is to use the line feed character alone. SEE ALSO
ppdhtml(1), ppdi(1), ppdmerge(1), ppdpo(1), ppdcfile(5) http://localhost:631/help COPYRIGHT
Copyright 2007-2013 by Apple Inc. 15 February 2012 CUPS ppdc(1)
Man Page