add deps directory
update inner include headers
This commit is contained in:
17
sdk/example/http_event_plugin.cpp
Normal file
17
sdk/example/http_event_plugin.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "session.h"
|
||||
#include "packet.h"
|
||||
#include "plugin.h"
|
||||
#include "http.h"
|
||||
|
||||
|
||||
|
||||
int http_event_plugin_entry(const struct session *s, int what, struct packet *p, const char *payload, uint32_t len, void **pme)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int http_event_plugin_init()
|
||||
{
|
||||
plugin_session_event_register(SESSION_TYPE_HTTP, http_event_plugin_entry, nullptr);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user