]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/journal/journald-rate-limit.h
tree-wide: make use of new relative time events in sd-event.h
[thirdparty/systemd.git] / src / journal / journald-rate-limit.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
c2f1db8f 2#pragma once
6e409ce1 3
ca78ad1d 4#include "time-util.h"
6e409ce1
LP
5
6typedef struct JournalRateLimit JournalRateLimit;
7
5ac1530e
ZJS
8JournalRateLimit *journal_ratelimit_new(void);
9void journal_ratelimit_free(JournalRateLimit *r);
10int journal_ratelimit_test(JournalRateLimit *r, const char *id, usec_t rl_interval, unsigned rl_burst, int priority, uint64_t available);