158 |
158 |
159 enum DavConfigError { |
159 enum DavConfigError { |
160 DAV_CONFIG_ERROR_XML = 0 |
160 DAV_CONFIG_ERROR_XML = 0 |
161 }; |
161 }; |
162 |
162 |
|
163 DavConfig* dav_config_new(xmlDoc *doc); |
|
164 |
163 DavConfig* dav_config_load(cxmutstr xmlfilecontent, int *error); |
165 DavConfig* dav_config_load(cxmutstr xmlfilecontent, int *error); |
164 |
166 |
165 void dav_config_free(DavConfig *config); |
167 void dav_config_free(DavConfig *config); |
166 |
168 |
167 CxBuffer* dav_config2buf(DavConfig *config); |
169 CxBuffer* dav_config2buf(DavConfig *config); |
184 DavCfgRepository* dav_config_url2repo_s(DavConfig *config, cxstring url, cxmutstr *path); |
186 DavCfgRepository* dav_config_url2repo_s(DavConfig *config, cxstring url, cxmutstr *path); |
185 |
187 |
186 int dav_config_keytype(DavCfgKeyType type); |
188 int dav_config_keytype(DavCfgKeyType type); |
187 int dav_config_register_keys(DavConfig *config, DavContext *ctx, dav_loadkeyfile_func loadkey); |
189 int dav_config_register_keys(DavConfig *config, DavContext *ctx, dav_loadkeyfile_func loadkey); |
188 |
190 |
|
191 int dav_config_register_namespaces(DavConfig *config, DavContext *ctx); |
|
192 |
189 #ifdef __cplusplus |
193 #ifdef __cplusplus |
190 } |
194 } |
191 #endif |
195 #endif |
192 |
196 |
193 #endif /* LIBIDAV_CONFIG_H */ |
197 #endif /* LIBIDAV_CONFIG_H */ |