summaryrefslogtreecommitdiff
path: root/src/include/StoreNamedData.h
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1998-09-29 15:19:21 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1998-09-29 15:19:21 +0000
commit839a361ed19863d2a005f10cc2f249a3c58351f3 (patch)
tree7f6336c05c58650709f0bde5cf018f75dcbb13bc /src/include/StoreNamedData.h
parentcfa95d39b90be4bd69b8b9ece0458c287e328cca (diff)
Named data storage routines.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@17 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/StoreNamedData.h')
-rw-r--r--src/include/StoreNamedData.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/include/StoreNamedData.h b/src/include/StoreNamedData.h
new file mode 100644
index 00000000..640af7ce
--- /dev/null
+++ b/src/include/StoreNamedData.h
@@ -0,0 +1,39 @@
+ /*@@
+ @header StoreNamedData.h
+ @date Tue Sep 1 10:45:08 1998
+ @author Tom Goodale
+ @desc
+ Contains structures and function prototypes necessary to use
+ the StoreNamedData routines.
+ @enddesc
+
+ @version $Id$
+ @@*/
+
+#ifndef _STORENAMEDDATA_H_
+
+#define _STORENAMEDDATA_H_
+
+/* Define a data type for the storage. */
+typedef struct PNamedData
+{
+ struct PNamedData *last;
+ struct PNamedData *next;
+
+ char *name;
+
+ void *data;
+} pNamedData;
+
+/* Function prototypes. */
+
+/* Store the data. */
+int StoreNamedData(pNamedData **list, const char *name, void *data);
+
+/* Fet the data. */
+void *GetNamedData(pNamedData *list, const char *name);
+
+/* destroy the data. */
+void DestroyNamedDataList(pNamedData *list);
+
+#endif