Enhancements

Add include/exclude options for subscriptions.
Clean up useless codes.
This commit is contained in:
Tindy X
2019-11-29 12:58:29 +08:00
parent cb1f288aee
commit 3dc5943e82
7 changed files with 61 additions and 161 deletions

View File

@@ -20,10 +20,9 @@ void explodeShadowrocket(std::string kit, std::string custom_port, int local_por
void explodeKitsunebi(std::string kit, std::string custom_port, int local_port, nodeInfo &node);
void explode(std::string link, bool sslibev, bool ssrlibev, std::string custom_port, int local_port, nodeInfo &node);
void explodeSSD(std::string link, bool libev, std::string custom_port, int local_port, std::vector<nodeInfo> &nodes);
void explodeSub(std::string sub, bool sslibev, bool ssrlibev, std::string custom_port, int local_port, std::vector<nodeInfo> &nodes);
int explodeConf(std::string filepath, std::string custom_port, int local_port, bool sslibev, bool ssrlibev, std::vector<nodeInfo> &nodes);
int explodeConfContent(std::string content, std::string custom_port, int local_port, bool sslibev, bool ssrlibev, std::vector<nodeInfo> &nodes);
void remarksInit(string_array &exclude, string_array &include);
bool chkIgnore(nodeInfo &node);
void explodeSub(std::string sub, bool sslibev, bool ssrlibev, std::string custom_port, int local_port, std::vector<nodeInfo> &nodes, string_array &exclude_remarks, string_array &include_remarks);
int explodeConf(std::string filepath, std::string custom_port, int local_port, bool sslibev, bool ssrlibev, std::vector<nodeInfo> &nodes, string_array &exclude_remarks, string_array &include_remarks);
int explodeConfContent(std::string content, std::string custom_port, int local_port, bool sslibev, bool ssrlibev, std::vector<nodeInfo> &nodes, string_array &exclude_remarks, string_array &include_remarks);
bool chkIgnore(nodeInfo &node, string_array &exclude_remarks, string_array &include_remarks);
#endif // SPEEDTESTUTIL_H_INCLUDED