diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-07-24 14:23:16 +0200 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-07-30 20:25:10 +0200 |
commit | 64d01de8a7802ebec031f921496747bf09426df1 (patch) | |
tree | 92827c074298b1a21c50f72d43a99a573b1c720b /src/netops.h | |
parent | 50364dd892ae6726ff34e1842711e29d0f20c51d (diff) | |
download | libgit2-64d01de8a7802ebec031f921496747bf09426df1.tar.gz |
remote: start moving the protocol to a common area
For the transition, http is going to keep its own logic until the
git/common code catches up with the implied multi_ack that http
has. This also has the side-effect of making the code cleaner and more
correct regardingt he protocol.
Diffstat (limited to 'src/netops.h')
-rw-r--r-- | src/netops.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/netops.h b/src/netops.h index 4976f87f8..e2c2b8171 100644 --- a/src/netops.h +++ b/src/netops.h @@ -8,10 +8,9 @@ #define INCLUDE_netops_h__ #include "posix.h" -#include "transport.h" #include "common.h" -typedef struct gitno_buffer { +struct gitno_buffer { char *data; size_t len; size_t offset; @@ -19,7 +18,7 @@ typedef struct gitno_buffer { #ifdef GIT_SSL struct gitno_ssl *ssl; #endif -} gitno_buffer; +}; void gitno_buffer_setup(git_transport *t, gitno_buffer *buf, char *data, unsigned int len); int gitno_recv(gitno_buffer *buf); |