summaryrefslogtreecommitdiff
path: root/transport.h
diff options
context:
space:
mode:
authorIlari Liusvaara <ilari.liusvaara@elisanet.fi>2010-10-12 16:39:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-10-13 23:08:58 (GMT)
commit419f37db4d1e2fe3c394c869c5375e545b3e364d (patch)
tree50284e09d79b6ac34ad42a786373b12f978c20ca /transport.h
parent87b50542a08ac6caa083ddc376e674424e37940a (diff)
downloadgit-419f37db4d1e2fe3c394c869c5375e545b3e364d.zip
git-419f37db4d1e2fe3c394c869c5375e545b3e364d.tar.gz
git-419f37db4d1e2fe3c394c869c5375e545b3e364d.tar.bz2
Add bidirectional_transfer_loop()
This helper function copies bidirectional stream of data between stdin/stdout and specified file descriptors. Signed-off-by: Ilari Liusvaara <ilari.liusvaara@elisanet.fi> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.h')
-rw-r--r--transport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/transport.h b/transport.h
index c59d973..e803c0e 100644
--- a/transport.h
+++ b/transport.h
@@ -154,6 +154,7 @@ int transport_connect(struct transport *transport, const char *name,
/* Transport methods defined outside transport.c */
int transport_helper_init(struct transport *transport, const char *name);
+int bidirectional_transfer_loop(int input, int output);
/* common methods used by transport.c and builtin-send-pack.c */
void transport_verify_remote_names(int nr_heads, const char **heads);