]> git.proxmox.com Git - systemd.git/blame - src/journal-remote/journal-remote.h
Merge tag 'upstream/229'
[systemd.git] / src / journal-remote / journal-remote.h
CommitLineData
663996b3
MS
1/***
2 This file is part of systemd.
3
60f067b4 4 Copyright 2014 Zbigniew Jędrzejewski-Szmek
663996b3
MS
5
6 systemd is free software; you can redistribute it and/or modify it
7 under the terms of the GNU Lesser General Public License as published by
8 the Free Software Foundation; either version 2.1 of the License, or
9 (at your option) any later version.
10
11 systemd is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public License
17 along with systemd; If not, see <http://www.gnu.org/licenses/>.
18***/
19
60f067b4 20#pragma once
663996b3 21
60f067b4 22
5eef597e 23#include "sd-event.h"
60f067b4 24
4c89c718 25#include "hashmap.h"
5eef597e
MP
26#include "journal-remote-parse.h"
27#include "journal-remote-write.h"
4c89c718 28#include "microhttpd-util.h"
5eef597e
MP
29
30typedef struct MHDDaemonWrapper MHDDaemonWrapper;
31
32struct MHDDaemonWrapper {
33 uint64_t fd;
34 struct MHD_Daemon *daemon;
35
36 sd_event_source *event;
60f067b4
JS
37};
38
5eef597e
MP
39struct RemoteServer {
40 RemoteSource **sources;
41 size_t sources_size;
42 size_t active;
43
44 sd_event *events;
45 sd_event_source *sigterm_event, *sigint_event, *listen_event;
46
47 Hashmap *writers;
48 Writer *_single_writer;
49 uint64_t event_count;
50
51 bool check_trust;
52 Hashmap *daemons;
53};