mirror of
https://github.com/CovidBraceletPrj/CovidBracelet.git
synced 2024-06-13 16:09:58 +02:00
21 lines
349 B
C
21 lines
349 B
C
#ifndef STORAGE_H
|
|
#define STORAGE_H
|
|
|
|
#include "contacts.h"
|
|
|
|
/**
|
|
* Initialize the storage api.
|
|
*/
|
|
int init_storage(void);
|
|
|
|
/**
|
|
* Store all contacts of a period in flash.
|
|
*/
|
|
int store_period_contacts(period_contacts_t contacts);
|
|
|
|
/**
|
|
* Get all contacts for a certain period.
|
|
*/
|
|
period_contacts_t get_contacts_for_period(uint16_t period);
|
|
|
|
#endif |