X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuclient.git;a=blobdiff_plain;f=uclient.h;h=e8214c28008ef7ee3258073dfd94ccfe662baea5;hp=60b021e9993c02dbd49cdd341f80d43d10ac8d0f;hb=438ebb9ce2bfd5cf3ab940667029c27346dc5160;hpb=4a3a8cb176aa932ed4bc88354fad76d91764c65f diff --git a/uclient.h b/uclient.h index 60b021e..e8214c2 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, const char *auth); +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);