falco_event/fields/
types.rs

1#![allow(non_camel_case_types)]
2
3pub use crate::fields::dynamic_params::*;
4pub use crate::fields::event_flags::*;
5pub use crate::types::Bool as PT_BOOL;
6pub use crate::types::Fd as PT_FD;
7pub use crate::types::FdList as PT_FDLIST;
8pub use crate::types::Gid as PT_GID;
9pub use crate::types::IpNet as PT_IPNET;
10pub use crate::types::Ipv4Net as PT_IPV4NET;
11pub use crate::types::Ipv6Net as PT_IPV6NET;
12pub use crate::types::Pid as PT_PID;
13pub use crate::types::Port as PT_PORT;
14pub use crate::types::RelativePath as PT_FSRELPATH;
15pub use crate::types::SigSet as PT_SIGSET;
16pub use crate::types::SigType as PT_SIGTYPE;
17pub use crate::types::SockAddr as PT_SOCKADDR;
18pub use crate::types::SockFamily as PT_SOCKFAMILY;
19pub use crate::types::SockTuple as PT_SOCKTUPLE;
20pub use crate::types::SyscallId as PT_SYSCALLID;
21pub use crate::types::SyscallResult as PT_ERRNO;
22pub use crate::types::SystemTime as PT_ABSTIME;
23pub use crate::types::Uid as PT_UID;
24use crate::types::{CStrArray, CStrPairArray};
25use std::ffi::CStr;
26pub use std::net::IpAddr as PT_IPADDR;
27pub use std::net::Ipv4Addr as PT_IPV4ADDR;
28pub use std::net::Ipv6Addr as PT_IPV6ADDR;
29pub use std::time::Duration as PT_RELTIME;
30pub use typed_path::UnixPath as PT_FSPATH;
31
32/// Signed 8-bit value ([i8])
33pub type PT_INT8 = i8;
34/// Signed 16-bit value ([i16])
35pub type PT_INT16 = i16;
36/// Signed 32-bit value ([i32])
37pub type PT_INT32 = i32;
38/// Signed 64-bit value ([i64])
39pub type PT_INT64 = i64;
40/// Unsigned 8-bit value ([u8])
41pub type PT_UINT8 = u8;
42/// Unsigned 16-bit value ([u16])
43pub type PT_UINT16 = u16;
44/// Unsigned 32-bit value ([u32])
45pub type PT_UINT32 = u32;
46/// Unsigned 64-bit value ([u64])
47pub type PT_UINT64 = u64;
48/// C-style string ([CStr])
49pub type PT_CHARBUF = CStr;
50/// Arbitrary byte buffer (`[u8]`)
51pub type PT_BYTEBUF = [u8];
52/// Array of C-style strings (`Vec<&CStr>`)
53pub type PT_CHARBUFARRAY<'a> = CStrArray<'a>;
54/// Array of pairs of C-style strings (`Vec<(&CStr, &CStr)>`)
55pub type PT_CHARBUF_PAIR_ARRAY<'a> = CStrPairArray<'a>;
56
57// PT_DOUBLE = 33, /* this is a double precision floating point number. */ // this remains unimplemented