]>
git.proxmox.com Git - libgit2.git/blob - src/pkt.h
2 * Copyright (C) 2009-2011 the libgit2 contributors
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
8 #ifndef INCLUDE_pkt_h__
9 #define INCLUDE_pkt_h__
12 #include "transport.h"
25 /* Used for multi-ack */
33 /* This would be a flush pkt */
35 enum git_pkt_type type
;
39 enum git_pkt_type type
;
45 /* This is a pkt-line with some info in it */
47 enum git_pkt_type type
;
54 enum git_pkt_type type
;
56 enum git_ack_status status
;
59 int git_pkt_parse_line(git_pkt
**head
, const char *line
, const char **out
, size_t len
);
60 int git_pkt_send_flush(int s
);
61 int git_pkt_send_done(int s
);
62 int git_pkt_send_wants(git_headarray
*refs
, git_transport_caps
*caps
, int fd
);
63 int git_pkt_send_have(git_oid
*oid
, int fd
);
64 void git_pkt_free(git_pkt
*pkt
);