#include "iovec-util.h"
#include "journal-internal.h"
#include "journald-audit.h"
+#include "journald-server.h"
#include "missing_audit.h"
#include "string-util.h"
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
-#include "journald-server.h"
#include "socket-util.h"
+typedef struct Server Server;
+
void server_process_audit_message(Server *s, const void *buffer, size_t buffer_size, const struct ucred *ucred, const union sockaddr_union *sa, socklen_t salen);
void process_audit_string(Server *s, int type, const char *data, size_t size);
#include "cgroup-util.h"
#include "errno-util.h"
#include "journald-client.h"
+#include "journald-context.h"
+#include "log.h"
#include "nulstr-util.h"
#include "pcre2-util.h"
#include "strv.h"
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
-#include "journald-context.h"
+#include <stddef.h>
+
+typedef struct ClientContext ClientContext;
int client_context_read_log_filter_patterns(ClientContext *c, const char *cgroup);
int client_context_check_keep_log(ClientContext *c, const char *message, size_t len);
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
-#include "journald-server.h"
+#include <sys/socket.h>
+
+typedef struct Server Server;
void server_forward_console(Server *s, int priority, const char *identifier, const char *message, const struct ucred *ucred);
#include "journal-util.h"
#include "journald-client.h"
#include "journald-context.h"
+#include "journald-server.h"
#include "parse-util.h"
#include "path-util.h"
#include "process-util.h"
#include <inttypes.h>
#include <sys/socket.h>
#include <sys/types.h>
+#include <syslog.h>
#include "sd-id128.h"
#include "set.h"
#include "time-util.h"
-typedef struct ClientContext ClientContext;
+typedef struct Server Server;
-#include "journald-server.h"
-
-struct ClientContext {
+typedef struct ClientContext {
unsigned n_ref;
unsigned lru_index;
usec_t timestamp;
Set *log_filter_allowed_patterns;
Set *log_filter_denied_patterns;
-};
+} ClientContext;
int client_context_get(
Server *s,
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
-#include "journald-server.h"
+#include <stddef.h>
+#include <sys/socket.h>
+
+typedef struct Server Server;
int server_open_dev_kmsg(Server *s);
int server_flush_dev_kmsg(Server *s);
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
-#include "journald-server.h"
+#include <stddef.h>
+#include <sys/socket.h>
+
+typedef struct Server Server;
void server_process_native_message(
Server *s,
#include "event-util.h"
#include "extract-word.h"
#include "fd-util.h"
+#include "fdset.h"
#include "fileio.h"
#include "format-util.h"
#include "fs-util.h"
#include "sd-event.h"
#include "sd-varlink.h"
-typedef struct Server Server;
-
#include "common-signal.h"
#include "conf-parser.h"
#include "hashmap.h"
uint64_t seqnum;
} SeqnumData;
-struct Server {
+typedef struct Server {
char *namespace;
int syslog_fd;
ClientContext *pid1_context; /* the context of PID 1 */
sd_varlink_server *varlink_server;
-};
+} Server;
#define SERVER_MACHINE_ID(s) ((s)->machine_id_field + STRLEN("_MACHINE_ID="))
#include "fd-util.h"
#include "iovec-util.h"
+#include "journald-server.h"
#include "journald-socket.h"
#include "log.h"
#include "macro.h"
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
-#include "journald-server.h"
-#include "socket-util.h"
+#include <sys/socket.h>
+
+#include "time-util.h"
+
+typedef struct Server Server;
int server_forward_socket(Server *s, const struct iovec *iovec, size_t n, const dual_timestamp *ts, int priority);
#include "errno-util.h"
#include "escape.h"
#include "fd-util.h"
+#include "fdset.h"
#include "fileio.h"
#include "fs-util.h"
#include "iovec-util.h"
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
-typedef struct StdoutStream StdoutStream;
-
#include "fdset.h"
-#include "journald-server.h"
+
+typedef struct Server Server;
+typedef struct StdoutStream StdoutStream;
int server_open_stdout_socket(Server *s, const char *stdout_socket);
int server_restore_streams(Server *s, FDSet *fds);
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
-#include "journald-server.h"
+#include <sys/socket.h>
+
+#include "macro.h"
+
+typedef struct Server Server;
int syslog_fixup_facility(int priority) _const_;
/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#include "journald-server.h"
#include "journald-varlink.h"
#include "varlink-io.systemd.Journal.h"
#include "varlink-io.systemd.service.h"
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
-#include "journald-server.h"
+typedef struct Server Server;
int server_open_varlink(Server *s, const char *socket, int fd);
#include <sys/socket.h>
-#include "journald-server.h"
+typedef struct Server Server;
void server_forward_wall(Server *s, int priority, const char *identifier, const char *message, const struct ucred *ucred);