void oauth2_request_set_headers(struct oauth2_request *req,
const struct oauth2_request_input *input);
-void oauth2_request_free_internal(struct oauth2_request *req);
-
void oauth2_request_parse_json(struct oauth2_request *req);
int oauth2_json_tree_build(const buffer_t *json, struct json_tree **tree_r,
const char **error_r);
#include "oauth2.h"
#include "oauth2-private.h"
-void oauth2_request_free_internal(struct oauth2_request *req)
+static void oauth2_request_free(struct oauth2_request *req)
{
timeout_remove(&req->to_delayed_error);
pool_unref(&req->pool);
oauth2_request_callback_t *callback = req->req_callback;
req->req_callback = NULL;
callback(res, req->req_context);
- oauth2_request_free_internal(req);
+ oauth2_request_free(req);
}
static bool
*_req = NULL;
http_client_request_abort(&req->req);
- oauth2_request_free_internal(req);
+ oauth2_request_free(req);
}