From c16715cb44552bc421e867f11c8194a0510e2f26 Mon Sep 17 00:00:00 2001 From: beveloper Date: Tue, 29 Oct 2002 20:15:21 +0000 Subject: [PATCH] removed git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1769 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/nhash.h | 48 ------------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 headers/posix/nhash.h diff --git a/headers/posix/nhash.h b/headers/posix/nhash.h deleted file mode 100644 index e0f6287437..0000000000 --- a/headers/posix/nhash.h +++ /dev/null @@ -1,48 +0,0 @@ -/* nhash.h - */ - -#ifndef OBOS_NHASH_H -#define OBOS_NHASH_H - -#include "pools.h" - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct net_hash_entry net_hash_entry; -typedef struct net_hash net_hash; -typedef struct net_hash_index net_hash_index; - -struct net_hash_entry { - net_hash_entry *next; - int hash; - const void *key; - ssize_t klen; - const void *val; -}; - -struct net_hash_index { - net_hash *nh; - net_hash_entry *this; - net_hash_entry *next; - int index; -}; - -struct net_hash { - net_hash_entry **array; - net_hash_index iterator; - int count; - int max; - struct pool_ctl *pool; -}; - -net_hash *nhash_make(void); -void *nhash_get(net_hash *, const void *key, ssize_t klen); -void nhash_set(net_hash *, const void *, ssize_t , const void *); - -#ifdef __cplusplus -} -#endif - -#endif /* OBOS_NHASH_H */