summaryrefslogtreecommitdiff
path: root/uclient.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-29 14:49:59 +0100
committerFelix Fietkau <nbd@openwrt.org>2014-03-29 14:49:59 +0100
commit2b80c2689068258eab5e94f92a6d1e7b7550094b (patch)
treed4b47a8d2d3fba149b8b58052a1c362e2debddf1 /uclient.h
parent4a3a8cb176aa932ed4bc88354fad76d91764c65f (diff)
downloaduclient-2b80c2689068258eab5e94f92a6d1e7b7550094b.tar.gz
split setting url from connecting
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'uclient.h')
-rw-r--r--uclient.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/uclient.h b/uclient.h
index 60b021e..3520473 100644
--- a/uclient.h
+++ b/uclient.h
@@ -58,13 +58,8 @@ struct uclient_cb {
struct uclient *uclient_new(const char *url, const char *auth_str, const struct uclient_cb *cb);
void uclient_free(struct uclient *cl);
-int uclient_connect_url(struct uclient *cl, const char *url_str);
-
-static inline int uclient_connect(struct uclient *cl)
-{
- return uclient_connect_url(cl, NULL);
-}
-
+int uclient_set_url(struct uclient *cl, const char *url_str);
+int uclient_connect(struct uclient *cl);
int uclient_read(struct uclient *cl, char *buf, int len);
int uclient_write(struct uclient *cl, char *buf, int len);