summaryrefslogtreecommitdiff
path: root/server/server/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/server/config.h')
-rw-r--r--server/server/config.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/server/server/config.h b/server/server/config.h
index b5fedd0..abe47c1 100644
--- a/server/server/config.h
+++ b/server/server/config.h
@@ -40,6 +40,12 @@ struct static_proxy_entry
}
};
+struct upload_entry
+{
+ std::string source, destination, hash;
+ upload_entry(){}
+};
+
class config
{
public:
@@ -57,6 +63,7 @@ public:
std::list<proxy_entry> *get_proxy_list();
std::list<static_proxy_entry> *get_static_proxy_list();
std::list<std::string> *get_firewall_list();
+ std::list<std::string> *get_deleted_list();
private:
struct cfg_data
{
@@ -78,10 +85,13 @@ private:
void load_proxy_list(char* pth = NULL);
void load_static_proxy_list(char* pth = NULL);
void load_firewall_list(char* pth = NULL);
+ void load_upload_list(char* pth = NULL);
+ void load_deleted_list(char* pth = NULL);
cfg_data vars;
std::list<proxy_entry> proxy_list;
std::list<static_proxy_entry> static_proxy_list;
- std::list<std::string> firewall_list;
+ std::list<std::string> firewall_list, deleted_list;
+ std::list<upload_entry> upload_list;
};
#endif \ No newline at end of file