]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/journal/journald-rate-limit.h
journal: add missing le64toh() calls in journal_file_check_object()
[thirdparty/systemd.git] / src / journal / journald-rate-limit.h
CommitLineData
c2f1db8f 1#pragma once
6e409ce1
LP
2
3/***
4 This file is part of systemd.
5
6 Copyright 2011 Lennart Poettering
7
8 systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
9 under the terms of the GNU Lesser General Public License as published by
10 the Free Software Foundation; either version 2.1 of the License, or
6e409ce1
LP
11 (at your option) any later version.
12
13 systemd is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5430f7f2 16 Lesser General Public License for more details.
6e409ce1 17
5430f7f2 18 You should have received a copy of the GNU Lesser General Public License
6e409ce1
LP
19 along with systemd; If not, see <http://www.gnu.org/licenses/>.
20***/
21
6e409ce1
LP
22#include "util.h"
23
24typedef struct JournalRateLimit JournalRateLimit;
25
26JournalRateLimit *journal_rate_limit_new(usec_t interval, unsigned burst);
27void journal_rate_limit_free(JournalRateLimit *r);
28int journal_rate_limit_test(JournalRateLimit *r, const char *id, int priority, uint64_t available);