diff --git a/src/plugins/pol/parser.h b/src/plugins/pol/parser.h index c838772..2e5bc95 100644 --- a/src/plugins/pol/parser.h +++ b/src/plugins/pol/parser.h @@ -70,20 +70,20 @@ typedef struct PolicyInstruction { inline bool operator==(const PolicyInstruction &other) const { - return type == other.type && data == other.data; + return key == other.key && key == other.key && value == other.value && data == other.data; } inline bool operator!=(const PolicyInstruction &other) const { - return type != other.type && data != other.data; + return !this->operator==(other); } PolicyRegType type{}; PolicyData data{}; + std::string key{}; + std::string value{}; } PolicyInstruction; -typedef std::unordered_map>> - PolicyTree; +typedef std::vector PolicyTree; typedef struct PolicyFile {