From 29c798a52907b7ee28c8e001c99ceed65ebe5d39 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 4 May 2014 19:54:22 +0200 Subject: add uclient_disconnect() to force a disconnect without further callbacks Signed-off-by: Felix Fietkau --- uclient-backend.h | 1 + 1 file changed, 1 insertion(+) (limited to 'uclient-backend.h') 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); -- cgit v1.2.1