dav/config.h

changeset 36
c8755c87ce7f
parent 5
88625853ae74
child 38
b855f76e965b
--- a/dav/config.h	Fri Aug 30 12:48:15 2013 +0200
+++ b/dav/config.h	Mon Sep 02 10:31:29 2013 +0200
@@ -37,6 +37,10 @@
 
 typedef struct Repository Repository;
 typedef struct Key        Key;
+typedef struct Proxy      Proxy;
+
+#define HTTP_PROXY 1
+#define HTTPS_PROXY 2
 
 enum key_type {
     KEY_AES128 = 0,
@@ -63,14 +67,24 @@
     void    *data;
     size_t  length;
 };
+
+struct Proxy {
+    char *url;
+    char *user;
+    char *password;
+    char *no;
+};
     
 void load_config();
 void load_repository(xmlNode *reponode);
 void load_key(xmlNode *keynode);
+void load_proxy(xmlNode *proxynode, int type);
 sstr_t load_key_file(char *filename);
 
 Repository* get_repository(char *name);
 Key* get_key(char *name);
+Proxy* get_http_proxy();
+Proxy* get_https_proxy();
 
 #ifdef	__cplusplus
 }

mercurial