summaryrefslogtreecommitdiff
path: root/src/fuzz/fuzz-journald.h
blob: 77e3b0c064c4f6ec03814bb7aa1317596df1bf33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once

#include "journald-server.h"

void dummy_server_init(Server *s, const uint8_t *buffer, size_t size);

void fuzz_journald_processing_function(
                const uint8_t *data,
                size_t size,
                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)
);