Using Collection instead of GlobalCollection

Both has the same methods and characteristics except for the fact that
one is global and the other not. That can be handled by the backend.
This commit is contained in:
Felipe Zimmerle
2016-05-04 14:18:02 -03:00
parent 64c4f23a4e
commit 3062ff2aa5
14 changed files with 135 additions and 649 deletions

View File

@@ -93,7 +93,6 @@ typedef struct ModSecurity_t modsecurity;
#include "modsecurity/transaction.h"
#include "modsecurity/debug_log.h"
#include "modsecurity/rules.h"
#include "modsecurity/collection/global_collection.h"
/**
* TAG_NUM:
@@ -223,8 +222,9 @@ class ModSecurity {
NUMBER_OF_PHASES,
};
collection::GlobalCollection m_global_collection;
collection::GlobalCollection m_ip_collection;
collection::Collection *m_global_collection;
collection::Collection *m_ip_collection;
private:
std::string m_connector;
LogCb m_logCb;