]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust/applayer: provide generic event info functions
authorJason Ish <jason.ish@oisf.net>
Wed, 18 Nov 2020 17:57:22 +0000 (11:57 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 1 Sep 2021 06:33:52 +0000 (08:33 +0200)
commit0fa7b5c2a2204c6d8ee29489c7b08ff7f1fe68f5
tree3d16a9b7725896544b2876ac7435fb5bc32699e5
parent27d1ee98ce2c47e747e18242f2b057812f90fd26
rust/applayer: provide generic event info functions

Provide generic functions for get_event_info and
get_event_info_by_id. These functions can be used by any app-layer
event enum that implements AppLayerEvent.

Unfortunately the parser registration cannot use these functions
directly as generic functions cannot be #[no_mangle]. So they
do need small extern "C" wrappers around them.
rust/src/applayer.rs