libcontrac
A library for contact tracing
dtk_list.h
Go to the documentation of this file.
1 
25 #ifndef __DTK_LIST_H
26 #define __DTK_LIST_H
27 
28 // Includes
29 
30 #include "contrac/contrac.h"
31 #include "contrac/dtk.h"
32 
33 // Defines
34 
35 // Structures
36 
42 typedef struct _DtkList DtkList;
43 
49 typedef struct _DtkListItem DtkListItem;
50 
51 // Function prototypes
52 
53 DtkList * dtk_list_new();
54 void dtk_list_delete(DtkList * data);
55 
56 void dtk_list_append(DtkList * data, Dtk * dtk);
57 void dtk_list_add_diagnosis(DtkList * data, unsigned char const * dtk_bytes, uint32_t day_number);
58 
59 DtkListItem const * dtk_list_first(DtkList const * data);
60 DtkListItem const * dtk_list_next(DtkListItem const * data);
61 Dtk const * dtk_list_get_dtk(DtkListItem const * data);
62 
63 // Function definitions
64 
65 #endif // __DTK_LIST_H
66 
void dtk_list_append(DtkList *data, Dtk *dtk)
Definition: dtk_list.c:122
The head of a DTK list.
Definition: dtk_list.c:66
void dtk_list_delete(DtkList *data)
Definition: dtk_list.c:95
DtkListItem const * dtk_list_next(DtkListItem const *data)
Definition: dtk_list.c:158
void dtk_list_add_diagnosis(DtkList *data, unsigned char const *dtk_bytes, uint32_t day_number)
Definition: dtk_list.c:182
DtkListItem const * dtk_list_first(DtkList const *data)
Definition: dtk_list.c:146
Core Contact Tracing functionality.
Daily Tracing Key functionality.
A DTK list element.
Definition: dtk_list.c:50
Dtk const * dtk_list_get_dtk(DtkListItem const *data)
Definition: dtk_list.c:168
DtkList * dtk_list_new()
Definition: dtk_list.c:80