]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/fuzz/fuzz-journald.h
tests: introduce dummy_server_init and use it in all journald fuzzers
[thirdparty/systemd.git] / src / fuzz / fuzz-journald.h
CommitLineData
b1bd453f
EV
1/* SPDX-License-Identifier: LGPL-2.1+ */
2#pragma once
3
b1bd453f 4#include "journald-server.h"
b1bd453f 5
ed62712d
EV
6void dummy_server_init(Server *s, const uint8_t *buffer, size_t size);
7
231dca55 8void fuzz_journald_processing_function(
b1bd453f
EV
9 const uint8_t *data,
10 size_t size,
11 void (*f)(Server *s, const char *buf, size_t raw_len, const struct ucred *ucred, const struct timeval *tv, const char *label, size_t label_len)
231dca55 12);