Lines Matching refs:altsvc
33 #include "altsvc.h"
86 static void altsvc_free(struct altsvc *as)
93 static struct altsvc *altsvc_createid(const char *srchost,
100 struct altsvc *as = calloc(1, sizeof(struct altsvc));
147 static struct altsvc *altsvc_create(char *srchost,
187 struct altsvc *as;
215 /* we need a private copy of the file name so that the altsvc cache file
250 * Write this single altsvc entry to a single output line
253 static CURLcode altsvc_out(struct altsvc *as, FILE *fp)
299 * Curl_altsvc_init() creates a new altsvc cache.
343 * Curl_altsvc_cleanup() frees an altsvc cache instance and all associated
351 struct altsvcinfo *altsvc = *altsvcp;
352 for(e = altsvc->list.head; e; e = n) {
353 struct altsvc *as = e->ptr;
357 free(altsvc->filename);
358 free(altsvc);
364 * Curl_altsvc_save() writes the altsvc cache to a file.
367 struct altsvcinfo *altsvc, const char *file)
375 if(!altsvc)
380 if(!file && altsvc->filename)
381 file = altsvc->filename;
383 if((altsvc->flags & CURLALTSVC_READONLYFILE) || !file || !file[0])
392 for(e = altsvc->list.head; e; e = n) {
393 struct altsvc *as = e->ptr;
454 struct altsvc *as = e->ptr;
504 struct altsvc *as;
685 struct altsvc **dstentry,
696 struct altsvc *as = e->ptr;