diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-03-22 18:31:41 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-03-22 18:31:51 +0100 |
commit | 95fa6036384f116a2cc1e9f1298bea57ef81d611 (patch) | |
tree | d43ce8212b44f99f75cc1ff13286765331844517 | |
parent | dbd61a7a6d5b61ba24d73f56e97b4d56baedffaf (diff) | |
download | uclient-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>
-rw-r--r-- | uclient-backend.h | 1 | ||||
-rw-r--r-- | uclient-http.c | 2 | ||||
-rw-r--r-- | uclient.h | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/uclient-backend.h b/uclient-backend.h index 5022715..47de675 100644 --- a/uclient-backend.h +++ b/uclient-backend.h @@ -28,7 +28,6 @@ struct uclient_url { const char *auth; }; -extern const struct uclient_backend uclient_backend_http; void uclient_backend_set_eof(struct uclient *cl); void uclient_backend_reset_state(struct uclient *cl); diff --git a/uclient-http.c b/uclient-http.c index ef44a40..b6f28e1 100644 --- a/uclient-http.c +++ b/uclient-http.c @@ -850,7 +850,7 @@ uclient_http_read(struct uclient *cl, char *buf, unsigned int len) return len; } -const struct uclient_backend uclient_backend_http __hidden = { +const struct uclient_backend uclient_backend_http = { .prefix = uclient_http_prefix, .alloc = uclient_http_alloc, @@ -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); |