X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuclient.git;a=blobdiff_plain;f=uclient-backend.h;h=c2b9fd538189e2c4a96240bb7bae159031abd3eb;hp=4cba048f6965c872d3e070d8a108a99f292dc929;hb=f2573da7f508a916177af41efc56233a4985c498;hpb=c2bfab5a8c892c890c6fa374319c30f1a1728888 diff --git a/uclient-backend.h b/uclient-backend.h index 4cba048..c2b9fd5 100644 --- a/uclient-backend.h +++ b/uclient-backend.h @@ -25,18 +25,21 @@ 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); 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); void uclient_backend_set_eof(struct uclient *cl); void uclient_backend_reset_state(struct uclient *cl); struct uclient_url *uclient_get_url(const char *url_str, const char *auth_str); +struct uclient_url *uclient_get_url_location(struct uclient_url *url, const char *location); #endif