Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlen Choo <chooglen@google.com>2023-06-28 22:26:21 +0300
committerJunio C Hamano <gitster@pobox.com>2023-06-29 00:06:38 +0300
commite0f9a51c327b54216f85f4569ea54da8a5092802 (patch)
tree1a243240d8afdcc036189efa7704c7736f6824c2 /urlmatch.h
parent97eeeea2dc069a1fcb03db99ef3810ebe3056188 (diff)
urlmatch.h: use config_fn_t type
These are actually used as config callbacks, so use the typedef-ed type and make future refactors easier. Signed-off-by: Glen Choo <chooglen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'urlmatch.h')
-rw-r--r--urlmatch.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/urlmatch.h b/urlmatch.h
index 9f40b00bfb..bee374a642 100644
--- a/urlmatch.h
+++ b/urlmatch.h
@@ -2,6 +2,7 @@
#define URL_MATCH_H
#include "string-list.h"
+#include "config.h"
struct url_info {
/* normalized url on success, must be freed, otherwise NULL */
@@ -48,8 +49,8 @@ struct urlmatch_config {
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);
+ config_fn_t collect_fn;
+ config_fn_t cascade_fn;
/*
* Compare the two matches, the one just discovered and the existing
* best match and return a negative value if the found item is to be