summaryrefslogtreecommitdiff
path: root/src/html.h
blob: d4aaea5137b19d4ec60a79bbd2059c1e7ba0f6b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "app.h"
#include <stddef.h>

char *html_render_login_page(const char *error_msg, size_t *out_len);

char *html_render_clients_page(
    const char *host,
    const struct ListClientResult *clients,
    size_t *out_len);

char *html_render_client_detail_page(
    const char *host,
    const char *proto,
    const struct GetClientOnlyResult *client,
    const struct GetBackupsResult *backups,
    size_t *out_len);