X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuclient.git;a=blobdiff_plain;f=uclient-backend.h;h=9ccc7999dbf7a0e3251db9d0a1be9ca90890f779;hp=4cba048f6965c872d3e070d8a108a99f292dc929;hb=81fdb8fdf1470e1c7bf3124ff20d17feaeb519ee;hpb=c2bfab5a8c892c890c6fa374319c30f1a1728888 diff --git a/uclient-backend.h b/uclient-backend.h index 4cba048..9ccc799 100644 --- a/uclient-backend.h +++ b/uclient-backend.h @@ -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);