aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jalv.c5
-rw-r--r--src/jalv_internal.h5
2 files changed, 8 insertions, 2 deletions
diff --git a/src/jalv.c b/src/jalv.c
index 2f9d541..56f1c01 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -283,12 +283,13 @@ jack_session_cb(jack_session_event_t* event, void* arg)
switch (event->type) {
case JackSessionSave:
+ case JackSessionSaveTemplate:
+ jalv_save(host, event->session_dir);
break;
case JackSessionSaveAndQuit:
+ jalv_save(host, event->session_dir);
sem_post(&exit_sem);
break;
- case JackSessionSaveTemplate:
- break;
}
jack_session_event_free(event);
diff --git a/src/jalv_internal.h b/src/jalv_internal.h
index 950d1b7..8c4743b 100644
--- a/src/jalv_internal.h
+++ b/src/jalv_internal.h
@@ -72,6 +72,11 @@ jalv_open_ui(Jalv* jalv,
bool
jalv_emit_ui_events(Jalv* jalv);
+void
+jalv_save(Jalv* jalv, const char* dir);
+
+void
+jalv_restore(Jalv* jalv, const char* dir);
#ifdef __cplusplus
} // extern "C"