diff options
| author | Denys Fedoryshchenko <denys.f@collabora.com> | 2024-10-26 21:15:19 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-26 21:15:19 +0300 |
| commit | 2f4b324907ec44cc92c39830af6b23d623b904cb (patch) | |
| tree | e12ef6351d4c58f1ecf824ce16bdeaad3377eac3 /accel-pppd/cli/cli.h | |
| parent | a90ac41f32e5ba78441e6359df8c01e593200cf0 (diff) | |
| parent | 2c7397c4f2fb1ab1cd76426e40bb05c8a8ccacf2 (diff) | |
| download | accel-ppp-2f4b324907ec44cc92c39830af6b23d623b904cb.tar.gz accel-ppp-2f4b324907ec44cc92c39830af6b23d623b904cb.zip | |
Merge pull request #185 from svlobanov/pcre2-1
migrate from pcre to pcre2
Diffstat (limited to 'accel-pppd/cli/cli.h')
| -rw-r--r-- | accel-pppd/cli/cli.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/accel-pppd/cli/cli.h b/accel-pppd/cli/cli.h index 6eda5d3f..3d8069b3 100644 --- a/accel-pppd/cli/cli.h +++ b/accel-pppd/cli/cli.h @@ -1,7 +1,8 @@ #ifndef __CLI_H #define __CLI_H -#include <pcre.h> +#define PCRE2_CODE_UNIT_WIDTH 8 +#include <pcre2.h> #include "list.h" @@ -23,11 +24,11 @@ struct cli_simple_cmd_t struct cli_regexp_cmd_t { struct list_head entry; - pcre *re; + pcre2_code *re; const char *pattern; int options; int (*exec)(const char *cmd, void *client); - pcre *h_re; + pcre2_code *h_re; const char *h_pattern; int h_options; int (*help)(const char *cmd, void *client); @@ -42,7 +43,6 @@ void cli_register_simple_cmd2( int hdr_len, ... ); -void cli_register_regexp_cmd(struct cli_regexp_cmd_t *cmd); void cli_show_ses_register(const char *name, const char *desc, void (*print)(struct ap_session *ses, char *buf)); int cli_send(void *client, const char *data); |
