falco_plugin_api/
lib.rs

1pub use ffi::*;
2use std::ffi::CStr;
3
4#[allow(dead_code)]
5#[allow(non_snake_case)]
6#[allow(non_camel_case_types)]
7#[allow(non_upper_case_globals)]
8mod ffi;
9
10pub const SCHEMA_VERSION: &CStr = {
11    match CStr::from_bytes_with_nul(
12        concat!(include_str!("../plugin/SCHEMA_VERSION"), "\0").as_bytes(),
13    ) {
14        Ok(s) => s,
15        Err(_) => panic!("Failed to parse SCHEMA_VERSION: embedded null byte in string"),
16    }
17};