summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/proto.h4
-rw-r--r--include/pttstruct.h5
2 files changed, 7 insertions, 2 deletions
diff --git a/include/proto.h b/include/proto.h
index a39a65c7..981a7ba4 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -554,9 +554,9 @@ void scroll(void);
void getyx(int *y, int *x);
void initscr(void);
void out_lines(const char *str, int line);
-void screen_backup(int len, const screenline_t *bp, void *buf);
+void screen_backup(int len, const screenline_t *bp, screen_backup_t *buf);
size_t screen_backupsize(int len, const screenline_t *bp);
-void screen_restore(int len, screenline_t *bp, const void *buf);
+void screen_restore(int len, screenline_t *bp, const screen_backup_t *buf);
/* stuff */
#define isprint2(ch) ((ch & 0x80) || isprint(ch))
diff --git a/include/pttstruct.h b/include/pttstruct.h
index 1167fb33..9866b679 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -426,6 +426,11 @@ typedef struct water_t {
} water_t;
typedef struct {
+ int row, col;
+ void *raw_memory;
+} screen_backup_t;
+
+typedef struct {
fileheader_t *header;
char mtitle[STRLEN];
char *path;