1 /*
2  * Motif Tools Library, Version 3.1
3  * $Id: Hash.h,v 1.1.1.1 2001/02/10 13:42:54 motiftools Exp $
4  *
5  * Written by David Flanagan.
6  * Copyright (c) 1992-2001 by David Flanagan.
7  * All Rights Reserved.  See the file COPYRIGHT for details.
8  * This is open source software.  See the file LICENSE for details.
9  * There is no warranty for this software.  See NO_WARRANTY for details.
10  *
11  * $Log: Hash.h,v $
12  * Revision 1.1.1.1  2001/02/10 13:42:54  motiftools
13  * Initial import of Xmt310 to CVS
14  *
15  *
16  */
17 
18 #ifndef _XmtHash_h
19 #define _XmtHash_h
20 
21 typedef struct _XmtHashTableRec *XmtHashTable;
22 
23 typedef void (*XmtHashTableForEachProc)(
24 #if NeedFunctionPrototypes
25     XmtHashTable, XtPointer, XtPointer *
26 #endif
27 );
28 
29 _XFUNCPROTOBEGIN
30 #if NeedFunctionPrototypes
31 extern XmtHashTable XmtHashTableCreate(int);
32 extern void XmtHashTableDestroy(XmtHashTable);
33 extern void XmtHashTableStore(XmtHashTable, XtPointer, XtPointer);
34 extern Boolean XmtHashTableLookup(XmtHashTable, XtPointer, XtPointer *);
35 extern void XmtHashTableDelete(XmtHashTable, XtPointer);
36 extern void XmtHashTableForEach(XmtHashTable, XmtHashTableForEachProc);
37 #else
38 extern XmtHashTable XmtHashTableCreate();
39 extern void XmtHashTableDestroy();
40 extern void XmtHashTableStore();
41 extern Boolean XmtHashTableLookup();
42 extern void XmtHashTableDelete();
43 extern void XmtHashTableForEach();
44 #endif
45 _XFUNCPROTOEND
46 
47 #endif
48