1 /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 #pragma once 3 4 #include "time-util.h" 5 6 typedef struct JournalRateLimit JournalRateLimit; 7 8 JournalRateLimit *journal_ratelimit_new(void); 9 void journal_ratelimit_free(JournalRateLimit *r); 10 int journal_ratelimit_test(JournalRateLimit *r, const char *id, usec_t rl_interval, unsigned rl_burst, int priority, uint64_t available); 11