diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-07-25 10:40:59 +0200 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-07-30 20:28:16 +0200 |
commit | ad4b5beb50dc484f86534dc127646eafb39d96fe (patch) | |
tree | 93cd4a4a32c2fc21c7b2977f32e64c649620510d /src/protocol.h | |
parent | b49c8f71aef574ce6606282a498627f5106220d5 (diff) | |
download | libgit2-ad4b5beb50dc484f86534dc127646eafb39d96fe.tar.gz |
transport: store the refs in a common area
Instad of each transport having its own function and logic to get to
its refs, store them directly in transport.
Leverage the new gitno_buffer to make the parsing and storing of the
refs use common code and get rid of the git_protocol struct.
Diffstat (limited to 'src/protocol.h')
-rw-r--r-- | src/protocol.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/protocol.h b/src/protocol.h index 9d53480f3..615be8d63 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -11,15 +11,7 @@ #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 |