libcontrac
A library for contact tracing
Functions
dtk_list.h File Reference

Provides a list of DTKs. More...

#include "contrac/contrac.h"
#include "contrac/dtk.h"
Include dependency graph for dtk_list.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

DtkList * dtk_list_new ()
 
void dtk_list_delete (DtkList *data)
 
void dtk_list_append (DtkList *data, Dtk *dtk)
 
void dtk_list_add_diagnosis (DtkList *data, unsigned char const *dtk_bytes, uint32_t day_number)
 
DtkListItem const * dtk_list_first (DtkList const *data)
 
DtkListItem const * dtk_list_next (DtkListItem const *data)
 
Dtk const * dtk_list_get_dtk (DtkListItem const *data)
 

Detailed Description

Provides a list of DTKs.

Author
David Llewellyn-Jones david.nosp@m.@fly.nosp@m.pig.c.nosp@m.o.uk
Version
0.01

LICENSE

Copyright David Llewellyn-Jones, 2020 Released under the GPLv2.

DESCRIPTION

This class allows the simplified management of lists of Dtk objects. This is useful when checking DTKs received from a Diagnosis Server with RPIs captured over Bluetooth. Combined with the RpiList class the two can be easily stored and passed into the match_list_find_matches() function.