Home | History | Annotate | Download | only in cups

Lines Matching defs:ppd

19 #include "ppd-private.h"
27 static int test_pagesize(_ppd_cache_t *pc, ppd_file_t *ppd,
29 static int test_ppd_cache(_ppd_cache_t *pc, ppd_file_t *ppd);
41 const char *ppdfile; /* PPD filename */
42 ppd_file_t *ppd; /* PPD file */
43 _ppd_cache_t *pc; /* PPD cache and PWG mapping data */
55 puts("Usage: ./testpwg filename.ppd [jobfile]");
62 if ((ppd = ppdOpenFile(ppdfile)) == NULL)
77 fputs("_ppdCacheCreateWithPPD(ppd): ", stdout);
78 if ((pc = _ppdCacheCreateWithPPD(ppd)) == NULL)
86 status += test_ppd_cache(pc, ppd);
352 ppd_file_t *ppd, /* I - PPD file */
353 const char *ppdsize) /* I - PPD page size */
360 if (ppdPageSize(ppd, ppdsize))
405 * 'test_ppd_cache()' - Test the PPD cache functions.
410 ppd_file_t *ppd) /* I - PPD file */
460 strcmp(size2->map.ppd, size->map.ppd) ||
475 if (strcmp(size2->map.ppd, size->map.ppd))
476 printf(" SAVED size->map.ppd=\"%s\", ORIG "
477 "size->map.ppd=\"%s\"\n", size2->map.ppd, size->map.ppd);
513 strcmp(map2->ppd, map->ppd))
522 if (strcmp(map2->ppd, map->ppd))
523 printf(" SAVED source->ppd=\"%s\", ORIG source->ppd=\"%s\"\n",
524 map2->ppd, map->ppd);
536 strcmp(map2->ppd, map->ppd))
545 if (strcmp(map2->ppd, map->ppd))
546 printf(" SAVED type->ppd=\"%s\", ORIG type->ppd=\"%s\"\n",
547 map2->ppd, map->ppd);
565 status += test_pagesize(pc, ppd, "Letter");
566 status += test_pagesize(pc, ppd, "na-letter");
567 status += test_pagesize(pc, ppd, "A4");
568 status += test_pagesize(pc, ppd, "iso-a4");