]> git.proxmox.com Git - libgit2.git/blobdiff - src/pkt.h
Update Copyright header
[libgit2.git] / src / pkt.h
index f4ed81c679fe397372e09de30bfc777be713de81..b0bc0892e8ab32b721126e750c7040e8668865a0 100644 (file)
--- a/src/pkt.h
+++ b/src/pkt.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2009-2011 the libgit2 contributors
+ * Copyright (C) 2009-2012 the libgit2 contributors
  *
  * This file is part of libgit2, distributed under the GNU GPL v2 with
  * a Linking Exception. For full terms see the included COPYING file.
@@ -10,6 +10,7 @@
 
 #include "common.h"
 #include "transport.h"
+#include "buffer.h"
 #include "git2/net.h"
 
 enum git_pkt_type {
@@ -63,9 +64,13 @@ typedef struct {
 } git_pkt_comment;
 
 int git_pkt_parse_line(git_pkt **head, const char *line, const char **out, size_t len);
+int git_pkt_buffer_flush(git_buf *buf);
 int git_pkt_send_flush(int s);
+int git_pkt_buffer_done(git_buf *buf);
 int git_pkt_send_done(int s);
-int git_pkt_send_wants(git_headarray *refs, git_transport_caps *caps, int fd);
+int git_pkt_buffer_wants(const git_vector *refs, git_transport_caps *caps, git_buf *buf);
+int git_pkt_send_wants(const git_vector *refs, git_transport_caps *caps, int fd);
+int git_pkt_buffer_have(git_oid *oid, git_buf *buf);
 int git_pkt_send_have(git_oid *oid, int fd);
 void git_pkt_free(git_pkt *pkt);