summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-08-08 11:24:47 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2013-08-08 11:40:41 +0200
commit4d588d9713bb558e45a8bdf6c41d232bb592b814 (patch)
treee69c39a177bdc70e51984e5fbf96a36855919fc9 /src/config.h
parenta603c191578f7b33720e36e95421fcd58bc7abe4 (diff)
downloadlibgit2-4d588d9713bb558e45a8bdf6c41d232bb592b814.tar.gz
Don't typedef a pointer
Make the iterator structure opaque and make sure it compiles.
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
index c5c11ae14..ea150e968 100644
--- a/src/config.h
+++ b/src/config.h
@@ -24,6 +24,11 @@ struct git_config {
git_vector files;
};
+typedef struct {
+ git_config_backend *backend;
+ unsigned int flags;
+} git_config_backend_iter;
+
extern int git_config_find_global_r(git_buf *global_config_path);
extern int git_config_find_xdg_r(git_buf *system_config_path);
extern int git_config_find_system_r(git_buf *system_config_path);