summaryrefslogtreecommitdiffstats
path: root/include/http_config.h
diff options
context:
space:
mode:
authorGraham Leggett <minfrin@apache.org>2018-11-25 22:15:21 +0100
committerGraham Leggett <minfrin@apache.org>2018-11-25 22:15:21 +0100
commitb1e34549c190b63293cbef10cb80383fa8607b29 (patch)
treea72bcfb095603a6ed21ff9616baaf585927404a6 /include/http_config.h
parentArrange the xml display and make it uses xml. (diff)
downloadapache2-b1e34549c190b63293cbef10cb80383fa8607b29.tar.xz
apache2-b1e34549c190b63293cbef10cb80383fa8607b29.zip
core: Split out the ability to parse wildcard files and directories
from the Include/IncludeOptional directives into a generic set of functions ap_dir_nofnmatch() and ap_dir_fnmatch(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1847430 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/http_config.h')
-rw-r--r--include/http_config.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/http_config.h b/include/http_config.h
index f940f84f6a..b74c61bf3f 100644
--- a/include/http_config.h
+++ b/include/http_config.h
@@ -939,6 +939,21 @@ AP_DECLARE(const char *) ap_walk_config(ap_directive_t *conftree,
ap_conf_vector_t *section_vector);
/**
+ * Convenience function to create a ap_dir_match_t structure from a cmd_parms.
+ *
+ * @param cmd The command.
+ * @param flags Flags to indicate whether optional or recursive.
+ * @param cb Callback for each file found that matches the wildcard. Return NULL on
+ * success, an error string on error.
+ * @param ctx Context for the callback.
+ * @return Structure ap_dir_match_t with fields populated, allocated from the
+ * cmd->temp_pool.
+ */
+AP_DECLARE(ap_dir_match_t *)ap_dir_cfgmatch(cmd_parms *cmd, int flags,
+ const char *(*cb)(ap_dir_match_t *w, const char *fname), void *ctx)
+ __attribute__((nonnull(1,3)));
+
+/**
* @defgroup ap_check_cmd_context Check command context
* @{
*/