Browse Source

expose struct uclient_url

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Felix Fietkau 10 years ago
parent
commit
c2bfab5a8c
2 changed files with 11 additions and 11 deletions
  1. 0 11
      uclient-backend.h
  2. 11 0
      uclient.h

+ 0 - 11
uclient-backend.h

@@ -34,17 +34,6 @@ struct uclient_backend {
 	int (*write)(struct uclient *cl, char *buf, unsigned int len);
 };
 
-struct uclient_url {
-	const struct uclient_backend *backend;
-	int prefix;
-
-	const char *host;
-	const char *port;
-	const char *location;
-
-	const char *auth;
-};
-
 void uclient_backend_set_error(struct uclient *cl, int code);
 void uclient_backend_set_eof(struct uclient *cl);
 void uclient_backend_reset_state(struct uclient *cl);

+ 11 - 0
uclient.h

@@ -41,6 +41,17 @@ union uclient_addr {
 	struct sockaddr_in6 sin6;
 };
 
+struct uclient_url {
+	const struct uclient_backend *backend;
+	int prefix;
+
+	const char *host;
+	const char *port;
+	const char *location;
+
+	const char *auth;
+};
+
 struct uclient {
 	const struct uclient_backend *backend;
 	const struct uclient_cb *cb;