aboutsummaryrefslogtreecommitdiff
path: root/urlmatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'urlmatch.h')
-rw-r--r--urlmatch.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/urlmatch.h b/urlmatch.h
index b67f57f86..b461dfd3d 100644
--- a/urlmatch.h
+++ b/urlmatch.h
@@ -33,4 +33,22 @@ struct url_info {
extern char *url_normalize(const char *, struct url_info *);
extern int match_urls(const struct url_info *url, const struct url_info *url_prefix, int *exactusermatch);
+struct urlmatch_item {
+ size_t matched_len;
+ char user_matched;
+};
+
+struct urlmatch_config {
+ struct string_list vars;
+ struct url_info url;
+ const char *section;
+ const char *key;
+
+ void *cb;
+ int (*collect_fn)(const char *var, const char *value, void *cb);
+ int (*cascade_fn)(const char *var, const char *value, void *cb);
+};
+
+extern int urlmatch_config_entry(const char *var, const char *value, void *cb);
+
#endif /* URL_MATCH_H */