add uclient_disconnect() to force a disconnect without further callbacks
[project/uclient.git] / uclient.h
index fcd7769e711bb4d1a23b4a72a7d676e01ce2e506..ddc8b7845f9baaaee13ab766c93db706b191ff33 100644 (file)
--- a/uclient.h
+++ b/uclient.h
@@ -82,6 +82,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);