blob: a84b6917c7a17b5f8a922540801e98d46aa24431 [file] [log] [blame]
Junio C Hamano49a52b12006-09-10 01:06:33 -07001#ifndef SIDEBAND_H
2#define SIDEBAND_H
3
4#define SIDEBAND_PROTOCOL_ERROR -2
5#define SIDEBAND_REMOTE_ERROR -1
6
7#define DEFAULT_PACKET_MAX 1000
Junio C Hamanod47f3db2006-09-10 16:27:08 -07008#define LARGE_PACKET_MAX 65520
Junio C Hamano49a52b12006-09-10 01:06:33 -07009
Nicolas Pitre9ac13ec2006-10-11 11:49:15 -040010int recv_sideband(const char *me, int in_stream, int out, int err);
Junio C Hamano958c24b2006-09-10 03:20:24 -070011ssize_t send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max);
Junio C Hamano49a52b12006-09-10 01:06:33 -070012
13#endif