Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F3152928
hashn.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
hashn.h
View Options
/******************************************************************************
*******************************************************************************
**
** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
** Copyright (C) 2004 Red Hat, Inc. All rights reserved.
**
** This copyrighted material is made available to anyone wishing to use,
** modify, copy, or redistribute it subject to the terms and conditions
** of the GNU General Public License v.2.
**
*******************************************************************************
******************************************************************************/
/******************************************************************************
* Hash table abstraction
*/
#ifndef __hash_h__
#define __hash_h__
#include "LLi.h"
typedef struct hashn_root_s hashn_t;
hashn_t *hashn_create(unsigned int table_size,
int (*cmp)(void *a, void *b),
int (*hash)(void *a));
void hashn_destroy(hashn_t *hsh);
LLi_t *hashn_find(hashn_t *hsh, LLi_t *item);
int hashn_add(hashn_t *hsh, LLi_t *item);
LLi_t *hashn_del(hashn_t *hsh, LLi_t *item);
int hashn_walk(hashn_t *hsh, int (*on_each)(LLi_t *item, void *misc), void *misc);
#endif /*__hash_h__*/
/* vim: set ai cin et sw=3 ts=3 : */
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Feb 25, 6:11 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1464436
Default Alt Text
hashn.h (1 KB)
Attached To
Mode
rF Fence Agents
Attached
Detach File
Event Timeline
Log In to Comment