summaryrefslogtreecommitdiff
path: root/src/fuzz/fuzz-journald.h
blob: 4abb1005ca3c5349a933637a521c9032bd9c11e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#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)
);