X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuclient.git;a=blobdiff_plain;f=uclient-backend.h;h=a5cf4f3d392ab9fd5fa2a6510d49c0f6bcfb355b;hp=fb1a788e205e3405f8e49c466fc4a042f1a01772;hb=c8e85b4714709aebaa055bea6cc5a26b8eda4071;hpb=299b1af9c051248771537980ee2d16c29c61376d;ds=sidebyside diff --git a/uclient-backend.h b/uclient-backend.h index fb1a788..a5cf4f3 100644 --- a/uclient-backend.h +++ b/uclient-backend.h @@ -29,22 +29,12 @@ 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); }; -struct uclient_url { - const struct uclient_backend *backend; - int prefix; - - const char *host; - const char *port; - const char *location; - - const char *auth; -}; - 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);