# ==========================
pkgppdincludedir = $(includedir)/ppd
pkgppdinclude_DATA = \
- ppd/ppd.h
+ ppd/ppd.h
lib_LTLIBRARIES = libppd.la
ppd/language.c \
ppd/language-private.h \
ppd/raster-interpret.c \
- ppd/raster-interstub.c \
ppd/raster-error.c \
ppd/raster-private.h \
ppd/string.c \
# =================
pkgfontembedincludedir = $(includedir)/fontembed
pkgfontembedinclude_DATA = \
- fontembed/bitset.h \
- fontembed/embed.h \
- fontembed/fontfile.h \
- fontembed/iofn.h \
- fontembed/sfnt.h
+ fontembed/bitset.h \
+ fontembed/embed.h \
+ fontembed/fontfile.h \
+ fontembed/iofn.h \
+ fontembed/sfnt.h
lib_LTLIBRARIES += libfontembed.la
gstoraster_CFLAGS = \
$(CUPS_CFLAGS) \
$(LIBQPDF_CFLAGS) \
- -I$(srcdir)/cupsfilters/
+ -I$(srcdir)/cupsfilters/ \
+ -I$(srcdir)/ppd/
gstoraster_LDADD = \
$(CUPS_LIBS) \
$(LIBQPDF_LIBS) \
- libcupsfilters.la
+ libcupsfilters.la \
+ libppd.la
imagetopdf_SOURCES = \
cupsfilters/image.h \
$(CUPS_CFLAGS) \
$(LCMS_CFLAGS) \
$(LIBQPDF_CFLAGS) \
- -I$(srcdir)/cupsfilters/
+ -I$(srcdir)/cupsfilters/ \
+ -I$(srcdir)/ppd/
rastertopdf_LDADD = \
$(CUPS_LIBS) \
$(LCMS_LIBS) \
$(LIBQPDF_LIBS) \
- libcupsfilters.la
+ libcupsfilters.la \
+ libppd.la
mupdftoraster_SOURCES = \
- filter/mupdftoraster.c
+ filter/mupdftoraster.c
mupdftoraster_CFLAGS = \
- $(CUPS_CFLAGS) \
- -I$(srcdir)/cupsfilters/
+ $(CUPS_CFLAGS) \
+ -I$(srcdir)/cupsfilters/ \
+ -I$(srcdir)/ppd/
mupdftoraster_LDADD = \
- $(CUPS_LIBS) \
- libcupsfilters.la
+ $(CUPS_LIBS) \
+ libcupsfilters.la \
+ libppd.la
rastertops_SOURCES = \
filter/rastertops.c
rastertops_CFLAGS = \
$(CUPS_CFLAGS) \
- -I$(srcdir)/cupsfilters/
+ -I$(srcdir)/cupsfilters/ \
+ -I$(srcdir)/ppd/
rastertops_LDADD = \
$(CUPS_LIBS) \
-lz \
- libcupsfilters.la
+ libcupsfilters.la \
+ libppd.la
sys5ippprinter_SOURCES = \
filter/common.c \
filter/rastertoescpx.c
rastertoescpx_CFLAGS = \
$(CUPS_CFLAGS) \
- -I$(srcdir)/cupsfilters/
+ -I$(srcdir)/cupsfilters/ \
+ -I$(srcdir)/ppd/
rastertoescpx_LDADD = \
$(CUPS_LIBS) \
- libcupsfilters.la
+ libcupsfilters.la \
+ libppd.la
rastertopclx_SOURCES = \
cupsfilters/driver.h \
rastertopclx_CFLAGS = \
$(CUPS_CFLAGS) \
$(LIBPNG_CFLAGS) \
- -I$(srcdir)/cupsfilters/
+ -I$(srcdir)/cupsfilters/ \
+ -I$(srcdir)/ppd/
rastertopclx_LDADD = \
$(CUPS_LIBS) \
$(LIBPNG_LIBS) \
- libcupsfilters.la
+ libcupsfilters.la \
+ libppd.la
test_pdf1_SOURCES = \
filter/pdfutils.c \
noptions = cupsParseOptions(argv[5], 0, &options);
if (ppd) {
ppdMarkDefaults(ppd);
- cupsMarkOptions(ppd, noptions, options);
+ ppdMarkOptions(ppd, noptions, options);
}
banner = banner_new_from_file(argc == 7 ? argv[6] : "-", &noptions, &options);
ppd = ppdOpenFile(getenv("PPD"));
ppdMarkDefaults(ppd);
- cupsMarkOptions(ppd, num_options, options);
+ ppdMarkOptions(ppd, num_options, options);
if ((pagesize = ppdPageSize(ppd, NULL)) != NULL)
{
if (ppd) {
ppdMarkDefaults (ppd);
- cupsMarkOptions (ppd, num_options, options);
+ ppdMarkOptions (ppd, num_options, options);
}
if (argc == 6) {
if (ppd)
{
- cupsRasterInterpretPPD(&h,ppd,num_options,options,0);
+ ppdRasterInterpretPPD(&h,ppd,num_options,options,0);
#ifdef HAVE_CUPS_1_7
if (outformat == OUTPUT_FORMAT_RASTER)
{
* Set the needed options in the page header...
*/
- if (cupsRasterInterpretPPD(&header, ppd, num_options, options, raster_cb))
+ if (ppdRasterInterpretPPD(&header, ppd, num_options, options, raster_cb))
{
fputs("ERROR: The page setup information was not valid.\n", stderr);
fprintf(stderr, "DEBUG: %s\n", cupsRasterErrorString());
if (ppd) {
ppdMarkDefaults (ppd);
- cupsMarkOptions (ppd, num_options, options);
+ ppdMarkOptions (ppd, num_options, options);
}
if (argc == 6) {
calls.
Make also sure that the width and height of the page in pixels is
the size of the full page (as PWG Raster and MuPDF require it) and not
- only the printable area (as cupsRasterInterpretPPD() sets, to fulfill
+ only the printable area (as ppdRasterInterpretPPD() sets, to fulfill
CUPS Raster standard) */
if (ppd) {
- cupsRasterInterpretPPD(&h, ppd, num_options, options, 0);
+ ppdRasterInterpretPPD(&h, ppd, num_options, options, 0);
h.cupsWidth = h.HWResolution[0] * h.PageSize[0] / 72;
h.cupsHeight = h.HWResolution[1] * h.PageSize[1] / 72;
#ifdef HAVE_CUPS_1_7
num_options = cupsParseOptions(argv[5],0,&options);
if (ppd) {
ppdMarkDefaults(ppd);
- cupsMarkOptions(ppd,num_options,options);
+ ppdMarkOptions(ppd,num_options,options);
// handleRqeuiresPageRegion();
- cupsRasterInterpretPPD(&header,ppd,num_options,options,0);
+ ppdRasterInterpretPPD(&header,ppd,num_options,options,0);
if (header.Duplex) {
/* analyze options relevant to Duplex */
const char *backside = "";
ppd=ppdOpenFile(getenv("PPD")); // getenv (and thus ppd) may be null. This will not cause problems.
ppdMarkDefaults(ppd);
- cupsMarkOptions(ppd,num_options,options);
+ ppdMarkOptions(ppd,num_options,options);
getParameters(ppd,num_options,options,param);
calculate(ppd,param);
if (ppd)
{
ppdMarkDefaults(ppd);
- cupsMarkOptions(ppd, num_options, options);
+ ppdMarkOptions(ppd, num_options, options);
}
if ((val = cupsGetOption("make-and-model", num_options, options)) != NULL)
if (ppd)
{
- /* Ignore error exits of cupsRasterInterpretPPD(), if it found a resolution
+ /* Ignore error exits of ppdRasterInterpretPPD(), if it found a resolution
setting before erroring it is OK for us */
- cupsRasterInterpretPPD(&header, ppd, num_options, options, NULL);
+ ppdRasterInterpretPPD(&header, ppd, num_options, options, NULL);
/* 100 dpi is default, this means that if we have 100 dpi here this
method failed to find the printing resolution */
if (header.HWResolution[0] > 100 && header.HWResolution[1] > 100)
options = NULL;
num_options = cupsParseOptions(argv[5],0,&options);
if (ppd) {
- cupsMarkOptions(ppd,num_options,options);
+ ppdMarkOptions(ppd,num_options,options);
handleRqeuiresPageRegion();
- cupsRasterInterpretPPD(&header,ppd,num_options,options,0);
+ ppdRasterInterpretPPD(&header,ppd,num_options,options,0);
attr = ppdFindAttr(ppd,"pdftorasterRenderingIntent",NULL);
if (attr != NULL && attr->value != NULL) {
if (strcasecmp(attr->value,"PERCEPTUAL") != 0) {
}
ppdMarkDefaults(ppd);
- cupsMarkOptions(ppd, num_options, options);
+ ppdMarkOptions(ppd, num_options, options);
/*
* Open the page stream...
if (ppd)
{
ppdMarkDefaults(ppd);
- cupsMarkOptions(ppd, num_options, options);
+ ppdMarkOptions(ppd, num_options, options);
}
else
{
if (ppd)
{
ppdMarkDefaults(ppd);
- cupsMarkOptions(ppd, num_options, options);
+ ppdMarkOptions(ppd, num_options, options);
}
else
{
if (ppd)
{
ppdMarkDefaults(ppd);
- cupsMarkOptions(ppd, num_options, options);
+ ppdMarkOptions(ppd, num_options, options);
}
else
{
if (ppd)
{
ppdMarkDefaults(ppd);
- cupsMarkOptions(ppd, num_options, options);
+ ppdMarkOptions(ppd, num_options, options);
}
/*
/*
- * 'cupsGetConflicts()' - Get a list of conflicting options in a marked PPD.
+ * 'ppdGetConflicts()' - Get a list of conflicting options in a marked PPD.
*
* This function gets a list of options that would conflict if "option" and
* "choice" were marked in the PPD. You would typically call this function
*/
int /* O - Number of conflicting options */
-cupsGetConflicts(
+ppdGetConflicts(
ppd_file_t *ppd, /* I - PPD file */
const char *option, /* I - Option to test */
const char *choice, /* I - Choice to test */
/*
- * 'cupsResolveConflicts()' - Resolve conflicts in a marked PPD.
+ * 'ppdResolveConflicts()' - Resolve conflicts in a marked PPD.
*
* This function attempts to resolve any conflicts in a marked PPD, returning
* a list of option changes that are required to resolve them. On input,
* If option conflicts cannot be resolved, "num_options" and "options" are not
* changed and 0 is returned.
*
- * When resolving conflicts, @code cupsResolveConflicts@ does not consider
+ * When resolving conflicts, @code ppdResolveConflicts@ does not consider
* changes to the current page size (@code media@, @code PageSize@, and
* @code PageRegion@) or to the most recent option specified in "option".
* Thus, if the only way to resolve a conflict is to change the page size
- * or the option the user most recently changed, @code cupsResolveConflicts@
+ * or the option the user most recently changed, @code ppdResolveConflicts@
* will return 0 to indicate it was unable to resolve the conflicts.
*
- * The @code cupsResolveConflicts@ function uses one of two sources of option
+ * The @code ppdResolveConflicts@ function uses one of two sources of option
* constraint information. The preferred constraint information is defined by
* @code cupsUIConstraints@ and @code cupsUIResolver@ attributes - in this
* case, the PPD file provides constraint resolution actions.
*/
int /* O - 1 on success, 0 on failure */
-cupsResolveConflicts(
+ppdResolveConflicts(
ppd_file_t *ppd, /* I - PPD file */
const char *option, /* I - Newly selected option or @code NULL@ for none */
const char *choice, /* I - Newly selected choice or @code NULL@ for none */
* Resolver loop!
*/
- DEBUG_printf(("1cupsResolveConflicts: Resolver loop with %s!",
+ DEBUG_printf(("1ppdResolveConflicts: Resolver loop with %s!",
consts->resolver));
goto error;
}
if ((resolver = ppdFindAttr(ppd, "cupsUIResolver",
consts->resolver)) == NULL)
{
- DEBUG_printf(("1cupsResolveConflicts: Resolver %s not found!",
+ DEBUG_printf(("1ppdResolveConflicts: Resolver %s not found!",
consts->resolver));
goto error;
}
if (!resolver->value)
{
- DEBUG_printf(("1cupsResolveConflicts: Resolver %s has no value!",
+ DEBUG_printf(("1ppdResolveConflicts: Resolver %s has no value!",
consts->resolver));
goto error;
}
if (!changed)
{
- DEBUG_puts("1cupsResolveConflicts: Unable to automatically resolve "
+ DEBUG_puts("1ppdResolveConflicts: Unable to automatically resolve "
"constraint!");
goto error;
}
cupsArrayRestore(ppd->sorted_attrs);
- DEBUG_printf(("1cupsResolveConflicts: Returning %d options:", num_newopts));
+ DEBUG_printf(("1ppdResolveConflicts: Returning %d options:", num_newopts));
#ifdef DEBUG
for (i = 0; i < num_newopts; i ++)
- DEBUG_printf(("1cupsResolveConflicts: options[%d]: %s=%s", i,
+ DEBUG_printf(("1ppdResolveConflicts: options[%d]: %s=%s", i,
newopts[i].name, newopts[i].value));
#endif /* DEBUG */
cupsArrayRestore(ppd->sorted_attrs);
- DEBUG_puts("1cupsResolveConflicts: Unable to resolve conflicts!");
+ DEBUG_puts("1ppdResolveConflicts: Unable to resolve conflicts!");
return (0);
}
/*
- * 'cupsMarkOptions()' - Mark command-line options in a PPD file.
+ * 'ppdMarkOptions()' - Mark command-line options in a PPD file.
*
* This function maps the IPP "finishings", "media", "mirror",
* "multiple-document-handling", "output-bin", "print-color-mode",
*/
int /* O - 1 if conflicts exist, 0 otherwise */
-cupsMarkOptions(
+ppdMarkOptions(
ppd_file_t *ppd, /* I - PPD file */
int num_options, /* I - Number of options */
cups_option_t *options) /* I - Options */
ppd_choice_t *c; /* Current choice */
- DEBUG_printf(("2cupsMarkOptions: %s", title));
+ DEBUG_printf(("2ppdMarkOptions: %s", title));
for (c = (ppd_choice_t *)cupsArrayFirst(ppd->marked);
c;
c = (ppd_choice_t *)cupsArrayNext(ppd->marked))
- DEBUG_printf(("2cupsMarkOptions: %s=%s", c->option->keyword, c->choice));
+ DEBUG_printf(("2ppdMarkOptions: %s=%s", c->option->keyword, c->choice));
}
#endif /* DEBUG */
* Prototypes...
*/
-extern int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options);
+/* cupsMarkOptions replaced by ppdMarkOptions in libppd */
+/* extern int cupsMarkOptions(ppd_file_t *ppd, int num_options,
+ cups_option_t *options); */
+/* Definition for backward compatibility, will be removed soon */
+#define cupsMarkOptions cupsMarkOptions_USE_ppdMarkOptions_INSTEAD
extern void ppdClose(ppd_file_t *ppd);
extern int ppdCollect(ppd_file_t *ppd, ppd_section_t section,
extern void ppdSetConformance(ppd_conform_t c);
/**** New in CUPS 1.2 ****/
-extern int cupsRasterInterpretPPD(cups_page_header2_t *h,
+/* cupsRasterInterpretPPD replaced by ppdRasterInterpretPPD in libppd */
+/* extern int cupsRasterInterpretPPD(cups_page_header2_t *h,
ppd_file_t *ppd,
int num_options,
cups_option_t *options,
- cups_interpret_cb_t func);
+ cups_interpret_cb_t func); */
+/* Definition for backward compatibility, will be removed soon */
+#define cupsRasterInterpretPPD cupsRasterInterpretPPD_USE_ppdRasterInterpretPPD_INSTEAD
+
extern int ppdCollect2(ppd_file_t *ppd, ppd_section_t section,
float min_order, ppd_choice_t ***choices);
extern int ppdEmitAfterOrder(ppd_file_t *ppd, FILE *fp,
size_t bufsize);
/**** New in CUPS 1.4/macOS 10.6 ****/
-extern int cupsGetConflicts(ppd_file_t *ppd, const char *option,
+/* cupsGetConflicts replaced by ppdGetConflicts in libppd */
+/* extern int cupsGetConflicts(ppd_file_t *ppd, const char *option,
const char *choice,
- cups_option_t **options);
-extern int cupsResolveConflicts(ppd_file_t *ppd,
+ cups_option_t **options); */
+/* Definition for backward compatibility, will be removed soon */
+#define cupsGetConflicts cupsGetConflicts_USE_ppdGetConflicts_INSTEAD
+
+/* cupsResolveConflicts replaced by ppdResolveConflicts in libppd */
+/* extern int cupsResolveConflicts(ppd_file_t *ppd,
const char *option,
const char *choice,
int *num_options,
- cups_option_t **options);
+ cups_option_t **options); */
+/* Definition for backward compatibility, will be removed soon */
+#define cupsResolveConflicts cupsResolveConflicts_USE_ppdResolveConflicts_INSTEAD
+
extern int ppdInstallableConflict(ppd_file_t *ppd,
const char *option,
const char *choice);
/**** New in libppd (cups-filters) ****/
-/**** New in cups-filters 1.0.28 ****/
+/**** New in cups-filters 1.0.28: Renamed functions from original CUPS API ****/
+extern int ppdMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options);
+extern int ppdRasterInterpretPPD(cups_page_header2_t *h,
+ ppd_file_t *ppd,
+ int num_options,
+ cups_option_t *options,
+ cups_interpret_cb_t func);
+extern int ppdGetConflicts(ppd_file_t *ppd, const char *option,
+ const char *choice,
+ cups_option_t **options);
+extern int ppdResolveConflicts(ppd_file_t *ppd,
+ const char *option,
+ const char *choice,
+ int *num_options,
+ cups_option_t **options);
+
+/**** New in cups-filters 1.0.28: Formerly CUPS-private functions ****/
extern int ppdConvertOptions(ipp_t *request, ppd_file_t *ppd, ppd_cache_t *pc, ipp_attribute_t *media_col_sup, ipp_attribute_t *doc_handling_sup, ipp_attribute_t *print_color_mode_sup, const char *user, const char *format, int copies, int num_options, cups_option_t *options);
extern int ppdRasterExecPS(cups_page_header2_t *h, int *preferred_bits, const char *code);
extern int ppdRasterInterpretPPD(cups_page_header2_t *h, ppd_file_t *ppd, int num_options, cups_option_t *options, cups_interpret_cb_t func);
* raster data.
*
*
- * @code cupsRasterInterpretPPD@ does not mark the options in the PPD using
+ * @code ppdRasterInterpretPPD@ does not mark the options in the PPD using
* the "num_options" and "options" arguments. Instead, mark the options with
- * @code cupsMarkOptions@ and @code ppdMarkOption@ prior to calling it -
+ * @code ppdMarkOptions@ and @code ppdMarkOption@ prior to calling it -
* this allows for per-page options without manipulating the options array.
*
* The "func" argument specifies an optional callback function that is
* requested attributes cannot be supported.
*
*
- * @code cupsRasterInterpretPPD@ supports a subset of the PostScript language.
+ * @code ppdRasterInterpretPPD@ supports a subset of the PostScript language.
* Currently only the @code [@, @code ]@, @code <<@, @code >>@, @code {@,
* @code }@, @code cleartomark@, @code copy@, @code dup@, @code index@,
* @code pop@, @code roll@, @code setpagedevice@, and @code stopped@ operators
/*
- * cupsRasterInterpretPPD stub for libppd.
+ * ppdRasterInterpretPPD stub for libppd.
*
* Copyright © 2018 by Apple Inc.
*
/*
- * 'cupsRasterInterpretPPD()' - Interpret PPD commands to create a page header.
+ * 'ppdRasterInterpretPPD()' - Interpret PPD commands to create a page header.
*
* This function is used by raster image processing (RIP) filters like
* cgpdftoraster and imagetoraster when writing CUPS raster data for a page.
* raster data.
*
*
- * @code cupsRasterInterpretPPD@ does not mark the options in the PPD using
+ * @code ppdRasterInterpretPPD@ does not mark the options in the PPD using
* the "num_options" and "options" arguments. Instead, mark the options with
- * @code cupsMarkOptions@ and @code ppdMarkOption@ prior to calling it -
+ * @code ppdMarkOptions@ and @code ppdMarkOption@ prior to calling it -
* this allows for per-page options without manipulating the options array.
*
* The "func" argument specifies an optional callback function that is
* requested attributes cannot be supported.
*
*
- * @code cupsRasterInterpretPPD@ supports a subset of the PostScript language.
+ * @code ppdRasterInterpretPPD@ supports a subset of the PostScript language.
* Currently only the @code [@, @code ]@, @code <<@, @code >>@, @code {@,
* @code }@, @code cleartomark@, @code copy@, @code dup@, @code index@,
* @code pop@, @code roll@, @code setpagedevice@, and @code stopped@ operators
*/
int /* O - 0 on success, -1 on failure */
-cupsRasterInterpretPPD(
+ppdRasterInterpretPPD(
cups_page_header2_t *h, /* O - Page header to create */
ppd_file_t *ppd, /* I - PPD file */
int num_options, /* I - Number of options */
* Test constraints...
*/
- fputs("cupsGetConflicts(InputSlot=Envelope): ", stdout);
+ fputs("ppdGetConflicts(InputSlot=Envelope): ", stdout);
ppdMarkOption(ppd, "PageSize", "Letter");
- num_options = cupsGetConflicts(ppd, "InputSlot", "Envelope", &options);
+ num_options = ppdGetConflicts(ppd, "InputSlot", "Envelope", &options);
if (num_options != 2 ||
(val = cupsGetOption("PageRegion", num_options, options)) == NULL ||
_ppd_strcasecmp(val, "Letter") ||
status ++;
}
- fputs("cupsResolveConflicts(InputSlot=Envelope): ", stdout);
+ fputs("ppdResolveConflicts(InputSlot=Envelope): ", stdout);
num_options = 0;
options = NULL;
- if (!cupsResolveConflicts(ppd, "InputSlot", "Envelope", &num_options,
+ if (!ppdResolveConflicts(ppd, "InputSlot", "Envelope", &num_options,
&options))
{
puts("FAIL (Unable to resolve)");
cupsFreeOptions(num_options, options);
- fputs("cupsResolveConflicts(No option/choice): ", stdout);
+ fputs("ppdResolveConflicts(No option/choice): ", stdout);
num_options = 0;
options = NULL;
- if (cupsResolveConflicts(ppd, NULL, NULL, &num_options, &options) &&
+ if (ppdResolveConflicts(ppd, NULL, NULL, &num_options, &options) &&
num_options == 1 && !_ppd_strcasecmp(options[0].name, "InputSlot") &&
!_ppd_strcasecmp(options[0].value, "Tray"))
puts("PASS (Resolved by changing InputSlot)");
}
/*
- * cupsMarkOptions with PWG and IPP size names.
+ * ppdMarkOptions with PWG and IPP size names.
*/
- fputs("cupsMarkOptions(media=iso-a4): ", stdout);
+ fputs("ppdMarkOptions(media=iso-a4): ", stdout);
num_options = cupsAddOption("media", "iso-a4", 0, &options);
- cupsMarkOptions(ppd, num_options, options);
+ ppdMarkOptions(ppd, num_options, options);
cupsFreeOptions(num_options, options);
size = ppdPageSize(ppd, NULL);
else
puts("PASS");
- fputs("cupsMarkOptions(media=na_letter_8.5x11in): ", stdout);
+ fputs("ppdMarkOptions(media=na_letter_8.5x11in): ", stdout);
num_options = cupsAddOption("media", "na_letter_8.5x11in", 0, &options);
- cupsMarkOptions(ppd, num_options, options);
+ ppdMarkOptions(ppd, num_options, options);
cupsFreeOptions(num_options, options);
size = ppdPageSize(ppd, NULL);
else
puts("PASS");
- fputs("cupsMarkOptions(media=oe_letter-fullbleed_8.5x11in): ", stdout);
+ fputs("ppdMarkOptions(media=oe_letter-fullbleed_8.5x11in): ", stdout);
num_options = cupsAddOption("media", "oe_letter-fullbleed_8.5x11in", 0,
&options);
- cupsMarkOptions(ppd, num_options, options);
+ ppdMarkOptions(ppd, num_options, options);
cupsFreeOptions(num_options, options);
size = ppdPageSize(ppd, NULL);
else
puts("PASS");
- fputs("cupsMarkOptions(media=A4): ", stdout);
+ fputs("ppdMarkOptions(media=A4): ", stdout);
num_options = cupsAddOption("media", "A4", 0, &options);
- cupsMarkOptions(ppd, num_options, options);
+ ppdMarkOptions(ppd, num_options, options);
cupsFreeOptions(num_options, options);
size = ppdPageSize(ppd, NULL);
* Custom sizes...
*/
- fputs("cupsMarkOptions(media=Custom.8x10in): ", stdout);
+ fputs("ppdMarkOptions(media=Custom.8x10in): ", stdout);
num_options = cupsAddOption("media", "Custom.8x10in", 0, &options);
- cupsMarkOptions(ppd, num_options, options);
+ ppdMarkOptions(ppd, num_options, options);
cupsFreeOptions(num_options, options);
size = ppdPageSize(ppd, NULL);
status ++;
}
- fputs("cupsResolveConflicts(Quality=Photo): ", stdout);
+ fputs("ppdResolveConflicts(Quality=Photo): ", stdout);
num_options = 0;
options = NULL;
- if (cupsResolveConflicts(ppd, "Quality", "Photo", &num_options,
+ if (ppdResolveConflicts(ppd, "Quality", "Photo", &num_options,
&options))
{
printf("FAIL (%d options:", num_options);
puts("PASS (Unable to resolve)");
cupsFreeOptions(num_options, options);
- fputs("cupsResolveConflicts(No option/choice): ", stdout);
+ fputs("ppdResolveConflicts(No option/choice): ", stdout);
num_options = 0;
options = NULL;
- if (cupsResolveConflicts(ppd, NULL, NULL, &num_options, &options) &&
+ if (ppdResolveConflicts(ppd, NULL, NULL, &num_options, &options) &&
num_options == 1 && !_ppd_strcasecmp(options->name, "Quality") &&
!_ppd_strcasecmp(options->value, "Normal"))
puts("PASS");
}
cupsFreeOptions(num_options, options);
- fputs("cupsResolveConflicts(loop test): ", stdout);
+ fputs("ppdResolveConflicts(loop test): ", stdout);
ppdMarkOption(ppd, "PageSize", "A4");
ppdMarkOption(ppd, "InputSlot", "Tray");
ppdMarkOption(ppd, "Quality", "Photo");
num_options = 0;
options = NULL;
- if (!cupsResolveConflicts(ppd, NULL, NULL, &num_options, &options))
+ if (!ppdResolveConflicts(ppd, NULL, NULL, &num_options, &options))
puts("PASS");
else if (num_options > 0)
{
}
ppdMarkDefaults(ppd);
- cupsMarkOptions(ppd, num_options, options);
+ ppdMarkOptions(ppd, num_options, options);
- if (cupsRasterInterpretPPD(&header, ppd, 0, NULL, NULL))
+ if (ppdRasterInterpretPPD(&header, ppd, 0, NULL, NULL))
{
puts("FAIL (error from function)");
puts(_ppdRasterErrorString());
break;
}
ppdMarkDefaults(ppd);
- cupsMarkOptions(ppd, p->num_options, p->options);
+ ppdMarkOptions(ppd, p->num_options, p->options);
if ((out = cupsTempFile2(buf, sizeof(buf))) == NULL) {
debug_printf("Unable to create temporary file!\n");
current_time = time(NULL);