void oauth2_request_free_internal(struct oauth2_request *req);
-void oauth2_parse_json(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);
oauth2_request_callback(req, &res);
}
-void oauth2_parse_json(struct oauth2_request *req)
+void oauth2_request_parse_json(struct oauth2_request *req)
{
enum json_type type;
const char *token, *error;
p_array_init(&req->fields, req->pool, 1);
req->parser = json_parser_init(req->is);
req->json_parsed_cb = oauth2_request_continue;
- req->io = io_add_istream(req->is, oauth2_parse_json, req);
- oauth2_parse_json(req);
+ req->io = io_add_istream(req->is, oauth2_request_parse_json, req);
+ oauth2_request_parse_json(req);
}
void oauth2_request_set_headers(struct oauth2_request *req,
/* Parse the JSON response */
for (pos = 0; pos <= strlen(test_input); pos +=2) {
test_istream_set_size(req->is, pos);
- oauth2_parse_json(req);
+ oauth2_request_parse_json(req);
if (req->is == NULL)
break;
}