Home | History | Annotate | Download | only in filter

Lines Matching defs:ppd

18 #include <cups/ppd.h>
26 static int auto_configure(ppd_file_t *ppd, const char *user);
27 static void begin_ps(ppd_file_t *ppd, const char *user);
28 static void end_ps(ppd_file_t *ppd);
29 static void print_self_test_page(ppd_file_t *ppd, const char *user);
30 static void report_levels(ppd_file_t *ppd, const char *user);
46 ppd_file_t *ppd; /* PPD file */
67 * Open the PPD file...
70 if ((ppd = ppdOpenFile(getenv("PPD"))) == NULL)
72 fputs("ERROR: Unable to open PPD file!\n", stderr);
104 status |= auto_configure(ppd, argv[2]);
106 print_self_test_page(ppd, argv[2]);
108 report_levels(ppd, argv[2]);
127 auto_configure(ppd_file_t *ppd, /* I - PPD file */
131 ppd_option_t *option; /* Current option in PPD */
158 begin_ps(ppd, user);
193 * Then loop through every option in the PPD file and ask for the current
199 for (option = ppdFirstOption(ppd); option; option = ppdNextOption(ppd))
207 if ((attr = ppdFindAttr(ppd, buffer, NULL)) == NULL || !attr->value)
349 * PostScript code for this option in the PPD is broken; show the
375 fprintf(stderr, "PPD: Default%s=%s\n", option->keyword, buffer);
397 end_ps(ppd);
416 begin_ps(ppd_file_t *ppd, /* I - PPD file */
421 if (ppd->jcl_begin)
423 fputs(ppd->jcl_begin, stdout);
424 fputs(ppd->jcl_ps, stdout);
439 end_ps(ppd_file_t *ppd) /* I - PPD file */
441 if (ppd->jcl_end)
442 fputs(ppd->jcl_end, stdout);
455 print_self_test_page(ppd_file_t *ppd, /* I - PPD file */
462 begin_ps(ppd, user);
490 end_ps(ppd);
499 report_levels(ppd_file_t *ppd, /* I - PPD file */
506 begin_ps(ppd, user);
517 end_ps(ppd);