application/config.c

changeset 65
48f43130b4a2
parent 60
ee4e4742391e
--- a/application/config.c	Mon Oct 28 07:37:45 2024 +0100
+++ b/application/config.c	Mon Oct 28 15:20:58 2024 +0100
@@ -265,6 +265,13 @@
     return pstore;
 }
 
+void set_pwdstore(PwdStore *newstore) {
+    if(pstore) {
+        // TODO: free
+    }
+    pstore = newstore;
+}
+
 int pwdstore_save(PwdStore *pwdstore) {
     if(check_config_dir()) {
         return 1;

mercurial