diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-05-04 19:54:22 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-05-04 19:55:13 +0200 |
commit | 29c798a52907b7ee28c8e001c99ceed65ebe5d39 (patch) | |
tree | 9a4c83a0e57a5dc8e69c3937e9ab0225c3346f5f /uclient-backend.h | |
parent | f9d9e776e6378bfe24737d6c4a7573f3842c7a9b (diff) | |
download | uclient-29c798a52907b7ee28c8e001c99ceed65ebe5d39.tar.gz |
add uclient_disconnect() to force a disconnect without further callbacks
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'uclient-backend.h')
-rw-r--r-- | uclient-backend.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/uclient-backend.h b/uclient-backend.h index 4cba048..a5cf4f3 100644 --- a/uclient-backend.h +++ b/uclient-backend.h @@ -29,6 +29,7 @@ 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); |