summaryrefslogtreecommitdiff
path: root/src/journal-remote/journal-upload.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/journal-remote/journal-upload.h')
-rw-r--r--src/journal-remote/journal-upload.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/journal-remote/journal-upload.h b/src/journal-remote/journal-upload.h
new file mode 100644
index 0000000000..68d85be6bc
--- /dev/null
+++ b/src/journal-remote/journal-upload.h
@@ -0,0 +1,25 @@
+#pragma once
+
+#include <inttypes.h>
+
+#include "sd-event.h"
+
+typedef struct Uploader {
+ sd_event *events;
+
+ const char *url;
+ CURL *easy;
+ bool uploading;
+ struct curl_slist *header;
+
+ int input;
+
+ sd_event_source *input_event;
+} Uploader;
+
+int start_upload(Uploader *u,
+ size_t (*input_callback)(void *ptr,
+ size_t size,
+ size_t nmemb,
+ void *userdata),
+ void *data);