summaryrefslogtreecommitdiff
path: root/src/include/StoreKeyedData.h
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1998-09-29 16:20:02 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1998-09-29 16:20:02 +0000
commit084749132bb9b50e94f4925e0dd68066f91b198f (patch)
treef3e293d58c50c37f80c92e0f89c8baef9fca19b1 /src/include/StoreKeyedData.h
parent839a361ed19863d2a005f10cc2f249a3c58351f3 (diff)
Keyed data routines.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@18 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/StoreKeyedData.h')
-rw-r--r--src/include/StoreKeyedData.h39
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