diff options
Diffstat (limited to 'src/include/StoreKeyedData.h')
-rw-r--r-- | src/include/StoreKeyedData.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/include/StoreKeyedData.h b/src/include/StoreKeyedData.h new file mode 100644 index 00000000..fbb8a78d --- /dev/null +++ b/src/include/StoreKeyedData.h @@ -0,0 +1,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 |