libcontrac
A library for contact tracing
|
Provides a list of RPIs. More...
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include <stdint.h>
#include "contrac/contrac.h"
#include "contrac/utils.h"
#include "contrac/log.h"
#include "contrac/dtk_list.h"
#include "contrac/rpi_list.h"
Data Structures | |
struct | RpiListItem |
An RPI list element. More... | |
struct | RpiList |
The head of an RPI list. More... | |
Functions | |
RpiList * | rpi_list_new () |
void | rpi_list_delete (RpiList *data) |
void | rpi_list_append (RpiList *data, Rpi *rpi) |
RpiListItem const * | rpi_list_first (RpiList const *data) |
RpiListItem const * | rpi_list_next (RpiListItem const *data) |
Rpi const * | rpi_list_get_rpi (RpiListItem const *data) |
void | rpi_list_add_beacon (RpiList *data, unsigned char const *rpi_bytes, uint8_t time_interval_number) |
Provides a list of RPIs.
Copyright David Llewellyn-Jones, 2020 Released under the GPLv2.
This class allows the simplified management of lists of Rpi objects. This is useful when checking DTKs received from a Diagnosis Server with RPIs captured over Bluetooth. Combined with the DtkList class the two can be easily stored and passed into the match_list_find_matches() function.