summaryrefslogtreecommitdiff
path: root/pkt-line.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2013-02-20 15:02:45 -0500
committerJunio C Hamano <gitster@pobox.com>2013-02-20 13:42:22 -0800
commit047ec60205b5ae8b180386579749d143db4c9be3 (patch)
tree4e9113efbdffa951b7e4018e80869dce6a52b8b5 /pkt-line.h
parent819b929d3389f6007e1c469d9060e7876caeb97f (diff)
downloadgit-047ec60205b5ae8b180386579749d143db4c9be3.tar.gz
pkt-line: move LARGE_PACKET_MAX definition from sideband
Having the packet sizes defined near the packet read/write functions makes more sense. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pkt-line.h')
-rw-r--r--pkt-line.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkt-line.h b/pkt-line.h
index 5d2fb423d6..6927ea521b 100644
--- a/pkt-line.h
+++ b/pkt-line.h
@@ -58,6 +58,9 @@ int packet_read(int fd, char *buffer, unsigned size, int options);
*/
int packet_read_line(int fd, char *buffer, unsigned size);
+#define DEFAULT_PACKET_MAX 1000
+#define LARGE_PACKET_MAX 65520
+
int packet_get_line(struct strbuf *out, char **src_buf, size_t *src_len);
#endif