Add initial crypto functionality
[libcontrac.git] / include / contrac / match.h
1 /** \ingroup contrac
2 * @file
3 * @author David Llewellyn-Jones
4 * @version $(VERSION)
5 *
6 * @section LICENSE
7 *
8 *
9 *
10 * @brief
11 * @section DESCRIPTION
12 *
13 *
14 *
15 */
16
17 #ifndef __MATCH_H
18 #define __MATCH_H
19
20 // Includes
21
22 #include "contrac/contrac.h"
23 #include "contrac/dtk.h"
24
25 // Defines
26
27 // Structures
28
29 typedef struct _MatchList MatchList;
30 typedef struct _MatchListItem MatchListItem;
31
32 // Function prototypes
33
34 MatchList * match_list_new();
35 void match_list_delete(MatchList * data);
36
37 void match_list_clear(MatchList * data);
38 size_t match_list_count(MatchList * data);
39
40 uint32_t match_list_get_day_number(MatchListItem const * data);
41 uint8_t match_list_get_time_interval_number(MatchListItem const * data);
42
43 MatchListItem const * match_list_first(MatchList const * data);
44 MatchListItem const * match_list_next(MatchListItem const * data);
45
46 void match_list_find_matches(MatchList * data, RpiList * beacons, DtkList * diagnosis_keys);
47
48 // Function definitions
49
50 #endif // __MATCH_H
51
52