diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-11-28 08:40:40 +0100 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-11-28 08:40:40 +0100 |
commit | d88d4311c7e08ad0d38edae006b50e2a548c937d (patch) | |
tree | 1b26cee0c3d383043902c599893299fd8fdc5302 /include/git2/net.h | |
parent | c94785a9f373b6604402ba6a301b828b80ab8cd8 (diff) | |
download | libgit2-repo-ownership.tar.gz |
remote: Cleanup the remotes coderepo-ownership
- Hide the remaining transports code
- Drop `git_headarray`, switch to using a callback to list refs. Makes
the code cleaner.
Diffstat (limited to 'include/git2/net.h')
-rw-r--r-- | include/git2/net.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/git2/net.h b/include/git2/net.h index 5fb918599..08bc81f16 100644 --- a/include/git2/net.h +++ b/include/git2/net.h @@ -30,6 +30,7 @@ GIT_BEGIN_DECL #define GIT_DIR_FETCH 0 #define GIT_DIR_PUSH 1 + /** * Remote head description, given out on `ls` calls. */ @@ -41,12 +42,9 @@ struct git_remote_head { }; /** - * Array of remote heads + * Callback for listing the remote heads */ -struct git_headarray { - unsigned int len; - struct git_remote_head **heads; -}; +typedef int (*git_headlist_cb)(git_remote_head *, void *); /** @} */ GIT_END_DECL |