summaryrefslogtreecommitdiff
path: root/src/journal/journald-native.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/journal/journald-native.h')
-rw-r--r--src/journal/journald-native.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/journal/journald-native.h b/src/journal/journald-native.h
index 16c09f523e..bf02fee576 100644
--- a/src/journal/journald-native.h
+++ b/src/journal/journald-native.h
@@ -23,6 +23,13 @@
#include "journald-server.h"
+/* Make sure not to make this smaller than the maximum coredump
+ * size. See COREDUMP_MAX in coredump.c */
+#define ENTRY_SIZE_MAX (1024*1024*768)
+#define DATA_SIZE_MAX (1024*1024*768)
+
+bool valid_user_field(const char *p, size_t l, bool allow_protected);
+
void server_process_native_message(Server *s, const void *buffer, size_t buffer_size, struct ucred *ucred, struct timeval *tv, const char *label, size_t label_len);
void server_process_native_file(Server *s, int fd, struct ucred *ucred, struct timeval *tv, const char *label, size_t label_len);