X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=map%2Fhashtable.c;h=42ab07e4b9b06adcddef75493fb58728f7e0b9f1;hp=69583acf0c11e15b8534262d940d878276d3624b;hb=8143ca0acc36e19d004431952e3b6f9b3d337f49;hpb=025017478bb385da88a6b185849c8bcffeb2e2aa diff --git a/map/hashtable.c b/map/hashtable.c index 69583ac..42ab07e 100644 --- a/map/hashtable.c +++ b/map/hashtable.c @@ -41,6 +41,13 @@ struct ht { hashtable_i_t *hti; }; +static const map_impl_t ht_map_impl = { + (map_alloc_t)ht_alloc, (map_cas_t)ht_cas, (map_get_t)ht_get, (map_remove_t)ht_remove, + (map_count_t)ht_count, (map_print_t)ht_print, (map_free_t)ht_free +}; + +const map_impl_t *MAP_TYPE_HASHTABLE = &ht_map_impl; + static const uint64_t COPIED_VALUE = -1; static const uint64_t TOMBSTONE = STRIP_TAG(-1);