60 } |
60 } |
61 free(file); |
61 free(file); |
62 return ret; |
62 return ret; |
63 } |
63 } |
64 |
64 |
65 void load_config() { |
65 static DavContext *context; |
|
66 |
|
67 void load_config(DavContext *ctx) { |
|
68 context = ctx; |
66 // TODO: free the config somewhere |
69 // TODO: free the config somewhere |
67 repos = ucx_map_new(16); |
70 repos = ucx_map_new(16); |
68 keys = ucx_map_new(16); |
71 keys = ucx_map_new(16); |
69 http_proxy = calloc(1, sizeof(Proxy)); |
72 http_proxy = calloc(1, sizeof(Proxy)); |
70 https_proxy = calloc(1, sizeof(Proxy)); |
73 https_proxy = calloc(1, sizeof(Proxy)); |