aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-07-07 19:22:16 +0000
committerDavid Robillard <d@drobilla.net>2011-07-07 19:22:16 +0000
commite99b008ba4ea7cc3adc708f50e2b66780ad9f3c4 (patch)
tree07c71274b900b9f25d48b2e8fac827a6ee07116f /src
parent94cac101664ffd58e9f3b6595ce76653616a97a3 (diff)
downloadjalv-e99b008ba4ea7cc3adc708f50e2b66780ad9f3c4.tar.gz
jalv-e99b008ba4ea7cc3adc708f50e2b66780ad9f3c4.tar.bz2
jalv-e99b008ba4ea7cc3adc708f50e2b66780ad9f3c4.zip
Add stub persist extension support (not yet functional)
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@3419 a436a847-0d15-0410-975c-d299462d15a1
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"