libcontrac
A library for contact tracing
rpi_list.h
Go to the documentation of this file.
1 
25 #ifndef __RPI_LIST_H
26 #define __RPI_LIST_H
27 
28 // Includes
29 
30 #include "contrac/contrac.h"
31 #include "contrac/rpi.h"
32 
33 // Defines
34 
35 // Structures
36 
42 typedef struct _RpiList RpiList;
43 
49 typedef struct _RpiListItem RpiListItem;
50 
51 // Function prototypes
52 
53 RpiList * rpi_list_new();
54 void rpi_list_delete(RpiList * data);
55 
56 void rpi_list_append(RpiList * data, Rpi * rpi);
57 void rpi_list_add_beacon(RpiList * data, unsigned char const * rpi_bytes, uint8_t time_interval_number);
58 
59 RpiListItem const * rpi_list_first(RpiList const * data);
60 RpiListItem const * rpi_list_next(RpiListItem const * data);
61 Rpi const * rpi_list_get_rpi(RpiListItem const * data);
62 
63 // Function definitions
64 
65 #endif // __RPI_LIST_H
66 
void rpi_list_append(RpiList *data, Rpi *rpi)
Definition: rpi_list.c:123
RpiListItem const * rpi_list_next(RpiListItem const *data)
Definition: rpi_list.c:159
An RPI list element.
Definition: rpi_list.c:51
void rpi_list_add_beacon(RpiList *data, unsigned char const *rpi_bytes, uint8_t time_interval_number)
Definition: rpi_list.c:184
Rpi const * rpi_list_get_rpi(RpiListItem const *data)
Definition: rpi_list.c:169
void rpi_list_delete(RpiList *data)
Definition: rpi_list.c:96
RpiList * rpi_list_new()
Definition: rpi_list.c:81
Core Contact Tracing functionality.
RpiListItem const * rpi_list_first(RpiList const *data)
Definition: rpi_list.c:147
Random Proximity Identifier functionality.
The head of an RPI list.
Definition: rpi_list.c:67