]> git.ipfire.org Git - thirdparty/suricata.git/commit
suricata: expose SuricataMainLoop and GlobalsDestroy
authorJason Ish <jason.ish@oisf.net>
Thu, 22 Feb 2024 20:25:33 +0000 (14:25 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 25 Mar 2024 16:36:28 +0000 (17:36 +0100)
commitcfd98e92a0e77bdc00f288f4169937ff3150de68
treeec808df64ff57d02920da7dd187d0763f82b7a0f
parent67d23c7b6122063a5fc2dee52fa0928ff81488b0
suricata: expose SuricataMainLoop and GlobalsDestroy

Expose SuricataMainLoop and GlobalsDestroy so that SuricataMain can be
replicated by a library user of Suricata.

These removes the `suricata` instance as a function argument to some
of these functions, as the way we use it now, it serves no
purpose. However, it is a reminder that it should probably be
refactored to not be a global, as at some point it might be desirable
for to have multiple instances active without data sharing.
src/suricata.c
src/suricata.h