comparison libmlk-core/core/save.c @ 268:3f710c68bb97

core: hide internal functions in save
author David Demelier <markand@malikania.fr>
date Fri, 11 Dec 2020 11:04:36 +0100
parents bfde372bf152
children 11c824a82e63
comparison
equal deleted inserted replaced
267:bead76f6c793 268:3f710c68bb97
59 execu(struct save *db, const unsigned char *sql) 59 execu(struct save *db, const unsigned char *sql)
60 { 60 {
61 return exec(db, (const char *)sql); 61 return exec(db, (const char *)sql);
62 } 62 }
63 63
64 bool 64 static bool
65 save_open(struct save *db, unsigned int idx, enum save_mode mode)
66 {
67 assert(db);
68
69 return save_open_path(db, path(idx), mode);
70 }
71
72 bool
73 verify(struct save *db) 65 verify(struct save *db)
74 { 66 {
75 struct { 67 struct {
76 time_t *date; 68 time_t *date;
77 struct save_property prop; 69 struct save_property prop;
92 84
93 return true; 85 return true;
94 } 86 }
95 87
96 bool 88 bool
89 save_open(struct save *db, unsigned int idx, enum save_mode mode)
90 {
91 assert(db);
92
93 return save_open_path(db, path(idx), mode);
94 }
95
96 bool
97 save_open_path(struct save *db, const char *path, enum save_mode mode) 97 save_open_path(struct save *db, const char *path, enum save_mode mode)
98 { 98 {
99 assert(db); 99 assert(db);
100 assert(path); 100 assert(path);
101 101