From: Alan T. DeKok Date: Thu, 19 May 2022 23:06:55 +0000 (-0400) Subject: move prototype of xlat_purify() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=053dc738f7d1b4fcbd6288eb5850abfb7ffa2aac;p=thirdparty%2Ffreeradius-server.git move prototype of xlat_purify() --- diff --git a/src/lib/unlang/xlat.h b/src/lib/unlang/xlat.h index c61773369e8..e3b4ea75a08 100644 --- a/src/lib/unlang/xlat.h +++ b/src/lib/unlang/xlat.h @@ -404,6 +404,12 @@ int xlat_bootstrap(xlat_exp_head_t *root); void xlat_instances_free(void); +/* + * xlat_purify.c + */ +typedef struct unlang_interpret_s unlang_interpret_t; +int xlat_purify(xlat_exp_head_t *head, unlang_interpret_t *intp); + /* * xlat.c */ diff --git a/src/lib/unlang/xlat_priv.h b/src/lib/unlang/xlat_priv.h index 3b612f5718a..e77fdbb13f6 100644 --- a/src/lib/unlang/xlat_priv.h +++ b/src/lib/unlang/xlat_priv.h @@ -31,7 +31,6 @@ extern "C" { #endif #include -#include #ifdef DEBUG_XLAT # define XLAT_DEBUG RDEBUG3 @@ -334,12 +333,6 @@ int xlat_tokenize_function_args(xlat_exp_head_t *head, fr_sbuff_t *in, ssize_t xlat_print_node(fr_sbuff_t *out, xlat_exp_head_t const *head, xlat_exp_t const *node, fr_sbuff_escape_rules_t const *e_rules); -/* - * xlat_purify.c - */ -int xlat_purify(xlat_exp_head_t *head, unlang_interpret_t *intp); - - static inline xlat_exp_t *xlat_exp_head(xlat_exp_head_t const *head) { if (!head) return NULL;