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

Function cupsGetPPD2

cups/ppd-util.c:82–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 */
81
82const char * /* O - Filename for PPD file */
83cupsGetPPD2(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */
84 const char *name) /* I - Destination name */
85{
86 _ppd_globals_t *pg = _ppdGlobals(); /* Pointer to library globals */
87 time_t modtime = 0; /* Modification time */
88
89
90 pg->ppd_filename[0] = '\0';
91
92 if (cupsGetPPD3(http, name, &modtime, pg->ppd_filename,
93 sizeof(pg->ppd_filename)) == HTTP_STATUS_OK)
94 return (pg->ppd_filename);
95 else
96 return (NULL);
97}
98
99
100/*

Callers 2

do_set_optionsFunction · 0.85
list_optionsFunction · 0.85

Calls 2

_ppdGlobalsFunction · 0.85
cupsGetPPD3Function · 0.85

Tested by

no test coverage detected