aboutsummaryrefslogtreecommitdiffstats
path: root/src/list_window.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/list_window.h')
-rw-r--r--src/list_window.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/list_window.h b/src/list_window.h
index 8374e53d7..2061e81aa 100644
--- a/src/list_window.h
+++ b/src/list_window.h
@@ -23,6 +23,11 @@ typedef struct
} list_window_t;
+typedef struct
+{
+ GList *list;
+} list_window_state_t;
+
/* create a new list window */
list_window_t *list_window_init(WINDOW *w, int width, int height);
@@ -71,4 +76,12 @@ list_window_rfind(list_window_t *lw,
int wrap,
int rows);
+/* list window states */
+list_window_state_t *list_window_init_state(void);
+list_window_state_t *list_window_free_state(list_window_state_t *state);
+void list_window_push_state(list_window_state_t *state, list_window_t *lw);
+void list_window_pop_state(list_window_state_t *state, list_window_t *lw);
+
+
+
#endif