summaryrefslogtreecommitdiff
path: root/uclient.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-22 18:31:41 +0100
committerFelix Fietkau <nbd@openwrt.org>2014-03-22 18:31:51 +0100
commit95fa6036384f116a2cc1e9f1298bea57ef81d611 (patch)
treed43ce8212b44f99f75cc1ff13286765331844517 /uclient.h
parentdbd61a7a6d5b61ba24d73f56e97b4d56baedffaf (diff)
downloaduclient-95fa6036384f116a2cc1e9f1298bea57ef81d611.tar.gz
make uclient_backend_http visible to allow the client to test for it
the struct is still opaque, it is only used for pointer tests Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'uclient.h')
-rw-r--r--uclient.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/uclient.h b/uclient.h
index d328b14..f4009e0 100644
--- a/uclient.h
+++ b/uclient.h
@@ -47,6 +47,8 @@ int uclient_write(struct uclient *cl, char *buf, int len);
int uclient_request(struct uclient *cl);
/* HTTP */
+extern const struct uclient_backend uclient_backend_http;
+
int uclient_http_set_header(struct uclient *cl, const char *name, const char *value);
int uclient_http_reset_headers(struct uclient *cl, const char *name, const char *value);
int uclient_http_set_request_type(struct uclient *cl, const char *type);