mirror of
https://github.com/CovidBraceletPrj/CovidBracelet.git
synced 2025-01-09 12:44:24 +01:00
Storage: Use correct datatypes for storage information
This commit is contained in:
parent
e36bfa751a
commit
ece832fbff
@ -1,11 +1,12 @@
|
|||||||
#ifndef CONTACT_STORAGE_H
|
#ifndef CONTACT_STORAGE_H
|
||||||
#define CONTACT_STORAGE_H
|
#define CONTACT_STORAGE_H
|
||||||
|
|
||||||
#include "../contacts.h" // Requires contact_t in contacts.h!
|
#include <zephyr/types.h>
|
||||||
|
|
||||||
#include "../covid_types.h"
|
#include "../covid_types.h"
|
||||||
#include "sequencenumber.h"
|
#include "sequencenumber.h"
|
||||||
|
|
||||||
typedef uint16_t storage_id_t;
|
typedef uint64_t storage_id_t;
|
||||||
|
|
||||||
typedef struct record {
|
typedef struct record {
|
||||||
record_sequence_number_t sn; // TODO: Convert Sequence Number
|
record_sequence_number_t sn; // TODO: Convert Sequence Number
|
||||||
@ -17,7 +18,7 @@ typedef struct record {
|
|||||||
|
|
||||||
typedef struct stored_records_information {
|
typedef struct stored_records_information {
|
||||||
record_sequence_number_t oldest_contact;
|
record_sequence_number_t oldest_contact;
|
||||||
record_sequence_number_t count;
|
uint32_t count;
|
||||||
} stored_records_information_t;
|
} stored_records_information_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user