summaryrefslogtreecommitdiffstats
path: root/src/journal/journald-rate-limit.h
blob: 566bba4be21da0b4f9d480cfc5d2c21ed36be706 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once

#include <inttypes.h>

#include "hashmap.h"
#include "time-util.h"

int journal_ratelimit_test(
                OrderedHashmap **groups_by_id,
                const char *id,
                usec_t rl_interval,
                unsigned rl_burst,
                int priority,
                uint64_t available);