summaryrefslogtreecommitdiff
path: root/src/pkt.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-05-14 17:54:25 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-08-24 20:29:39 +0200
commite03e71da56608f60770eb80767dcd94e698cdcae (patch)
tree934f1fe3e0441aaa96d0a91609e30f898d1ac8c8 /src/pkt.h
parentbffa852f89268390d6bc3e6f99f5f0cccdc88f63 (diff)
downloadlibgit2-e03e71da56608f60770eb80767dcd94e698cdcae.tar.gz
network: add sideband support
This lets us notify the user of what the remote end is doing while we wait for it to start sending us the packfile.
Diffstat (limited to 'src/pkt.h')
-rw-r--r--src/pkt.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pkt.h b/src/pkt.h
index 75442c833..0fdb5c7cd 100644
--- a/src/pkt.h
+++ b/src/pkt.h
@@ -24,6 +24,8 @@ enum git_pkt_type {
GIT_PKT_PACK,
GIT_PKT_COMMENT,
GIT_PKT_ERR,
+ GIT_PKT_DATA,
+ GIT_PKT_PROGRESS,
};
/* Used for multi-ack */
@@ -67,6 +69,14 @@ typedef struct {
typedef struct {
enum git_pkt_type type;
+ int len;
+ char data[GIT_FLEX_ARRAY];
+} git_pkt_data;
+
+typedef git_pkt_data git_pkt_progress;
+
+typedef struct {
+ enum git_pkt_type type;
char error[GIT_FLEX_ARRAY];
} git_pkt_err;