dav/pwd.h

changeset 747
efbd59642577
parent 731
e0358fa1a3b1
--- a/dav/pwd.h	Sun Apr 16 14:12:24 2023 +0200
+++ b/dav/pwd.h	Fri Apr 21 21:25:32 2023 +0200
@@ -32,8 +32,9 @@
 #include <stdlib.h>
 #include <inttypes.h>
 
-#include <ucx/map.h>
-#include <ucx/buffer.h>
+#include <cx/map.h>
+#include <cx/buffer.h>
+#include <cx/linked_list.h>
 #include <libidav/crypto.h>
 
 #ifdef __cplusplus
@@ -84,30 +85,30 @@
      * key is the username
      * value is PwdEntry*
      */
-    UcxMap *ids;
+    CxMap *ids;
     
     /*
      * list of all credentials with location
      * value is PwdIndexEntry*
      */
-    UcxList *locations;
+    CxList *locations;
     
     /*
      * list of all credentials without location
      * value is PwdIndexEntry*
      */
-    UcxList *noloc;
+    CxList *noloc;
     
     /*
      * index map that contains all elements from the lists
      * 'locations' and 'noloc'
      */
-    UcxMap *index;
+    CxMap *index;
     
     /*
      * a buffer containing the complete file content
      */
-    UcxBuffer *content;
+    CxBuffer *content;
     
     /*
      * key used for encryption/decryption
@@ -150,7 +151,7 @@
 
 struct PwdIndexEntry {
     char *id;
-    UcxList *locations;
+    CxList *locations;
 };
 
 /*
@@ -179,7 +180,7 @@
 PwdEntry* pwdstore_get(PwdStore *p, const char *id);
 
 void pwdstore_put(PwdStore *p, const char *id, const char *username, const char *password);
-void pwdstore_put_index(PwdStore *p, char *id, UcxList *locations);
+void pwdstore_put_index(PwdStore *p, char *id, CxList *locations);
 
 void pwdstore_remove_entry(PwdStore *s, const char *id);
 

mercurial