summaryrefslogtreecommitdiff
path: root/transport.h
diff options
context:
space:
mode:
authorIlari Liusvaara <ilari.liusvaara@elisanet.fi>2010-10-12 19:39:41 +0300
committerJunio C Hamano <gitster@pobox.com>2010-10-13 16:08:58 -0700
commit419f37db4d1e2fe3c394c869c5375e545b3e364d (patch)
tree50284e09d79b6ac34ad42a786373b12f978c20ca /transport.h
parent87b50542a08ac6caa083ddc376e674424e37940a (diff)
downloadgit-419f37db4d1e2fe3c394c869c5375e545b3e364d.tar.gz
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 c59d97388e..e803c0e7ba 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);