]> git.proxmox.com Git - libgit2.git/blobdiff - src/netops.h
New upstream version 1.1.0+dfsg.1
[libgit2.git] / src / netops.h
index f376bd911f6a7d36c87a5402bd39fff5a2861194..52f1cccb6068cc925e3e2aa9731111bde771da94 100644 (file)
@@ -11,6 +11,7 @@
 
 #include "posix.h"
 #include "stream.h"
+#include "net.h"
 
 #ifdef GIT_OPENSSL
 # include <openssl/ssl.h>
@@ -64,38 +65,4 @@ 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);
 
-typedef struct gitno_connection_data {
-       char *host;
-       char *port;
-       char *path;
-       char *user;
-       char *pass;
-       bool use_ssl;
-} gitno_connection_data;
-
-/*
- * This replaces all the pointers in `data` with freshly-allocated strings,
- * that the caller is responsible for freeing.
- * `gitno_connection_data_free_ptrs` is good for this.
- */
-
-int gitno_connection_data_from_url(
-               gitno_connection_data *data,
-               const char *url,
-               const char *service_suffix);
-
-/* This frees all the pointers IN the struct, but not the struct itself. */
-void gitno_connection_data_free_ptrs(gitno_connection_data *data);
-
-int gitno_extract_url_parts(
-               char **host,
-               char **port,
-               char **path,
-               char **username,
-               char **password,
-               const char *url,
-               const char *default_port);
-
-const char *gitno__default_port(gitno_connection_data *data);
-
 #endif