Lines Matching defs:client
200 /* The client object whom we're serving. */
201 debuginfod_client *client;
208 /* Response http headers for this client handle, sent from the server */
224 /* update the client object */
230 free (d->client->url);
231 d->client->url = strdup(url); /* ok if fails */
377 add_default_headers(debuginfod_client *client)
379 if (client->user_agent_set_p)
450 (void) debuginfod_add_http_header (client, ua);
462 add_headers_from_file(debuginfod_client *client, const char* filename)
464 int vds = client->verbose_fd;
490 int rc = debuginfod_add_http_header(client, s);
554 if (data->client && data->client->verbose_fd >= 0)
555 dprintf (data->client->verbose_fd, "header %.*s", (int)numitems, buffer);
1017 /* Also check for EEXIST and S_ISDIR in case another client just
1298 data[i].client = c;
1812 debuginfod_client *client;
1814 client = calloc (1, size);
1816 if (client != NULL)
1819 client->progressfn = default_progressfn;
1821 client->verbose_fd = STDERR_FILENO;
1823 client->verbose_fd = -1;
1826 client->server_mhandle = curl_multi_init ();
1827 if (client->server_mhandle == NULL)
1836 free (client);
1837 client = NULL;
1840 return client;
1844 debuginfod_set_user_data(debuginfod_client *client,
1847 client->user_data = data;
1851 debuginfod_get_user_data(debuginfod_client *client)
1853 return client->user_data;
1857 debuginfod_get_url(debuginfod_client *client)
1859 return client->url;
1863 debuginfod_get_headers(debuginfod_client *client)
1865 return client->winning_headers;
1869 debuginfod_end (debuginfod_client *client)
1871 if (client == NULL)
1874 curl_multi_cleanup (client->server_mhandle);
1875 curl_slist_free_all (client->headers);
1876 free (client->winning_headers);
1877 free (client->url);
1878 free (client);
1882 debuginfod_find_debuginfo (debuginfod_client *client,
1886 return debuginfod_query_server(client, build_id, build_id_len,
1893 debuginfod_find_executable(debuginfod_client *client,
1897 return debuginfod_query_server(client, build_id, build_id_len,
1902 int debuginfod_find_source(debuginfod_client *client,
1906 return debuginfod_query_server(client, build_id, build_id_len,
1911 debuginfod_find_section (debuginfod_client *client,
1915 int rc = debuginfod_query_server(client, build_id, build_id_len,
1927 fd = debuginfod_find_debuginfo (client, build_id, build_id_len, &tmp_path);
1928 if (client->progressfn_cancel)
1948 fd = debuginfod_find_executable (client, build_id,
1962 int debuginfod_add_http_header (debuginfod_client *client, const char* header)
1974 struct curl_slist *temp = curl_slist_append (client->headers, header);
1981 client->user_agent_set_p = 1;
1983 client->headers = temp;
1989 debuginfod_set_progressfn(debuginfod_client *client,
1992 client->progressfn = fn;
1996 debuginfod_set_verbose_fd(debuginfod_client *client, int fd)
1998 client->verbose_fd = fd;