diff options
| author | Vicent Martà <vicent@github.com> | 2012-07-30 16:17:35 -0700 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2012-07-30 16:17:35 -0700 |
| commit | 577cd8aec1b112fc099035817cdb69ec79edc569 (patch) | |
| tree | bb9074e05161ce8b73a7a04bf64c5f79522a8a61 /src/protocol.h | |
| parent | 50364dd892ae6726ff34e1842711e29d0f20c51d (diff) | |
| parent | 0048372a9a631b9646b97f42eb8a61ba59dd3d99 (diff) | |
| download | libgit2-577cd8aec1b112fc099035817cdb69ec79edc569.tar.gz | |
Merge pull request #840 from carlosmn/remote-unify
Unify the transport code
Diffstat (limited to 'src/protocol.h')
| -rw-r--r-- | src/protocol.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/protocol.h b/src/protocol.h index a6c3e073..615be8d6 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -9,15 +9,9 @@ #include "transport.h" #include "buffer.h" +#include "pkt.h" -typedef struct { - git_transport *transport; - git_vector *refs; - git_buf buf; - int error; - unsigned int flush :1; -} git_protocol; - -int git_protocol_store_refs(git_protocol *p, const char *data, size_t len); +int git_protocol_store_refs(git_transport *t, int flushes); +int git_protocol_detect_caps(git_pkt_ref *pkt, git_transport_caps *caps); #endif |
