blob: fbb8a78df0cac512fdc3b91d0881dbd7ad2ebf22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/*@@
@header StoreKeyedData.h
@date Tue Sep 1 10:45:08 1998
@author Tom Goodale
@desc
Contains structures and function prototypes necessary to use
the StoreKeyedData routines.
@enddesc
@version $Id$
@@*/
#ifndef _STOREKEYEDDATA_H_
#define _STOREKEYEDDATA_H_
/* Define a data type for the storage. */
typedef struct PKeyedData
{
struct PKeyedData *last;
struct PKeyedData *next;
int key;
void *data;
} pKeyedData;
/* Function prototypes. */
/* Store the data. */
int StoreKeyedData(pKeyedData **storage, int key , void *data);
/* Fet the data. */
void *GetKeyedData(pKeyedData *storage, int key);
/* destroy the data. */
void DestroyKeyedData(pKeyedData *storage);
#endif
|