1 /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 #pragma once 3 4 #include "sd-event.h" 5 6 #include "journal-importer.h" 7 #include "journal-remote-write.h" 8 9 typedef struct RemoteSource { 10 JournalImporter importer; 11 12 Writer *writer; 13 14 sd_event_source *event; 15 sd_event_source *buffer_event; 16 } RemoteSource; 17 18 RemoteSource* source_new(int fd, bool passive_fd, char *name, Writer *writer); 19 void source_free(RemoteSource *source); 20 int process_source(RemoteSource *source, JournalFileFlags file_flags); 21