diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2014-11-01 16:58:20 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-12-10 01:39:09 +0100 |
| commit | 02b4c1e2a426404ad7cad8e8a114f7f36bdb8b59 (patch) | |
| tree | a25b5c8a9b07d1d75f05e6fec5b1f407ac203de1 /src/netops.h | |
| parent | 468d7b11f9642f37a2c54e6fd6d539b223a103aa (diff) | |
| download | libgit2-02b4c1e2a426404ad7cad8e8a114f7f36bdb8b59.tar.gz | |
Port the TCP transport to the new stream API
Diffstat (limited to 'src/netops.h')
| -rw-r--r-- | src/netops.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/netops.h b/src/netops.h index 8ad915301..fee6d82da 100644 --- a/src/netops.h +++ b/src/netops.h @@ -9,6 +9,7 @@ #include "posix.h" #include "common.h" +#include "stream.h" #ifdef GIT_SSL # include <openssl/ssl.h> @@ -32,6 +33,7 @@ typedef struct gitno_buffer { char *data; size_t len; size_t offset; + git_stream *io; gitno_socket *socket; int (*recv)(struct gitno_buffer *buffer); void *cb_data; @@ -57,6 +59,7 @@ enum { int gitno__match_host(const char *pattern, const char *host); void gitno_buffer_setup(gitno_socket *t, gitno_buffer *buf, char *data, size_t len); +void gitno_buffer_setup_fromstream(git_stream *st, gitno_buffer *buf, char *data, size_t len); void gitno_buffer_setup_callback(gitno_socket *t, gitno_buffer *buf, char *data, size_t len, int (*recv)(gitno_buffer *buf), void *cb_data); int gitno_recv(gitno_buffer *buf); |
