diff options
Diffstat (limited to 'server/server/config.h')
-rw-r--r-- | server/server/config.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/server/server/config.h b/server/server/config.h index 06dfba3..6683d7e 100644 --- a/server/server/config.h +++ b/server/server/config.h @@ -40,6 +40,21 @@ struct static_proxy_entry } }; +struct s_i +{ + std::string name; + int type; + s_i() + { + type = 0; + } + s_i(const std::string& n, int t) + { + name = n; + type = t; + } +}; + struct upload_entry { std::string source, destination, hash; @@ -50,6 +65,19 @@ struct upload_entry destination = destination_; hash = hash_; } + bool operator==(const s_i& s) + { + switch(s.type) + { + case 0: + return s.name == source; + case 1: + return s.name == destination; + default: + break; + } + return false; + } }; class config |