# HG changeset patch # User David Demelier # Date 1607681076 -3600 # Node ID 3f710c68bb9743b02929bfeb8cc86fd29bdad055 # Parent bead76f6c7934103f12aef19acf63d6a64a0a3e8 core: hide internal functions in save diff -r bead76f6c793 -r 3f710c68bb97 libmlk-core/core/save.c --- a/libmlk-core/core/save.c Thu Dec 10 16:28:30 2020 +0100 +++ b/libmlk-core/core/save.c Fri Dec 11 11:04:36 2020 +0100 @@ -61,15 +61,7 @@ return exec(db, (const char *)sql); } -bool -save_open(struct save *db, unsigned int idx, enum save_mode mode) -{ - assert(db); - - return save_open_path(db, path(idx), mode); -} - -bool +static bool verify(struct save *db) { struct { @@ -94,6 +86,14 @@ } bool +save_open(struct save *db, unsigned int idx, enum save_mode mode) +{ + assert(db); + + return save_open_path(db, path(idx), mode); +} + +bool save_open_path(struct save *db, const char *path, enum save_mode mode) { assert(db);