]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/journal/audit-type.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
6 #include "alloc-util.h"
9 const char *audit_type_to_string(int type
);
10 int audit_type_from_string(const char *s
);
12 /* This is inspired by DNS TYPEnnn formatting */
13 #define audit_type_name_alloca(type) \
16 _s_ = audit_type_to_string(type); \
18 _s_ = newa(char, STRLEN("AUDIT") + DECIMAL_STR_MAX(int)); \
19 sprintf((char*) _s_, "AUDIT%04i", type); \