}
static void
-doveadm_http_server_request_destroy(void *context)
+doveadm_http_server_request_destroy(struct client_connection_http *conn)
{
- struct client_connection_http *conn = context;
struct http_server_response *resp =
http_server_request_get_response(conn->http_server_request);
/* request */
static void
-http_server_request_destroyed(void *context);
+http_server_request_destroyed(struct client_request *creq);
static struct client_request *
client_request_init(struct client *client,
}
static void
-http_server_request_destroyed(void *context)
+http_server_request_destroyed(struct client_request *creq)
{
- struct client_request *creq =
- (struct client_request *)context;
-
client_request_deinit(&creq);
}
};
static void
-test_server_slow_request_destroyed(void *context)
+test_server_slow_request_destroyed(struct _slow_request *ctx)
{
- struct _slow_request *ctx = (struct _slow_request *)context;
test_assert(ctx->serviced);
if (ctx->to_delay != NULL)
timeout_remove(&ctx->to_delay);
};
static void
-test_server_hanging_request_payload_destroyed(void *context)
+test_server_hanging_request_payload_destroyed(struct _hanging_request_payload *ctx)
{
- struct _hanging_request_payload *ctx =
- (struct _hanging_request_payload *)context;
test_assert(!ctx->serviced);
if (ctx->io != NULL)
io_remove(&ctx->io);
};
static void
-test_server_hanging_response_payload_destroyed(void *context)
+test_server_hanging_response_payload_destroyed(struct _hanging_response_payload *ctx)
{
- struct _hanging_response_payload *ctx =
- (struct _hanging_response_payload *)context;
test_assert(!ctx->serviced);
if (ctx->io != NULL)
io_remove(&ctx->io);