mirror of
https://github.com/CovidBraceletPrj/CovidBracelet.git
synced 2024-12-05 00:55:43 +01:00
Rename bloom_init to bloom_create
This commit is contained in:
parent
76ce19d94a
commit
2d0c298aa0
@ -1,7 +1,7 @@
|
||||
#include "bloom.h"
|
||||
#include "ens/storage.h"
|
||||
|
||||
bloom_filter_t* bloom_init(size_t size) {
|
||||
bloom_filter_t* bloom_create(size_t size) {
|
||||
bloom_filter_t* bloom = k_calloc(1, sizeof(bloom_filter_t));
|
||||
bloom->size = size;
|
||||
bloom->data = k_malloc(size * sizeof(uint8_t));
|
||||
|
@ -19,7 +19,7 @@ typedef struct bloom_filter {
|
||||
/**
|
||||
* Initialize the bloom filter on basis of the already registerred records.
|
||||
*/
|
||||
bloom_filter_t* bloom_init(size_t size);
|
||||
bloom_filter_t* bloom_create(size_t size);
|
||||
|
||||
// TODO lome: maybe only use RPI (should be sufficient)
|
||||
void bloom_add_record(bloom_filter_t* bloom, record_t* record);
|
||||
|
Loading…
Reference in New Issue
Block a user