Cosmetics: Defining a type for RuleId

This commit is contained in:
Felipe Zimmerle
2019-03-20 16:21:28 -03:00
parent 999af35e22
commit 5bd6c58385
5 changed files with 10 additions and 6 deletions

View File

@@ -95,6 +95,8 @@ namespace modsecurity {
*/
using ModSecString = std::string;
using RuleId = int64_t;
/**
*
* The Phases enumerator consists in mapping the different stages of a

View File

@@ -45,13 +45,13 @@ class Rules {
void dump() const;
int append(Rules *from,
const std::vector<int64_t> &ids,
const std::vector<RuleId> &ids,
std::ostringstream *err);
bool insert(const std::shared_ptr<Rule> &rule);
bool insert(std::shared_ptr<Rule> rule,
const std::vector<int64_t> *ids,
const std::vector<RuleId> *ids,
std::ostringstream *err);
size_t size() const;