X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuclient.git;a=blobdiff_plain;f=uclient.h;h=d5a0d5b4f804dd68523c4993921fe50edc8d1da3;hp=fcd7769e711bb4d1a23b4a72a7d676e01ce2e506;hb=89206c007782709a530c46254115c371c83eaf93;hpb=c2bfab5a8c892c890c6fa374319c30f1a1728888 diff --git a/uclient.h b/uclient.h index fcd7769..d5a0d5b 100644 --- a/uclient.h +++ b/uclient.h @@ -62,6 +62,7 @@ struct uclient { void *priv; bool eof; + bool data_eof; int error_code; int status_code; struct blob_attr *meta; @@ -82,6 +83,7 @@ void uclient_free(struct uclient *cl); int uclient_set_url(struct uclient *cl, const char *url, const char *auth); int uclient_connect(struct uclient *cl); +void uclient_disconnect(struct uclient *cl); int uclient_read(struct uclient *cl, char *buf, int len); int uclient_write(struct uclient *cl, char *buf, int len);