Replace the three bool parameters to qof_session_begin to an enum.

For clarity. In so doing found the backend behavior a bit inconsistent
so it's modified to do what the enum values indicate.

In the course of changing the various calls I found some implementation
errors in the back end and corrected them.
This commit is contained in:
John Ralls
2020-06-04 13:05:55 -07:00
parent c73a1bd475
commit 6a1cb5eecd
23 changed files with 155 additions and 176 deletions

View File

@@ -32,7 +32,7 @@ int main()
gnc_engine_init(0, no_args);
s = qof_session_new(NULL);
qof_session_begin(s, testurl, 0, 1, 0);
qof_session_begin(s, testurl, SESSION_NEW_STORE);
qof_session_load(s, NULL);
qof_session_save(s, NULL);
qof_session_end(s);