upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/components/wisp_relay/flash_monitor.h
blob: 86f1b531cf084e9aface531d7a5333291f0af823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef FLASH_MONITOR_H
#define FLASH_MONITOR_H

#include <stdint.h>
#include <stddef.h>

typedef struct {
    size_t total_bytes;
    size_t used_bytes;
    size_t free_bytes;
    float usage_percent;
} flash_health_t;

void flash_get_health(const char *partition_label, flash_health_t *health);

#endif