| 1 |
/* $Id: xhash.h,v 1.3 1999/03/10 07:58:05 boyns Exp $ */ |
| 2 |
|
| 3 |
/* |
| 4 |
* Copyright (C) 1993-99 Mark R. Boyns <[email protected]> |
| 5 |
* |
| 6 |
* This file is part of rplay. |
| 7 |
* |
| 8 |
* rplay is free software; you can redistribute it and/or modify |
| 9 |
* it under the terms of the GNU General Public License as published by |
| 10 |
* the Free Software Foundation; either version 2 of the License, or |
| 11 |
* (at your option) any later version. |
| 12 |
* |
| 13 |
* rplay is distributed in the hope that it will be useful, |
| 14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
* GNU General Public License for more details. |
| 17 |
* |
| 18 |
* You should have received a copy of the GNU General Public License |
| 19 |
* along with rplay; see the file COPYING. If not, write to the |
| 20 |
* Free Software Foundation, Inc., |
| 21 |
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
| 22 |
*/ |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
#ifndef _xhash_h |
| 27 |
#define _xhash_h |
| 28 |
|
| 29 |
#ifdef HAVE_CONFIG_H |
| 30 |
#include "config.h" |
| 31 |
#endif |
| 32 |
|
| 33 |
#ifdef __STDC__ |
| 34 |
extern void xhash_init (int hash_table_size); |
| 35 |
extern char *xhash_get (char *hash_key); |
| 36 |
extern void xhash_put (char *hash_key, char *data); |
| 37 |
extern void xhash_replace (char *hash_key, char *data); |
| 38 |
extern void xhash_delete (char *hash_key); |
| 39 |
extern char *xhash_name (char *pathname); |
| 40 |
extern void xhash_apply (char *(*func) ()); |
| 41 |
extern void xhash_die (); |
| 42 |
#else |
| 43 |
extern void xhash_init ( /* int hash_table_size */ ); |
| 44 |
extern char *xhash_get ( /* char *hash_key */ ); |
| 45 |
extern void xhash_put ( /* char *hash_key, char *data */ ); |
| 46 |
extern void xhash_replace ( /* char *hash_key, char *data */ ); |
| 47 |
extern void xhash_delete ( /* char *hash_key */ ); |
| 48 |
extern char *xhash_name ( /* char *pathname */ ); |
| 49 |
extern void xhash_apply ( /* char *(*func) () */ ); |
| 50 |
extern void xhash_die (); |
| 51 |
#endif |
| 52 |
|
| 53 |
#endif /* _xhash_h */ |