summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2008-12-05 00:37:26 +0000
committerIan C <ianc@noddybox.co.uk>2008-12-05 00:37:26 +0000
commit9ebec735c488e2f7ac29933fb51b4e6e65c7b93f (patch)
treec19015d71edcdf6dfba13d10115ebaa17a7c7fe7 /include
parentf6a25a43ff98942dc051cfed6b28eefffeb8e40e (diff)
Initial working version of memory snapshots
Diffstat (limited to 'include')
-rw-r--r--include/gui.h3
-rw-r--r--include/stream.h14
2 files changed, 11 insertions, 6 deletions
diff --git a/include/gui.h b/include/gui.h
index 30989e6..ea89932 100644
--- a/include/gui.h
+++ b/include/gui.h
@@ -26,6 +26,7 @@ int GUI_Menu(const char *opts[]);
void GUI_Alert(int fatal, const char *text);
void GUI_Config(void);
int GUI_FileSelect(char pwd[], char selected_file[], const char *filter);
-int GUI_InputName(char name[], int maxlen);
+int GUI_InputName(const char *prompt, const char *ext,
+ char name[], int maxlen);
#endif /* DS81_GUI_H */
diff --git a/include/stream.h b/include/stream.h
index f701d8b..1049706 100644
--- a/include/stream.h
+++ b/include/stream.h
@@ -22,10 +22,14 @@
#ifndef DS81_STREAM_H
#define DS81_STREAM_H
-/* Macros to aid in streaming. Should be safe as there is no intention at all
- about these snapshots being cross platform.
-*/
-#define STRPUT(fp, a) fwrite(&(a), sizeof(a), 1, fp)
-#define STRGET(fp, a) fread(&(a), sizeof(a), 1, fp)
+#include <stdio.h>
+
+void PUT_Byte(FILE *fp, unsigned char c);
+void PUT_Long(FILE *fp, long l);
+void PUT_ULong(FILE *fp, unsigned long l);
+
+unsigned char GET_Byte(FILE *fp);
+long GET_Long(FILE *fp);
+unsigned long GET_ULong(FILE *fp);
#endif /* DS81_STREAM_H */