uclient-fetch: load CA certificates
[project/uclient.git] / uclient-backend.h
index 4cba048..9ccc799 100644 (file)
@@ -29,9 +29,10 @@ 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);
+       int (*write)(struct uclient *cl, const char *buf, unsigned int len);
 };
 
 void uclient_backend_set_error(struct uclient *cl, int code);