diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2014-11-02 11:17:01 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-12-10 01:39:09 +0100 |
| commit | 1b75c29e3e175ad3ef4bc91a779b851dc76b9e09 (patch) | |
| tree | 63516db94cc4900999122c74671b8d85d44c4d67 /src/netops.h | |
| parent | 4fd4341fe5da5353d50769c007e3189adaf12fd7 (diff) | |
| download | libgit2-1b75c29e3e175ad3ef4bc91a779b851dc76b9e09.tar.gz | |
gitno: remove code which is no longer needed
Most of the network-facing facilities have been copied to the socket and
openssl streams. No code now uses these functions directly anymore, so
we can now remove them.
Diffstat (limited to 'src/netops.h')
| -rw-r--r-- | src/netops.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/netops.h b/src/netops.h index fee6d82da..d5f0ca3f3 100644 --- a/src/netops.h +++ b/src/netops.h @@ -33,8 +33,6 @@ 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; } gitno_buffer; @@ -58,19 +56,13 @@ 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); +void gitno_buffer_setup_callback(gitno_buffer *buf, char *data, size_t len, int (*recv)(gitno_buffer *buf), void *cb_data); int gitno_recv(gitno_buffer *buf); void gitno_consume(gitno_buffer *buf, const char *ptr); void gitno_consume_n(gitno_buffer *buf, size_t cons); -int gitno_connect(gitno_socket *socket, const char *host, const char *port, int flags); -int gitno_send(gitno_socket *socket, const char *msg, size_t len, int flags); -int gitno_close(gitno_socket *s); -int gitno_select_in(gitno_buffer *buf, long int sec, long int usec); - typedef struct gitno_connection_data { char *host; char *port; |
