dav/config.h

changeset 747
efbd59642577
parent 734
b2cd82149116
child 795
05647e862a17
equal deleted inserted replaced
746:a569148841ff 747:efbd59642577
27 */ 27 */
28 28
29 #ifndef CONFIG_H 29 #ifndef CONFIG_H
30 #define CONFIG_H 30 #define CONFIG_H
31 31
32 #include <ucx/string.h> 32 #include <cx/string.h>
33 #include <stdbool.h> 33 #include <stdbool.h>
34 #include <libidav/webdav.h> 34 #include <libidav/webdav.h>
35 #include "pwd.h" 35 #include "pwd.h"
36 #include "opt.h" 36 #include "opt.h"
37 37
79 int load_config(DavContext *ctx); 79 int load_config(DavContext *ctx);
80 void free_config(void); 80 void free_config(void);
81 int load_repository(const xmlNode *reponode); 81 int load_repository(const xmlNode *reponode);
82 int load_key(const xmlNode *keynode); 82 int load_key(const xmlNode *keynode);
83 int load_proxy(DavProxy*, const xmlNode *proxynode, int type); 83 int load_proxy(DavProxy*, const xmlNode *proxynode, int type);
84 sstr_t load_key_file(char *filename); 84 cxmutstr load_key_file(const char *filename);
85 int load_namespace(const xmlNode *node); 85 int load_namespace(const xmlNode *node);
86 int load_secretstore(const xmlNode *node); 86 int load_secretstore(const xmlNode *node);
87 87
88 Repository* repository_new(void); 88 Repository* repository_new(void);
89 89
90 Repository* get_repository(sstr_t name); 90 Repository* get_repository(cxstring name);
91 int get_repository_flags(Repository *repo); 91 int get_repository_flags(Repository *repo);
92 DavSession *repository_session(Repository *repo); 92 DavSession *repository_session(Repository *repo);
93 Key* get_key(char *name); 93 Key* get_key(const char *name);
94 94
95 int add_repository(Repository *repo); 95 int add_repository(Repository *repo);
96 int remove_repository(Repository *repo); 96 int remove_repository(Repository *repo);
97 int list_repositories(void); 97 int list_repositories(void);
98 UcxList* get_repositories(void); 98 CxIterator get_repositories(void);
99 99
100 PwdStore* get_pwdstore(void); 100 PwdStore* get_pwdstore(void);
101 int pwdstore_save(PwdStore *pwdstore); 101 int pwdstore_save(PwdStore *pwdstore);
102 102
103 103
104 Repository* url2repo_s(sstr_t url, char **path); 104 Repository* url2repo_s(cxstring url, char **path);
105 Repository* url2repo(char *url, char **path); 105 Repository* url2repo(const char *url, char **path);
106 106
107 DavSession* connect_to_repo(DavContext *ctx, Repository *repo, char *path, dav_auth_func authfunc, CmdArgs *a); 107 DavSession* connect_to_repo(DavContext *ctx, Repository *repo, char *path, dav_auth_func authfunc, CmdArgs *a);
108 108
109 int request_auth(DavSession *sn, void *userdata); 109 int request_auth(DavSession *sn, void *userdata);
110 110

mercurial