]> git.ipfire.org Git - thirdparty/suricata.git/commit
suricata: expose the SuricataContext with a function
authorJason Ish <jason.ish@oisf.net>
Tue, 25 Aug 2020 16:12:04 +0000 (10:12 -0600)
committerVictor Julien <victor@inliniac.net>
Thu, 3 Sep 2020 11:04:14 +0000 (13:04 +0200)
commit335e4e728f3ec3ebd1fc7b6e10b1b9e9ca885d78
tree0c99f0e1cb042063b9430680e0e4eaada06c12b8
parent87a91e6aa87c8b4d740fbd74fc57ebd88e586ff2
suricata: expose the SuricataContext with a function

Expose the "SuricataContext" required by Rust as a function. During
normal startup we register this context with the Rust code, but
plugins written in Rust will need to get the same registration
done, but to do this in a plugin, the plugin code must
call and set the context within its address space.
src/Makefile.am
src/rust-context.c [new file with mode: 0644]
src/rust-context.h
src/suricata.c