Lines Matching refs:cache
277 cache_t *cache = NULL; in parse_lpd_query() local
364 if ((cache = (cache_t *)calloc(1, sizeof (*cache))) == NULL) in parse_lpd_query()
367 if ((cache->printer = (printer_t *)calloc(1, sizeof (*cache->printer))) in parse_lpd_query()
371 cache->printer->attributes = attributes; in parse_lpd_query()
372 svc->cache = cache; in parse_lpd_query()
383 list_append(&cache->jobs, job); in parse_lpd_query()
397 time(&cache->timestamp); in parse_lpd_query()
408 if (svc->cache != NULL) { /* this should be time based */ in cache_update()
409 if (svc->cache->jobs == NULL) { in cache_update()
410 free(svc->cache); in cache_update()
411 svc->cache = NULL; in cache_update()
434 if (svc->cache != NULL) { in lpd_find_printer_info()
435 *printer = svc->cache->printer; in lpd_find_printer_info()
451 if (svc->cache != NULL) { in lpd_find_jobs_info()
452 *jobs = svc->cache->jobs; in lpd_find_jobs_info()
465 free(svc->cache); in lpd_find_jobs_info()
466 svc->cache = NULL; in lpd_find_jobs_info()