Skip to content

Commit

Permalink
doveadm-server: http: Added structural comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanbosch committed Oct 24, 2017
1 parent 5927e94 commit 14e38f2
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/doveadm/client-connection-http.c
Expand Up @@ -81,6 +81,12 @@ struct doveadm_http_server_mount {

static struct http_server *doveadm_http_server;

static void doveadm_http_server_send_response(void *context);

/*
* API
*/

static void doveadm_http_server_options_handler(struct client_connection_http *);
static void doveadm_http_server_print_mounts(struct client_connection_http *);
static void doveadm_http_server_send_api_v1(struct client_connection_http *);
Expand Down Expand Up @@ -110,8 +116,6 @@ static struct doveadm_http_server_mount doveadm_http_server_mounts[] = {
}
};

static void doveadm_http_server_send_response(void *context);

static void doveadm_http_server_json_error(void *context, const char *error)
{
struct client_connection_http *conn = context;
Expand Down Expand Up @@ -658,6 +662,10 @@ doveadm_http_server_print_mounts(struct client_connection_http *conn)
doveadm_http_server_send_response(conn);
}

/*
* Request
*/

static void doveadm_http_server_send_response(void *context)
{
struct client_connection_http *conn = context;
Expand Down Expand Up @@ -877,6 +885,10 @@ doveadm_http_server_handle_request(void *context, struct http_server_request *ht
}
}

/*
* Connection
*/

static void doveadm_http_server_connection_destroy(void *context, const char *reason);

static const struct http_server_callbacks doveadm_http_callbacks = {
Expand Down Expand Up @@ -942,6 +954,10 @@ doveadm_http_server_connection_destroy(void *context,
client_connection_destroy(&bconn);
}

/*
* Server
*/

void doveadm_http_server_init(void)
{
struct http_server_settings http_set = {
Expand Down

0 comments on commit 14e38f2

Please sign in to comment.