summaryrefslogtreecommitdiff
path: root/src/pkt.h
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2011-09-22 10:17:43 -0700
committerVicent Martí <tanoku@gmail.com>2011-09-22 10:17:43 -0700
commit8114ee4c950d035388f1191081fbe77d9a9f3017 (patch)
treea1cfd43c33d8c8d56bf23d91f24bd5bb9840f24e /src/pkt.h
parente1b86444676b70154bf8ab450d429bdef57a8276 (diff)
parent4ee8418a0877d1c2f48459bb266342b127fc7d87 (diff)
downloadlibgit2-8114ee4c950d035388f1191081fbe77d9a9f3017.tar.gz
Merge pull request #405 from carlosmn/http-ls
Implement ls-remote over HTTP
Diffstat (limited to 'src/pkt.h')
-rw-r--r--src/pkt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pkt.h b/src/pkt.h
index 5a94024de..f4ed81c67 100644
--- a/src/pkt.h
+++ b/src/pkt.h
@@ -20,6 +20,7 @@ enum git_pkt_type {
GIT_PKT_ACK,
GIT_PKT_NAK,
GIT_PKT_PACK,
+ GIT_PKT_COMMENT,
};
/* Used for multi-ack */
@@ -56,6 +57,11 @@ typedef struct {
enum git_ack_status status;
} git_pkt_ack;
+typedef struct {
+ enum git_pkt_type type;
+ char comment[GIT_FLEX_ARRAY];
+} git_pkt_comment;
+
int git_pkt_parse_line(git_pkt **head, const char *line, const char **out, size_t len);
int git_pkt_send_flush(int s);
int git_pkt_send_done(int s);