Mon 14 Oct 23:06:38 CEST 2024

This commit is contained in:
sbosse 2024-10-14 23:09:10 +02:00
parent f089ad59fb
commit cf34401210

21
kernel/hash_set.h Normal file
View File

@ -0,0 +1,21 @@
/*
Copyright (C) 2016-2019 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file LICENSE for details.
*/
#ifndef HASH_SET_H
#define HASH_SET_H
#include "kernel/types.h"
struct hash_set *hash_set_create(unsigned max_expected_keys);
void hash_set_delete(struct hash_set *set);
unsigned hash_set_add(struct hash_set *set, unsigned key, void *data);
void * hash_set_lookup(struct hash_set *set, unsigned key);
unsigned hash_set_remove(struct hash_set *set, unsigned key);
unsigned hash_set_entries(struct hash_set *set);
void hash_set_print(struct hash_set *set);
#endif