X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuclient.git;a=blobdiff_plain;f=uclient-backend.h;h=fdebf2618d0f2ad9361ac8dc85f59b8080a3776d;hp=5f83995d5835932ea3a5734c3c24cc250859dac8;hb=5e0b24f3a921081162706598d1ebea9d403d3187;hpb=9099aff296c1fdc4ba49908018b46f913fe7d9e7 diff --git a/uclient-backend.h b/uclient-backend.h index 5f83995..fdebf26 100644 --- a/uclient-backend.h +++ b/uclient-backend.h @@ -8,6 +8,7 @@ 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); @@ -27,8 +28,9 @@ struct uclient_url { const char *auth; }; -extern const struct uclient_backend uclient_backend_http; +void uclient_backend_set_error(struct uclient *cl); 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); #endif