add uclient_disconnect() to force a disconnect without further callbacks
[project/uclient.git] / uclient-backend.h
index 4cba048f6965c872d3e070d8a108a99f292dc929..a5cf4f3d392ab9fd5fa2a6510d49c0f6bcfb355b 100644 (file)
@@ -29,6 +29,7 @@ struct uclient_backend {
 
        int (*connect)(struct uclient *cl);
        int (*request)(struct uclient *cl);
+       void (*disconnect)(struct uclient *cl);
 
        int (*read)(struct uclient *cl, char *buf, unsigned int len);
        int (*write)(struct uclient *cl, char *buf, unsigned int len);