Lines Matching defs:cache
277 cache_t *cache = NULL;
364 if ((cache = (cache_t *)calloc(1, sizeof (*cache))) == NULL)
367 if ((cache->printer = (printer_t *)calloc(1, sizeof (*cache->printer)))
371 cache->printer->attributes = attributes;
372 svc->cache = cache;
383 list_append(&cache->jobs, job);
397 time(&cache->timestamp);
408 if (svc->cache != NULL) { /* this should be time based */
409 if (svc->cache->jobs == NULL) {
410 free(svc->cache);
411 svc->cache = NULL;
434 if (svc->cache != NULL) {
435 *printer = svc->cache->printer;
451 if (svc->cache != NULL) {
452 *jobs = svc->cache->jobs;
458 * cache jobs is free()-ed in
460 * papiPrinterListJobs() cache printer is
463 * cache by freeing the cache.
465 free(svc->cache);
466 svc->cache = NULL;