summaryrefslogtreecommitdiff
path: root/sideband.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-10 01:06:33 -0700
committerJunio C Hamano <junkio@cox.net>2006-09-10 13:36:35 -0700
commit49a52b1d1fb120f52de3a67f1e4e5ae81512ab81 (patch)
tree47a0c3903f39026b2a907616177fde61adf79f65 /sideband.h
parenta41fae9c46a4cb5e59cc1a17d19f6a3a6cbfbb2f (diff)
downloadgit-49a52b1d1fb120f52de3a67f1e4e5ae81512ab81.tar.gz
Move sideband client side support into reusable form.
This moves the receiver side of the sideband support from fetch-clone.c to sideband.c and its header file, so that archiver protocol can use it. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'sideband.h')
-rw-r--r--sideband.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sideband.h b/sideband.h
new file mode 100644
index 0000000000..90b385580e
--- /dev/null
+++ b/sideband.h
@@ -0,0 +1,11 @@
+#ifndef SIDEBAND_H
+#define SIDEBAND_H
+
+#define SIDEBAND_PROTOCOL_ERROR -2
+#define SIDEBAND_REMOTE_ERROR -1
+
+#define DEFAULT_PACKET_MAX 1000
+
+int recv_sideband(const char *me, int in_stream, int out, int err, char *, int);
+
+#endif