mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-16 01:22:18 +03:00
Moves rule* headers to src/
This commit is contained in:
@@ -27,28 +27,35 @@
|
||||
#endif
|
||||
|
||||
#include "modsecurity/rule.h"
|
||||
#include "modsecurity/rule_with_operator.h"
|
||||
#include "modsecurity/rule_with_actions.h"
|
||||
|
||||
|
||||
#ifndef HEADERS_MODSECURITY_RULES_H_
|
||||
#define HEADERS_MODSECURITY_RULES_H_
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
namespace modsecurity {
|
||||
|
||||
namespace actions {
|
||||
namespace transformations {
|
||||
class Transformation;
|
||||
}
|
||||
}
|
||||
|
||||
class Rules {
|
||||
public:
|
||||
void dump() const;
|
||||
|
||||
int append(Rules *from, const std::vector<int64_t> &ids, std::ostringstream *err);
|
||||
int append(Rules *from,
|
||||
const std::vector<int64_t> &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, std::ostringstream *err);
|
||||
bool insert(std::shared_ptr<Rule> rule,
|
||||
const std::vector<int64_t> *ids,
|
||||
std::ostringstream *err);
|
||||
|
||||
size_t size() const;
|
||||
|
||||
std::shared_ptr<Rule> operator[](int index) const;
|
||||
std::shared_ptr<Rule> at(int index) const;
|
||||
|
||||
@@ -58,6 +65,8 @@ class Rules {
|
||||
std::vector<std::shared_ptr<actions::transformations::Transformation> > m_defaultTransformations;
|
||||
|
||||
std::vector<std::shared_ptr<Rule> > m_rules;
|
||||
void dump();
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user