printers: Cache PPD files for later use

Don't get PPD file from CUPS server every time user needs
an information from it. Have PPD files stored on disk and
delete them on exit.
This commit is contained in:
Marek Kasik 2011-04-22 14:30:26 +02:00
parent 565258d385
commit 7b830a3c6a
3 changed files with 47 additions and 27 deletions

View file

@ -51,7 +51,7 @@ ipp_t *execute_maintenance_command (const char *printer_name,
int ccGetAllowedUsers (gchar ***allowed_users,
const char *printer_name);
gchar *get_ppd_attribute (const gchar *printer_name,
gchar *get_ppd_attribute (const gchar *ppd_file_name,
const gchar *attribute_name);
void cancel_cups_subscription (gint id);