|
|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
// This file is automatically generated. Do not edit.
|
|
|
|
|
|
|
|
|
|
pub const SC_PACKAGE_VERSION: &[u8; 10] = b"8.0.0-dev\0";
|
|
|
|
|
pub type __intmax_t = ::std::os::raw::c_long;
|
|
|
|
|
pub type intmax_t = __intmax_t;
|
|
|
|
|
#[repr(u32)]
|
|
|
|
|
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
|
|
|
|
pub enum AppProtoEnum {
|
|
|
|
|
@ -129,3 +131,200 @@ pub type SCAppLayerPlugin = SCAppLayerPlugin_;
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCPluginRegisterAppLayer(arg1: *mut SCAppLayerPlugin) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
#[doc = " Structure of a configuration parameter."]
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
pub struct SCConfNode_ {
|
|
|
|
|
pub name: *mut ::std::os::raw::c_char,
|
|
|
|
|
pub val: *mut ::std::os::raw::c_char,
|
|
|
|
|
pub is_seq: ::std::os::raw::c_int,
|
|
|
|
|
pub final_: ::std::os::raw::c_int,
|
|
|
|
|
pub parent: *mut SCConfNode_,
|
|
|
|
|
pub head: SCConfNode___bindgen_ty_1,
|
|
|
|
|
pub next: SCConfNode___bindgen_ty_2,
|
|
|
|
|
}
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
pub struct SCConfNode___bindgen_ty_1 {
|
|
|
|
|
pub tqh_first: *mut SCConfNode_,
|
|
|
|
|
pub tqh_last: *mut *mut SCConfNode_,
|
|
|
|
|
}
|
|
|
|
|
#[repr(C)]
|
|
|
|
|
#[derive(Debug, Copy, Clone)]
|
|
|
|
|
pub struct SCConfNode___bindgen_ty_2 {
|
|
|
|
|
pub tqe_next: *mut SCConfNode_,
|
|
|
|
|
pub tqe_prev: *mut *mut SCConfNode_,
|
|
|
|
|
}
|
|
|
|
|
#[doc = " Structure of a configuration parameter."]
|
|
|
|
|
pub type SCConfNode = [u64; 8usize];
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfInit();
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfDeInit();
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfGetRootNode() -> *mut SCConfNode;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfGet(
|
|
|
|
|
name: *const ::std::os::raw::c_char, vptr: *mut *const ::std::os::raw::c_char,
|
|
|
|
|
) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfGetInt(
|
|
|
|
|
name: *const ::std::os::raw::c_char, val: *mut intmax_t,
|
|
|
|
|
) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfGetBool(
|
|
|
|
|
name: *const ::std::os::raw::c_char, val: *mut ::std::os::raw::c_int,
|
|
|
|
|
) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfGetDouble(
|
|
|
|
|
name: *const ::std::os::raw::c_char, val: *mut f64,
|
|
|
|
|
) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfGetFloat(
|
|
|
|
|
name: *const ::std::os::raw::c_char, val: *mut f32,
|
|
|
|
|
) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfSet(
|
|
|
|
|
name: *const ::std::os::raw::c_char, val: *const ::std::os::raw::c_char,
|
|
|
|
|
) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfSetFromString(
|
|
|
|
|
input: *const ::std::os::raw::c_char, final_: ::std::os::raw::c_int,
|
|
|
|
|
) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfSetFinal(
|
|
|
|
|
name: *const ::std::os::raw::c_char, val: *const ::std::os::raw::c_char,
|
|
|
|
|
) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfDump();
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfNodeDump(node: *const SCConfNode, prefix: *const ::std::os::raw::c_char);
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfNodeNew() -> *mut SCConfNode;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfNodeFree(arg1: *mut SCConfNode);
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfGetNode(key: *const ::std::os::raw::c_char) -> *mut SCConfNode;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfCreateContextBackup();
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfRestoreContextBackup();
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfNodeLookupChild(
|
|
|
|
|
node: *const SCConfNode, key: *const ::std::os::raw::c_char,
|
|
|
|
|
) -> *mut SCConfNode;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfNodeLookupChildValue(
|
|
|
|
|
node: *const SCConfNode, key: *const ::std::os::raw::c_char,
|
|
|
|
|
) -> *const ::std::os::raw::c_char;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfNodeRemove(arg1: *mut SCConfNode);
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfRegisterTests();
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfNodeChildValueIsTrue(
|
|
|
|
|
node: *const SCConfNode, key: *const ::std::os::raw::c_char,
|
|
|
|
|
) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfValIsTrue(val: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfValIsFalse(val: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfNodePrune(node: *mut SCConfNode);
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfRemove(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfNodeHasChildren(node: *const SCConfNode) -> bool;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfGetChildWithDefault(
|
|
|
|
|
base: *const SCConfNode, dflt: *const SCConfNode, name: *const ::std::os::raw::c_char,
|
|
|
|
|
) -> *mut SCConfNode;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfNodeLookupKeyValue(
|
|
|
|
|
base: *const SCConfNode, key: *const ::std::os::raw::c_char,
|
|
|
|
|
value: *const ::std::os::raw::c_char,
|
|
|
|
|
) -> *mut SCConfNode;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfGetChildValue(
|
|
|
|
|
base: *const SCConfNode, name: *const ::std::os::raw::c_char,
|
|
|
|
|
vptr: *mut *const ::std::os::raw::c_char,
|
|
|
|
|
) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfGetChildValueInt(
|
|
|
|
|
base: *const SCConfNode, name: *const ::std::os::raw::c_char, val: *mut intmax_t,
|
|
|
|
|
) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfGetChildValueBool(
|
|
|
|
|
base: *const SCConfNode, name: *const ::std::os::raw::c_char,
|
|
|
|
|
val: *mut ::std::os::raw::c_int,
|
|
|
|
|
) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfGetChildValueWithDefault(
|
|
|
|
|
base: *const SCConfNode, dflt: *const SCConfNode, name: *const ::std::os::raw::c_char,
|
|
|
|
|
vptr: *mut *const ::std::os::raw::c_char,
|
|
|
|
|
) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfGetChildValueIntWithDefault(
|
|
|
|
|
base: *const SCConfNode, dflt: *const SCConfNode, name: *const ::std::os::raw::c_char,
|
|
|
|
|
val: *mut intmax_t,
|
|
|
|
|
) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfGetChildValueBoolWithDefault(
|
|
|
|
|
base: *const SCConfNode, dflt: *const SCConfNode, name: *const ::std::os::raw::c_char,
|
|
|
|
|
val: *mut ::std::os::raw::c_int,
|
|
|
|
|
) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfNodeIsSequence(node: *const SCConfNode) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfSetIfaceNode(
|
|
|
|
|
ifaces_node_name: *const ::std::os::raw::c_char, iface: *const ::std::os::raw::c_char,
|
|
|
|
|
) -> *mut SCConfNode;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfSetRootAndDefaultNodes(
|
|
|
|
|
ifaces_node_name: *const ::std::os::raw::c_char, iface: *const ::std::os::raw::c_char,
|
|
|
|
|
if_root: *mut *mut SCConfNode, if_default: *mut *mut SCConfNode,
|
|
|
|
|
) -> ::std::os::raw::c_int;
|
|
|
|
|
}
|
|
|
|
|
extern "C" {
|
|
|
|
|
pub fn SCConfNodeGetNodeOrCreate(
|
|
|
|
|
parent: *mut SCConfNode, name: *const ::std::os::raw::c_char, final_: ::std::os::raw::c_int,
|
|
|
|
|
) -> *mut SCConfNode;
|
|
|
|
|
}
|
|
|
|
|
|