summaryrefslogtreecommitdiffstats
path: root/src/shared/pcre2-util.h
diff options
context:
space:
mode:
authorQuentin Deslandes <qde@naccy.de>2022-09-13 17:14:52 +0200
committerQuentin Deslandes <qde@naccy.de>2022-12-15 10:57:39 +0100
commitb8c0565ec4d9c8b2eff7a0799cfdabf66536a87c (patch)
tree3937b0aaf9aff40dcea1e41c373d4cc1de88085a /src/shared/pcre2-util.h
parentsystemctl: add support for LogFilterPatterns for show command (diff)
downloadsystemd-b8c0565ec4d9c8b2eff7a0799cfdabf66536a87c.tar.xz
systemd-b8c0565ec4d9c8b2eff7a0799cfdabf66536a87c.zip
Create hash_ops structure to free keys of type pcre2_code
Diffstat (limited to 'src/shared/pcre2-util.h')
-rw-r--r--src/shared/pcre2-util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/pcre2-util.h b/src/shared/pcre2-util.h
index 11f1d77f4f..f1e744d577 100644
--- a/src/shared/pcre2-util.h
+++ b/src/shared/pcre2-util.h
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
+#include "hash-funcs.h"
#include "macro.h"
#if HAVE_PCRE2
@@ -24,6 +25,8 @@ typedef struct {} pcre2_code;
#endif
+extern const struct hash_ops pcre2_code_hash_ops_free;
+
typedef enum {
PATTERN_COMPILE_CASE_AUTO,
PATTERN_COMPILE_CASE_SENSITIVE,