Searched refs:curl (Results 1 - 8 of 8) sorted by relevance

/systemd/src/import/
H A Dcurl-util.h22 #include <curl/curl.h>
33 CURLM *curl; member in struct:CurlGlue
38 void (*on_finished)(CurlGlue *g, CURL *curl, CURLcode code);
H A Dcurl-util.c21 #include "curl-util.h"
31 msg = curl_multi_info_read(g->curl, &k);
60 if (curl_multi_socket_action(g->curl, translated_fd, action, &k) < 0) {
69 static int curl_glue_socket_callback(CURLM *curl, curl_socket_t s, int action, void *userdata, void *socketp) { argument
75 assert(curl);
127 /* When curl needs to remove an fd from us it closes
140 sd_event_source_set_description(io, "curl-io");
170 if (curl_multi_socket_action(g->curl, CURL_SOCKET_TIMEOUT, 0, &k) != CURLM_OK) {
179 static int curl_glue_timer_callback(CURLM *curl, long timeout_ms, void *userdata) { argument
183 assert(curl);
[all...]
H A Dpull-job.h24 #include "curl-util.h"
69 CURL *curl; member in struct:PullJob
113 void pull_job_curl_on_finished(CurlGlue *g, CURL *curl, CURLcode result);
H A Dpull-job.c37 curl_glue_remove_and_free(j->glue, j->curl);
78 void pull_job_curl_on_finished(CurlGlue *g, CURL *curl, CURLcode result) { argument
84 if (curl_easy_getinfo(curl, CURLINFO_PRIVATE, (char **)&j) != CURLE_OK)
96 code = curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &status);
555 r = curl_glue_make(&j->curl, j->url, j);
586 if (curl_easy_setopt(j->curl, CURLOPT_HTTPHEADER, j->request_header) != CURLE_OK)
590 if (curl_easy_setopt(j->curl, CURLOPT_WRITEFUNCTION, pull_job_write_callback) != CURLE_OK)
593 if (curl_easy_setopt(j->curl, CURLOPT_WRITEDATA, j) != CURLE_OK)
596 if (curl_easy_setopt(j->curl, CURLOPT_HEADERFUNCTION, pull_job_header_callback) != CURLE_OK)
599 if (curl_easy_setopt(j->curl, CURLOPT_HEADERDAT
[all...]
H A Dpull-tar.c20 #include <curl/curl.h>
28 #include "curl-util.h"
H A Dpull-raw.c20 #include <curl/curl.h>
30 #include "curl-util.h"
/systemd/src/journal-remote/
H A Djournal-upload.c20 #include <curl/curl.h>
69 #define easy_setopt(curl, opt, value, level, cmd) \
71 code = curl_easy_setopt(curl, opt, value); \
217 CURL *curl; local
219 curl = curl_easy_init();
220 if (!curl) {
226 easy_setopt(curl, CURLOPT_POST, 1L,
229 easy_setopt(curl, CURLOPT_ERRORBUFFER, u->error,
233 easy_setopt(curl, CURLOPT_WRITEFUNCTIO
[all...]
H A Djournal-upload-journal.c20 #include <curl/curl.h>

Completed in 53 milliseconds