]> git.ipfire.org Git - people/ms/suricata.git/commit
rust/app-layer: macros to export de_state functions
authorJason Ish <ish@unx.ca>
Thu, 31 May 2018 22:39:22 +0000 (16:39 -0600)
committerJason Ish <ish@unx.ca>
Fri, 15 Jun 2018 21:48:52 +0000 (15:48 -0600)
commit2ec33816007ee27163e433fa6832b95f0695afb7
treebfce6d4103d84a17a8d183e7cbe73f293b490772
parentda4912dfe738be8542a0b8c1dda40dfe5a85ef30
rust/app-layer: macros to export de_state functions

These macros generate the extern "C" functions for transactions
structs that need provide functions for setting and getting
the de_state. The idea is to provide macros do avoid code
duplication and make it simpler to create an app-layer.

A trait would be the correct solution, but it doesn't look like
you can use traits to export extern "C" functions.
rust/src/applayer.rs
rust/src/lib.rs