diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-07-24 19:03:22 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-07-30 20:28:16 +0200 |
| commit | b49c8f71aef574ce6606282a498627f5106220d5 (patch) | |
| tree | b4a9d07716c80b48e68f36d8fb3fb6c142447ac6 /src/protocol.h | |
| parent | 114dc6e14c47ff574b4c97d4519782de3f9d28b2 (diff) | |
| download | libgit2-b49c8f71aef574ce6606282a498627f5106220d5.tar.gz | |
remote: use the same code to control git and http
This allows us to add capabilitites to both at the same time, keeps
them in sync and removes a lot of code.
gitno_buffer now uses a callback to fill its buffer, allowing us to
use the same interface for git and http (which uses callbacks).
Diffstat (limited to 'src/protocol.h')
| -rw-r--r-- | src/protocol.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/protocol.h b/src/protocol.h index a6c3e0735..9d53480f3 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -9,6 +9,7 @@ #include "transport.h" #include "buffer.h" +#include "pkt.h" typedef struct { git_transport *transport; @@ -19,5 +20,6 @@ typedef struct { } git_protocol; int git_protocol_store_refs(git_protocol *p, const char *data, size_t len); +int git_protocol_detect_caps(git_pkt_ref *pkt, git_transport_caps *caps); #endif |
