mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-16 01:22:18 +03:00
Cosmetics: Defining a type for RuleId
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user