libcontrac
A library for contact tracing
match.h
Go to the documentation of this file.
1 
27 #ifndef __MATCH_H
28 #define __MATCH_H
29 
30 // Includes
31 
32 #include "contrac/contrac.h"
33 #include "contrac/dtk.h"
34 
35 // Defines
36 
37 // Structures
38 
44 typedef struct _MatchList MatchList;
45 
51 typedef struct _MatchListItem MatchListItem;
52 
53 // Function prototypes
54 
55 MatchList * match_list_new();
56 void match_list_delete(MatchList * data);
57 
58 void match_list_clear(MatchList * data);
59 size_t match_list_count(MatchList * data);
60 
61 uint32_t match_list_get_day_number(MatchListItem const * data);
62 uint8_t match_list_get_time_interval_number(MatchListItem const * data);
63 
64 MatchListItem const * match_list_first(MatchList const * data);
65 MatchListItem const * match_list_next(MatchListItem const * data);
66 
67 void match_list_find_matches(MatchList * data, RpiList * beacons, DtkList * diagnosis_keys);
68 
69 // Function definitions
70 
71 #endif // __MATCH_H
72 
MatchListItem const * match_list_first(MatchList const *data)
Definition: match.c:186
MatchList * match_list_new()
Definition: match.c:95
The head of a match list.
Definition: match.c:76
size_t match_list_count(MatchList *data)
Definition: match.c:174
MatchListItem const * match_list_next(MatchListItem const *data)
Definition: match.c:198
Core Contact Tracing functionality.
Daily Tracing Key functionality.
uint32_t match_list_get_day_number(MatchListItem const *data)
Definition: match.c:213
void match_list_clear(MatchList *data)
Definition: match.c:150
uint8_t match_list_get_time_interval_number(MatchListItem const *data)
Definition: match.c:227
A match list element.
Definition: match.c:58
void match_list_find_matches(MatchList *data, RpiList *beacons, DtkList *diagnosis_keys)
Definition: match.c:268
void match_list_delete(MatchList *data)
Definition: match.c:110