diff options
author | pommicket <pommicket@gmail.com> | 2023-01-02 13:20:16 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-02 13:20:16 -0500 |
commit | 1dc24e79ec7cf80e06b9c4e7cc55e18857b624c1 (patch) | |
tree | 9537660776906e08d5b4f511926bf4a1c8f4c644 /session.c | |
parent | 9844c679b4a4fb42c97f80e5653dea7c73ff0edf (diff) |
restructure LSP stuff
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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]; |