| 46 | */ |
| 47 | |
| 48 | const char * /* O - Filename for PPD file */ |
| 49 | cupsGetPPD(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 | /* |