examples/altemplate: use suricata-ffi for logging macros

pull/14806/head
Jason Ish 7 months ago committed by Victor Julien
parent b4db7bdaee
commit 8e3bd1ca55

@ -11,6 +11,7 @@ nom7 = { version="7.0", package="nom" }
libc = "~0.2.82"
suricata = { path = "../../../rust/" }
suricata-sys = { path = "../../../rust/sys" }
suricata-ffi = { path = "../../../rust/ffi" }
[features]
default = ["suricata8"]

@ -2,7 +2,7 @@ use super::template::template_register_parser;
use crate::detect::detect_template_register;
use crate::log::template_logger_log;
use std::ffi::CString;
use suricata::{SCLogError, SCLogNotice};
use suricata_ffi::{SCLogError, SCLogNotice};
use suricata_sys::sys::{
SCAppLayerPlugin, SCOutputJsonLogDirection, SCPlugin, SCPluginRegisterAppLayer, SC_API_VERSION,
SC_PACKAGE_VERSION,

@ -35,9 +35,8 @@ use suricata::applayer::{
};
use suricata::conf::conf_get;
use suricata::core::{ALPROTO_UNKNOWN, IPPROTO_TCP};
use suricata::{
build_slice, cast_pointer, export_state_data_get, export_tx_data_get, SCLogError, SCLogNotice,
};
use suricata::{build_slice, cast_pointer, export_state_data_get, export_tx_data_get};
use suricata_ffi::{SCLogError, SCLogNotice};
use suricata_sys::sys::{
AppLayerParserState, AppProto, Flow, SCAppLayerParserConfParserEnabled,
SCAppLayerParserRegisterLogger, SCAppLayerParserStateIssetFlag,

Loading…
Cancel
Save