check for length > 0 before calling ustream_write
[project/uclient.git] / uclient-backend.h
index f72c11f..5022715 100644 (file)
@@ -8,13 +8,13 @@ struct uclient_backend {
 
        struct uclient *(*alloc)(void);
        void (*free)(struct uclient *cl);
+       void (*update_url)(struct uclient *cl);
 
        int (*connect)(struct uclient *cl);
        int (*request)(struct uclient *cl);
 
        int (*read)(struct uclient *cl, char *buf, unsigned int len);
        int (*write)(struct uclient *cl, char *buf, unsigned int len);
-       int (*set_write_len)(struct uclient *cl, unsigned int len);
 };
 
 struct uclient_url {