diff options
Diffstat (limited to 'readme.md')
| -rw-r--r-- | readme.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -57,7 +57,7 @@ worker_base_loop(dev) Plugin Management APIs -``` +```cpp /* * The pm_session_dettach_me just sets the flag to disable this plugin and no longer call this event callback. * Before calling pm_session_dettach_me, the current plugin must release related resources for the current session. @@ -85,7 +85,7 @@ pm_session_take_over(session); Session Management APIs -``` +```cpp session_drop_current_packet(session); session_set_ratelimit_group(session, rl_group_id); session_set_metadata(session, const char *key, void *value, size_t val_sz, free_callback); @@ -98,8 +98,8 @@ session_unlock(session, plug_id); Plugin Example -``` -plugin_entry(session, ctx) +```cpp +plugin_entry(session, pme) { session_get_metadata(session, "fw_action", value); if(value==INTERCEPT) |
