]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/journal/pcre2-dlopen.h
license: LGPL-2.1+ -> LGPL-2.1-or-later
[thirdparty/systemd.git] / src / journal / pcre2-dlopen.h
CommitLineData
db9ecf05 1/* SPDX-License-Identifier: LGPL-2.1-or-later */
9200bb30
LP
2#pragma once
3
4#if HAVE_PCRE2
5
6#define PCRE2_CODE_UNIT_WIDTH 8
7#include <pcre2.h>
8
9extern pcre2_match_data* (*sym_pcre2_match_data_create)(uint32_t, pcre2_general_context *);
10extern void (*sym_pcre2_match_data_free)(pcre2_match_data *);
11extern void (*sym_pcre2_code_free)(pcre2_code *);
12extern pcre2_code* (*sym_pcre2_compile)(PCRE2_SPTR, PCRE2_SIZE, uint32_t, int *, PCRE2_SIZE *, pcre2_compile_context *);
13extern int (*sym_pcre2_get_error_message)(int, PCRE2_UCHAR *, PCRE2_SIZE);
14extern int (*sym_pcre2_match)(const pcre2_code *, PCRE2_SPTR, PCRE2_SIZE, PCRE2_SIZE, uint32_t, pcre2_match_data *, pcre2_match_context *);
15extern PCRE2_SIZE* (*sym_pcre2_get_ovector_pointer)(pcre2_match_data *);
16#endif
17
18int dlopen_pcre2(void);