Commit Graph

19 Commits

Author SHA1 Message Date
Patrick Rathje 55da0bb7d6 Move header files into include directory 2022-05-25 20:26:38 +02:00
H1ghBre4k3r cd780b122d First refactorings for contacts and bloom api 2021-12-10 15:30:21 +01:00
H1ghBre4k3r 4399810691 Contacts: Add possibility to retrieve number of infected contacts for a period key 2021-12-10 15:30:21 +01:00
Patrick Rathje ecb7bb05ea Record Binary Search Refactoring 2021-07-23 11:48:34 +02:00
H1ghBre4k3r bb6be05d53 Records: Rewrite interator_init_timerange and binary_search to take care of invalid entries etc. 2021-05-25 18:06:15 +02:00
H1ghBre4k3r fde55d947e Add TODOs for refactoring according to PR review and refactor ens_fs_write to return error, if entry is not only ones 2021-05-25 18:06:15 +02:00
H1ghBre4k3r 796cf0f089 Fix multiple results of the PR:
- cleanup of sequence number utilites
- dynamic calculation of nvs sectors for fs information
- usage of buffer in ens_fs
- check for max entry size (page size)
- usage of interal entry size, which is always the next larger power of 2 to a given entry size
2021-05-25 18:06:15 +02:00
H1ghBre4k3r 970a42aea8 Use record instead of contact as naming convention 2021-05-25 18:06:15 +02:00
H1ghBre4k3r 30615a895d Records: In init_range, set finished to false, if there are contacts 2021-05-25 18:06:15 +02:00
H1ghBre4k3r 33f64b1caa Records: In iterator_clear, also set sequence numbers to 0 2021-05-25 18:06:15 +02:00
H1ghBre4k3r f0762bf1dd Records: In iterator_next, use memcpy to next contact 2021-05-25 18:06:15 +02:00
H1ghBre4k3r 0f2307e668 Records: In iterator_next, combine if-guard with while-loop 2021-05-25 18:06:15 +02:00
H1ghBre4k3r dd2f0a1265 Records: In init_timerange, use init_range after finding start and end sn 2021-05-25 18:06:15 +02:00
H1ghBre4k3r 80cba23823 Format ens files and add .clang-format file 2021-05-25 18:06:15 +02:00
H1ghBre4k3r 522a2aab9d Use binary search in init_timerange 2021-05-25 18:06:15 +02:00
H1ghBre4k3r aa17d584b3 Implement ens_records_iterator_init_timerange via binary search 2021-05-25 18:06:15 +02:00
H1ghBre4k3r c8607507b7 Use record_t for storing contacts 2021-05-25 18:06:15 +02:00
H1ghBre4k3r cfa29284a3 Move sequence-number utils to ens folder aswell 2021-05-25 18:06:15 +02:00
H1ghBre4k3r d38996a021 Implement ens_fs and move ens stuff to ens directory 2021-05-25 18:06:15 +02:00