mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-28 05:04:16 -05:00
Drop async mode from http client, not needed and probably not working
This commit is contained in:
11
src/http.h
11
src/http.h
@@ -10,11 +10,10 @@
|
||||
|
||||
struct http_client_ctx
|
||||
{
|
||||
int async;
|
||||
const char *url;
|
||||
|
||||
/* For sync mode, a keyval/evbuf to store response headers and body
|
||||
* Can be set to NULL to ignore that part of the response
|
||||
/* A keyval/evbuf to store response headers and body.
|
||||
* Can be set to NULL to ignore that part of the response.
|
||||
*/
|
||||
struct keyval *headers;
|
||||
struct evbuffer *body;
|
||||
@@ -25,9 +24,6 @@ struct http_client_ctx
|
||||
*/
|
||||
int headers_only;
|
||||
|
||||
/* For async mode */
|
||||
void (*cb)(struct evhttp_request *, void *);
|
||||
|
||||
/* Private */
|
||||
int ret;
|
||||
void *evbase;
|
||||
@@ -51,8 +47,7 @@ struct http_icy_metadata
|
||||
};
|
||||
|
||||
|
||||
/* Generic HTTP client
|
||||
* Can be called blocking or non-blocking. No support for https.
|
||||
/* Generic HTTP client. No support for https.
|
||||
*
|
||||
* @param ctx HTTP request params, see above
|
||||
* @return 0 if successful, -1 if an error occurred
|
||||
|
||||
Reference in New Issue
Block a user