Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /usr/share/doc/cups-1.3.7/help/ drwxr-xr-x |
Viewing file: api-ppd.html (62.13 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | IntroductionThe CUPS PPD API provides read-only access the data in PostScript Printer Description ("PPD") files. With it you can display printer options to users, mark option choices and check for conflicting choices, and output marked choices in PostScript output. General UsageThe <cups/ppd.h> header file must be included to use the ppd functions. Programs using these functions must be linked to the CUPS library: libcups.a, libcups.so.2, libcups.2.dylib, libcups_s.a, or libcups2.lib depending on the platform. The following command compiles myprogram.c using GCC and the CUPS library: gcc -o myprogram myprogram.c -lcups CompatibilityUnless otherwise specified, the PPD API functions require CUPS 1.1 or higher. ContentsEnumerationsppd_conform_eDescription
Values
CUPS 1.2 ppd_cptype_eDescriptionCustom Parameter Type Values
ppd_cs_eDescriptionColorspaces Values
ppd_section_eDescriptionOrder dependency sections Values
ppd_status_eDescriptionTypes and structures... Values
ppd_ui_eDescriptionUI Types Values
Functions
ppdClose()DescriptionFree all memory used by the PPD file. Syntax
void Arguments
ReturnsNothing. ppdCollect()DescriptionCollect all marked options that reside in the specified section. Syntax
int Arguments
ReturnsNumber of options marked CUPS 1.2 ppdCollect2()DescriptionCollect all marked options that reside in the specified section and minimum order. Syntax
int Arguments
ReturnsNumber of options marked ppdConflicts()DescriptionCheck to see if there are any conflicts. Syntax
int Arguments
ReturnsNumber of conflicts found ppdEmit()DescriptionEmit code for marked options to a file. Syntax
int Arguments
Returns0 on success, -1 on failure CUPS 1.2 ppdEmitAfterOrder()DescriptionEmit a subset of the code for marked options to a file. When "limit" is non-zero, this function only emits options whose OrderDependency value is greater than or equal to "min_order". When "limit" is zero, this function is identical to ppdEmit(). Syntax
int Arguments
Returns0 on success, -1 on failure ppdEmitFd()DescriptionEmit code for marked options to a file. Syntax
int Arguments
Returns0 on success, -1 on failure ppdEmitJCL()DescriptionEmit code for JCL options to a file. Syntax
int Arguments
Returns0 on success, -1 on failure CUPS 1.2 ppdEmitJCLEnd()DescriptionEmit JCLEnd code to a file. Syntax
int Arguments
Returns0 on success, -1 on failure CUPS 1.2 ppdEmitString()DescriptionGet a string containing the code for marked options. When "min_order" is greater than zero, this function only includes options whose OrderDependency value is greater than or equal to "min_order". Otherwise, all options in the specified section are included in the returned string. The return string is allocated on the heap and should be freed using free() when you are done with it. Syntax
char * Arguments
ReturnsString containing option code CUPS 1.1.19 ppdErrorString()DescriptionReturns the text assocated with a status. Syntax
const char * Arguments
ReturnsStatus string CUPS 1.1.19 ppdFindAttr()DescriptionFind the first matching attribute... Syntax
ppd_attr_t * Arguments
ReturnsAttribute or NULL if not found ppdFindChoice()DescriptionReturn a pointer to an option choice. Syntax
ppd_choice_t * Arguments
ReturnsChoice pointer or NULL CUPS 1.2 ppdFindCustomOption()DescriptionFind a custom option. Syntax
ppd_coption_t * Arguments
ReturnsCustom option or NULL CUPS 1.2 ppdFindCustomParam()DescriptionFind a parameter for a custom option. Syntax
ppd_cparam_t * Arguments
ReturnsCustom parameter or NULL ppdFindMarkedChoice()DescriptionReturn the marked choice for the specified option. Syntax
ppd_choice_t * Arguments
ReturnsPointer to choice or NULL CUPS 1.1.19 ppdFindNextAttr()DescriptionFind the next matching attribute... Syntax
ppd_attr_t * Arguments
ReturnsAttribute or NULL if not found ppdFindOption()DescriptionReturn a pointer to the specified option. Syntax
ppd_option_t * Arguments
ReturnsPointer to option or NULL CUPS 1.2 ppdFirstCustomParam()DescriptionReturn the first parameter for a custom option. Syntax
ppd_cparam_t * Arguments
ReturnsCustom parameter or NULL CUPS 1.2 ppdFirstOption()DescriptionReturn the first option in the PPD file. Options are returned from all groups in sorted order. Syntax
ppd_option_t * Arguments
ReturnsFirst option or NULL ppdIsMarked()DescriptionCheck to see if an option is marked... Syntax
int Arguments
ReturnsNon-zero if option is marked CUPS 1.1.19 ppdLastError()DescriptionReturn the status from the last ppdOpen*(). Syntax
ppd_status_t Arguments
ReturnsStatus code CUPS 1.2 ppdLocalize()DescriptionLocalize the PPD file to the current locale. All groups, options, and choices are localized, as are ICC profile descriptions, printer presets, and custom option parameters. Each localized string uses the UTF-8 character encoding. Syntax
int Arguments
Returns0 on success, -1 on error CUPS 1.3 ppdLocalizeIPPReason()DescriptionGet the localized version of a cupsIPPReason attribute. This function uses the current locale to find the corresponding reason text or URI from the attribute value. If "scheme" is NULL or "text", the returned value contains human-readable (UTF-8) text from the translation string or attribute value. Otherwise the corresponding URI is returned. If no value of the requested scheme can be found, NULL is returned. Syntax
const char * Arguments
ReturnsValue or NULL if not found ppdMarkDefaults()DescriptionMark all default options in the PPD file. Syntax
void Arguments
ReturnsNothing. ppdMarkOption()DescriptionMark an option in a PPD file. Notes: -1 is returned if the given option would conflict with any currently selected option. Syntax
int Arguments
ReturnsNumber of conflicts CUPS 1.2 ppdNextCustomParam()DescriptionReturn the next parameter for a custom option. Syntax
ppd_cparam_t * Arguments
ReturnsCustom parameter or NULL CUPS 1.2 ppdNextOption()DescriptionReturn the next option in the PPD file. Options are returned from all groups in sorted order. Syntax
ppd_option_t * Arguments
ReturnsNext option or NULL ppdOpen()DescriptionRead a PPD file into memory. Syntax
ppd_file_t * Arguments
ReturnsPPD file record CUPS 1.2 ppdOpen2()DescriptionRead a PPD file into memory. Syntax
ppd_file_t * Arguments
ReturnsPPD file record ppdOpenFd()DescriptionRead a PPD file into memory. Syntax
ppd_file_t * Arguments
ReturnsPPD file record ppdOpenFile()DescriptionRead a PPD file into memory. Syntax
ppd_file_t * Arguments
ReturnsPPD file record ppdPageLength()DescriptionGet the page length for the given size. Syntax
float Arguments
ReturnsLength of page in points or 0.0 ppdPageSize()DescriptionGet the page size record for the given size. Syntax
ppd_size_t * Arguments
ReturnsSize record for page or NULL ppdPageWidth()DescriptionGet the page width for the given size. Syntax
float Arguments
ReturnsWidth of page in points or 0.0 CUPS 1.1.20 ppdSetConformance()DescriptionSet the conformance level for PPD files. Syntax
void Arguments
ReturnsNothing. Structures
CUPS 1.1.19 ppd_attr_sDescriptionPPD Attribute Structure Definition
struct ppd_attr_s Members
ppd_choice_sDescriptionOption choices Definition
struct ppd_choice_s Members
CUPS 1.2 ppd_coption_sDescriptionCustom Option Definition
struct ppd_coption_s Members
CUPS 1.2 ppd_cparam_sDescriptionCustom Parameter Definition
struct ppd_cparam_s Members
ppd_emul_sDescriptionEmulators Definition
struct ppd_emul_s Members
ppd_file_sDescriptionPPD File Definition
struct ppd_file_s Members
ppd_group_sDescriptionGroups Definition
struct ppd_group_s Members
ppd_option_sDescriptionOptions Definition
struct ppd_option_s Members
ppd_profile_sDescriptionsRGB Color Profiles Definition
struct ppd_profile_s Members
ppd_size_sDescriptionPage Sizes Definition
struct ppd_size_s Members
Types
CUPS 1.1.19 ppd_attr_tDescriptionPPD Attribute Structure Definitiontypedef struct ppd_attr_s ppd_attr_t; ppd_choice_tDescriptionOption choices Definitiontypedef struct ppd_choice_s ppd_choice_t; ppd_const_tDescriptionConstraints Definitiontypedef struct ppd_const_t; CUPS 1.2 ppd_coption_tDescriptionCustom Option Definitiontypedef struct ppd_coption_s ppd_coption_t; CUPS 1.2 ppd_cparam_tDescriptionCustom Parameter Definitiontypedef struct ppd_cparam_s ppd_cparam_t; CUPS 1.2 ppd_cplimit_tDescriptionCustom Parameter Limit Definitiontypedef union ppd_cplimit_u ppd_cplimit_t; CUPS 1.2 ppd_cptype_tDescriptionCustom Parameter Type Definitiontypedef enum ppd_cptype_e ppd_cptype_t; CUPS 1.2 ppd_cpvalue_tDescriptionCustom Parameter Value Definitiontypedef union ppd_cpvalue_u ppd_cpvalue_t; ppd_emul_tDescriptionEmulators Definitiontypedef struct ppd_emul_s ppd_emul_t; ppd_file_tDescriptionPPD File Definitiontypedef struct ppd_file_s ppd_file_t; ppd_group_tDescriptionGroups Definitiontypedef struct ppd_group_s ppd_group_t; ppd_option_tDescriptionOptions Definitiontypedef struct ppd_option_s ppd_option_t; ppd_profile_tDescriptionsRGB Color Profiles Definitiontypedef struct ppd_profile_s ppd_profile_t; ppd_section_tDescriptionOrder dependency sections Definitiontypedef enum ppd_section_e ppd_section_t; ppd_size_tDescriptionPage Sizes Definitiontypedef struct ppd_size_s ppd_size_t; ppd_ui_tDescriptionUI Types Definitiontypedef enum ppd_ui_e ppd_ui_t; Unions
CUPS 1.2 ppd_cplimit_uDescriptionCustom Parameter Limit Definition
union ppd_cplimit_u Members
CUPS 1.2 ppd_cpvalue_uDescriptionCustom Parameter Value Definition
union ppd_cpvalue_u Members
|
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0216 ]-- |