libcontrac
A library for contact tracing
Data Structures | Functions
rpi_list.c File Reference

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"
Include dependency graph for rpi_list.c:

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)
 

Detailed Description

Provides a list of RPIs.

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 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.