diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-10-05 20:09:49 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-10-12 21:33:19 +0200 |
commit | 2c982daa2eec64b80c7940bfe1142295bd72edd8 (patch) | |
tree | 96dbc378ee3ac7844072fb602439355d93514f5b /src/fetch.h | |
parent | 51760bc13d2699b34b0015b406242107cfa68b33 (diff) | |
download | libgit2-2c982daa2eec64b80c7940bfe1142295bd72edd8.tar.gz |
fetch: add a generic pack-download function
Taken mostly from the git transport's version, this can be used by any
transport that takes its pack data from the network.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src/fetch.h')
-rw-r--r-- | src/fetch.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fetch.h b/src/fetch.h index 6ca21d5b4..a45d936a9 100644 --- a/src/fetch.h +++ b/src/fetch.h @@ -7,7 +7,12 @@ #ifndef INCLUDE_fetch_h__ #define INCLUDE_fetch_h__ +#include "netops.h" + int git_fetch_negotiate(git_remote *remote); int git_fetch_download_pack(char **out, git_remote *remote); +int git_fetch__download_pack(char **out, const char *buffered, size_t buffered_size, + GIT_SOCKET fd, git_repository *repo); + #endif |