From d88d4311c7e08ad0d38edae006b50e2a548c937d Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Mon, 28 Nov 2011 08:40:40 +0100 Subject: remote: Cleanup the remotes code - Hide the remaining transports code - Drop `git_headarray`, switch to using a callback to list refs. Makes the code cleaner. --- include/git2/net.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'include/git2/net.h') 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 -- cgit v1.2.1