mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-29 11:16:30 +03:00
My 11th 2023 update
This commit is contained in:
10
events/include/new_table_entry.h
Normal file
10
events/include/new_table_entry.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#ifndef __NEW_TABLE_ENTRY_H__
|
||||
#define __NEW_TABLE_ENTRY_H__
|
||||
|
||||
#include "event.h"
|
||||
|
||||
class NewTableEntry : public Event<NewTableEntry>
|
||||
{
|
||||
};
|
||||
|
||||
#endif // __NEW_TABLE_ENTRY_H__
|
25
events/include/parsed_context.h
Normal file
25
events/include/parsed_context.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef __PARSED_CONTEXT_H__
|
||||
#define __PARSED_CONTEXT_H__
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "event.h"
|
||||
#include "buffer.h"
|
||||
|
||||
enum class ParsedContextReply { ACCEPT, DROP };
|
||||
|
||||
class ParsedContext : public Event<ParsedContext, ParsedContextReply>
|
||||
{
|
||||
public:
|
||||
ParsedContext(const Buffer &_buf, const std::string &_name, uint _id) : buf(_buf), name(_name), id(_id) {}
|
||||
const Buffer & getBuffer() const { return buf; }
|
||||
const std::string & getName() const { return name; }
|
||||
uint getId() const { return id; }
|
||||
|
||||
private:
|
||||
Buffer buf;
|
||||
std::string name;
|
||||
uint id;
|
||||
};
|
||||
|
||||
#endif // __PARSED_CONTEXT_H__
|
Reference in New Issue
Block a user