mirror of https://github.com/OISF/suricata
rust/ffi: provide AppLayerRegisterParser in context
AppLayerRegisterParser was creating a link error when attempting to use a convenience library for the Suricata C code, then linking the library of C code with the library of Rust code into a final Suricata executable, or use with fuzz targets. By moving AppLayerRegisterParser to the context structure and calling it like a callback the circular reference is removed allowing the convenience libraries to work again. This is also a stepping block to proving a Suricata library as a single .a or .so file.pull/5840/head
parent
1c771e15ef
commit
3ada5e1480
Loading…
Reference in New Issue