X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=uclient.h;h=212fb7d71e84d58c9761615d7e1e0688e1647b69;hb=a7bfe2ff1df0743b3c34d78b14eb8b5c6b239a40;hp=5904a38dbc97e537dd371a8e25d1cd9a39a39068;hpb=6c222d0646fa7c07be96d729009916d5af295332;p=project%2Fuclient.git diff --git a/uclient.h b/uclient.h index 5904a38..212fb7d 100644 --- a/uclient.h +++ b/uclient.h @@ -69,6 +69,7 @@ struct uclient { bool data_eof; int error_code; int status_code; + int seq; struct blob_attr *meta; struct uloop_timeout connection_timeout; @@ -106,7 +107,7 @@ int uclient_connect(struct uclient *cl); void uclient_disconnect(struct uclient *cl); int uclient_read(struct uclient *cl, char *buf, int len); -int uclient_write(struct uclient *cl, char *buf, int len); +int uclient_write(struct uclient *cl, const char *buf, int len); int uclient_request(struct uclient *cl); char *uclient_get_addr(char *dest, int *port, union uclient_addr *a);