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