MCPcopy Create free account
hub / github.com/OpenPrinting/cups / cupsGetPPD

Function cupsGetPPD

cups/ppd-util.c:48–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 */
47
48const char * /* O - Filename for PPD file */
49cupsGetPPD(const char *name) /* I - Destination name */
50{
51 _ppd_globals_t *pg = _ppdGlobals(); /* Pointer to library globals */
52 time_t modtime = 0; /* Modification time */
53
54
55 /*
56 * Return the PPD file...
57 */
58
59 pg->ppd_filename[0] = '\0';
60
61 if (cupsGetPPD3(CUPS_HTTP_DEFAULT, name, &modtime, pg->ppd_filename,
62 sizeof(pg->ppd_filename)) == HTTP_STATUS_OK)
63 return (pg->ppd_filename);
64 else
65 return (NULL);
66}
67
68
69/*

Callers 3

set_printer_optionsFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 2

_ppdGlobalsFunction · 0.85
cupsGetPPD3Function · 0.85

Tested by 2

mainFunction · 0.68
mainFunction · 0.68