diff options
| author | Jesper Jensen <jesper@jnsn.dev> | 2026-02-18 22:14:54 +0100 |
|---|---|---|
| committer | Jesper Jensen <jesper@jnsn.dev> | 2026-02-18 22:14:54 +0100 |
| commit | 8d3257fe558727a3d64902e27539b5a5c28ba49f (patch) | |
| tree | 33d97cdcf4dd89f3e396b522d14edcca65106708 /src/web.h | |
| parent | 5fbbd990d6b42f5e7534cdb68fa5c368a4a69169 (diff) | |
Stop stalled backups
Diffstat (limited to 'src/web.h')
| -rw-r--r-- | src/web.h | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -41,6 +41,7 @@ struct Request { struct PostCollector pp; struct MHD_PostProcessor *post_proc; // NULL when using PostCollector struct FormData form; + const char *host; }; struct CreateClientResult { @@ -66,3 +67,24 @@ struct ListClientResult { int list_clients(struct Request *req, struct ListClientResult *result); +#define BACKUP_STATUS_MAX 16 +#define BACKUP_DATETIME_MAX 32 +#define MAX_BACKUPS_DISPLAY 50 + +struct BackupRecord { + int64_t id; + char status[BACKUP_STATUS_MAX]; + char started[BACKUP_DATETIME_MAX]; + char completed[BACKUP_DATETIME_MAX]; +}; + +struct GetClientResult { + int found; + int64_t id; + char name[CLIENT_NAME_MAX]; + char secret[CLIENT_SECRET_LEN]; + uint16_t backups_len; + struct BackupRecord backups[]; +}; + +int get_client_with_backups(struct Request *req, int64_t client_id, struct GetClientResult *result); |
