summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-02 13:20:16 -0500
committerpommicket <pommicket@gmail.com>2023-01-02 13:20:16 -0500
commit1dc24e79ec7cf80e06b9c4e7cc55e18857b624c1 (patch)
tree9537660776906e08d5b4f511926bf4a1c8f4c644 /session.c
parent9844c679b4a4fb42c97f80e5653dea7c73ff0edf (diff)
restructure LSP stuff
Diffstat (limited to 'session.c')
-rw-r--r--session.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/session.c b/session.c
index 4dfbefa..6202a08 100644
--- a/session.c
+++ b/session.c
@@ -1,3 +1,5 @@
+#include "ted.h"
+
#define SESSION_FILENAME "session.txt"
#define SESSION_VERSION "\x7fTED0002"
@@ -320,7 +322,7 @@ static void session_read_file(Ted *ted, FILE *fp) {
}
}
-static void session_write(Ted *ted) {
+void session_write(Ted *ted) {
const Settings *settings = ted_active_settings(ted);
if (!settings->restore_session)
return;
@@ -341,7 +343,7 @@ static void session_write(Ted *ted) {
}
}
-static void session_read(Ted *ted) {
+void session_read(Ted *ted) {
const Settings *settings = ted_active_settings(ted);
if (settings->restore_session) {
char filename[TED_PATH_MAX];