uclient-fetch: add support for setting output directory
[project/uclient.git] / uclient-backend.h
index a5cf4f3..84d7b87 100644 (file)
@@ -25,6 +25,7 @@ struct uclient_backend {
 
        struct uclient *(*alloc)(void);
        void (*free)(struct uclient *cl);
+       void (*update_proxy_url)(struct uclient *cl);
        void (*update_url)(struct uclient *cl);
 
        int (*connect)(struct uclient *cl);
@@ -32,7 +33,7 @@ struct uclient_backend {
        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);
+       int (*write)(struct uclient *cl, const char *buf, unsigned int len);
 };
 
 void uclient_backend_set_error(struct uclient *cl, int code);