]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/journal/audit-type.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 This file is part of systemd.
7 Copyright 2015 Zbigniew Jędrzejewski-Szmek
12 const char *audit_type_to_string(int type
);
13 int audit_type_from_string(const char *s
);
15 /* This is inspired by DNS TYPEnnn formatting */
16 #define audit_type_name_alloca(type) \
19 _s_ = audit_type_to_string(type); \
21 _s_ = alloca(STRLEN("AUDIT") + DECIMAL_STR_MAX(int)); \
22 sprintf((char*) _s_, "AUDIT%04i", type); \