![Zbigniew Jędrzejewski-Szmek](/assets/img/avatar_default.png)
This means we need to include many more headers in various files that simply included util.h before, but it seems cleaner to do it this way.
11 lines
368 B
C
11 lines
368 B
C
/* 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);
|