diff options
Diffstat (limited to 'src/hashtables.h')
-rw-r--r-- | src/hashtables.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hashtables.h b/src/hashtables.h index 7b12b86..de77537 100644 --- a/src/hashtables.h +++ b/src/hashtables.h @@ -21,7 +21,7 @@ struct pubkey_hashtable { struct mutex lock; }; -void wg_pubkey_hashtable_init(struct pubkey_hashtable *table); +struct pubkey_hashtable *wg_pubkey_hashtable_alloc(void); void wg_pubkey_hashtable_add(struct pubkey_hashtable *table, struct wg_peer *peer); void wg_pubkey_hashtable_remove(struct pubkey_hashtable *table, @@ -48,7 +48,7 @@ struct index_hashtable_entry { __le32 index; }; -void wg_index_hashtable_init(struct index_hashtable *table); +struct index_hashtable *wg_index_hashtable_alloc(void); __le32 wg_index_hashtable_insert(struct index_hashtable *table, struct index_hashtable_entry *entry); bool wg_index_hashtable_replace(struct index_hashtable *table, |