ebpf_kern/
program.rs

1use core::{marker::PhantomData, ffi::{c_void, c_int}};
2
3pub struct ProgRef {
4    _private: PhantomData<fn(ctx: *const c_void) -> c_int>,
5}
6
7impl ProgRef {
8    #[inline(always)]
9    pub fn new(function: fn(ctx: *const c_void) -> c_int) -> Self {
10        let _ = function;
11        ProgRef {
12            _private: PhantomData,
13        }
14    }
15}