]>
git.ipfire.org Git - thirdparty/git.git/blob - sideband.h
5 SIDEBAND_PROTOCOL_ERROR
= -2,
6 SIDEBAND_REMOTE_ERROR
= -1,
12 * Inspects a multiplexed packet read from the remote. If this packet is a
13 * progress packet and thus should not be processed by the caller, returns 0.
14 * Otherwise, returns 1, releases scratch, and sets sideband_type.
16 * If this packet is SIDEBAND_PROTOCOL_ERROR, SIDEBAND_REMOTE_ERROR, or a
17 * progress packet, also prints a message to stderr.
19 * scratch must be a struct strbuf allocated by the caller. It is used to store
20 * progress messages split across multiple packets.
22 int demultiplex_sideband(const char *me
, char *buf
, int len
,
24 struct strbuf
*scratch
,
25 enum sideband_type
*sideband_type
);
27 void send_sideband(int fd
, int band
, const char *data
, ssize_t sz
, int packet_max
);