diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-03-17 22:54:28 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-07-15 22:23:48 -0400 |
commit | 3d090cc6f34e5970765dd1e7ee5e648a056d180d (patch) | |
tree | 46bacdf60ac7a00932e9fcc8794d7bef29ee34fc /src/journal-remote/journal-upload.h | |
parent | 851d4e2a67efb2c8777df151b697391ff1a76af0 (diff) |
journal-upload: a tool to push messages to systemd-journal-remote
Diffstat (limited to 'src/journal-remote/journal-upload.h')
-rw-r--r-- | src/journal-remote/journal-upload.h | 25 |
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); |