diff options
author | Vicent Marti <tanoku@gmail.com> | 2012-11-17 19:54:47 -0800 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2012-11-17 19:55:06 -0800 |
commit | 9b965c01e06e695e8ee51a1cc080cc1509cd4962 (patch) | |
tree | 6868aeb349ce620bee6bccaa0b6069b223fd6a13 /include/git2/attr.h | |
parent | 0066955d9752cab8f8533c0dddfc95d08ad13e33 (diff) | |
download | libgit2-more-api-tweaks.tar.gz |
More external API cleanupmore-api-tweaks
Diffstat (limited to 'include/git2/attr.h')
-rw-r--r-- | include/git2/attr.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/git2/attr.h b/include/git2/attr.h index 2de9f4b0e..b1a7e0eb6 100644 --- a/include/git2/attr.h +++ b/include/git2/attr.h @@ -183,6 +183,8 @@ GIT_EXTERN(int) git_attr_get_many( size_t num_attr, const char **names); +typedef int (*git_attr_foreach_cb)(const char *name, const char *value, void *payload); + /** * Loop over all the git attributes for a path. * @@ -204,7 +206,7 @@ GIT_EXTERN(int) git_attr_foreach( git_repository *repo, uint32_t flags, const char *path, - int (*callback)(const char *name, const char *value, void *payload), + git_attr_foreach_cb callback, void *payload); /** |