mirror of
https://github.com/CovidBraceletPrj/CovidBracelet.git
synced 2024-11-12 22:48:52 +01:00
Move period_contact_t to header file
This commit is contained in:
parent
f56a2dca54
commit
fa8d82c496
@ -54,15 +54,6 @@ typedef struct contact {
|
||||
#endif
|
||||
|
||||
|
||||
typedef struct period_contact {
|
||||
uint32_t duration;
|
||||
uint16_t cnt;
|
||||
int8_t max_rssi; //TODO also store avg rssi?
|
||||
rolling_proximity_identifier_t rolling_proximity_identifier;
|
||||
associated_encrypted_metadata_t associated_encrypted_metadata;
|
||||
} period_contact_t;
|
||||
|
||||
|
||||
typedef struct period_contacts{
|
||||
int cnt;
|
||||
period_contact_t period_contacts[MAX_PERIOD_CONTACTS];
|
||||
|
@ -13,6 +13,14 @@
|
||||
#include "covid_types.h"
|
||||
#include "covid.h"
|
||||
|
||||
typedef struct period_contact {
|
||||
uint32_t duration;
|
||||
uint16_t cnt;
|
||||
int8_t max_rssi; //TODO also store avg rssi?
|
||||
rolling_proximity_identifier_t rolling_proximity_identifier;
|
||||
associated_encrypted_metadata_t associated_encrypted_metadata;
|
||||
} period_contact_t;
|
||||
|
||||
void init_contacts();
|
||||
int check_add_contact(uint32_t contact_time, rolling_proximity_identifier_t* rpi, associated_encrypted_metadata_t* aem, int8_t rssi);
|
||||
void key_change(int current_period_index);
|
||||
|
Loading…
Reference in New Issue
Block a user