blob: 9dab51f7ccfd83fe9309da36098503dfb70b9349 (
plain)
1
2
3
4
5
6
7
8
9
10
|
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "time-util.h"
typedef struct JournalRateLimit JournalRateLimit;
JournalRateLimit *journal_rate_limit_new(void);
void journal_rate_limit_free(JournalRateLimit *r);
int journal_rate_limit_test(JournalRateLimit *r, const char *id, usec_t rl_interval, unsigned rl_burst, int priority, uint64_t available);
|