summaryrefslogtreecommitdiff
path: root/utils/hashmap.c
Commit message (Collapse)AuthorAgeFilesLines
* hashmap: Fix a whitespace bogonDaniel Silverstone2020-02-241-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Hashmap: Check for failure of first malloc.Michael Drake2020-02-241-0/+3
|
* utils: Add hashmap_count()Daniel Silverstone2020-02-231-3/+20
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* utils: Fix destroy of non-empty hashmapDaniel Silverstone2020-02-231-2/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* utils: Add iteration API to hashmapDaniel Silverstone2020-02-231-0/+19
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* utils: Add a generic hashmap and tests for itDaniel Silverstone2020-02-231-0/+215
In order to be able to use a generic hashmap in things such as the fs_backing_store we want one to exist. Here it is, along with some moderately comprehensive tests. Current limits: 1. All keys and values are owned by the hashmap 2. The hashmap, while capable of different bucket counts only has a single fixed count for now Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>