changeset 268:3f710c68bb97

core: hide internal functions in save
author David Demelier <markand@malikania.fr>
date Fri, 11 Dec 2020 11:04:36 +0100
parents bead76f6c793
children 9b758eb84556
files libmlk-core/core/save.c
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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);