uclient: fix http regression
[project/uclient.git] / uclient-backend.h
index b013cde0b05dd04c4ffaa97a26ef430191ab1bd0..1b808ac8f705369d12006f119122c813839c9009 100644 (file)
@@ -34,6 +34,7 @@ struct uclient_backend {
 
        int (*read)(struct uclient *cl, char *buf, unsigned int len);
        int (*write)(struct uclient *cl, const char *buf, unsigned int len);
+       int (*pending_bytes)(struct uclient *cl, bool write);
 };
 
 void uclient_backend_set_error(struct uclient *cl, int code);