diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-08-22 15:18:19 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-08-30 19:37:14 +0200 |
commit | b5a8aa94bf144d77a922074c7dad38afcf0a6d24 (patch) | |
tree | b5abd8ab8dd5c0369ef7485939c1a3c38755459d /src/transport.c | |
parent | 74bd343ae83398c7e00c239aea1ff8525dc958a1 (diff) | |
download | libgit2-b5a8aa94bf144d77a922074c7dad38afcf0a6d24.tar.gz |
Don't hide the transport details
Transports shouldn't get used outside of the library, so don't expose
accessor functions.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src/transport.c')
-rw-r--r-- | src/transport.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/transport.c b/src/transport.c index 91723df73..91f621c46 100644 --- a/src/transport.c +++ b/src/transport.c @@ -69,53 +69,3 @@ int git_transport_new(git_transport **out, const char *url) return GIT_SUCCESS; } - -int git_transport_connect(git_transport *transport, int direction) -{ - return transport->connect(transport, direction); -} - -int git_transport_ls(git_transport *transport, git_headarray *array) -{ - return transport->ls(transport, array); -} - -int git_transport_send_wants(struct git_transport *transport, git_headarray *array) -{ - return transport->send_wants(transport, array); -} - -int git_transport_send_have(struct git_transport *transport, git_oid *oid) -{ - return transport->send_have(transport, oid); -} - -int git_transport_negotiate_fetch(struct git_transport *transport, git_repository *repo, git_headarray *list) -{ - return transport->negotiate_fetch(transport, repo, list); -} - -int git_transport_send_flush(struct git_transport *transport) -{ - return transport->send_flush(transport); -} - -int git_transport_send_done(struct git_transport *transport) -{ - return transport->send_done(transport); -} - -int git_transport_download_pack(char **out, git_transport *transport, git_repository *repo) -{ - return transport->download_pack(out, transport, repo); -} - -int git_transport_close(git_transport *transport) -{ - return transport->close(transport); -} - -void git_transport_free(git_transport *transport) -{ - transport->free(transport); -} |