diff options
author | Junio C Hamano <junkio@cox.net> | 2006-09-10 01:06:33 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-10 13:36:35 -0700 |
commit | 49a52b1d1fb120f52de3a67f1e4e5ae81512ab81 (patch) | |
tree | 47a0c3903f39026b2a907616177fde61adf79f65 /sideband.h | |
parent | a41fae9c46a4cb5e59cc1a17d19f6a3a6cbfbb2f (diff) | |
download | git-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.h | 11 |
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 |