// // Created by Carl.Guo on 2025/4/17. // #ifndef PHPCPP_HELLOWORLD_FUNCTION_H #define PHPCPP_HELLOWORLD_FUNCTION_H #include #include #include #include "bpf_module.h" #include "BPF.h" class ProgFunc : public Php::Base { public: ebpf::BPF *bpf; std::string _name; int _fd; ProgFunc(ebpf::BPF *bpf_instance, std::string name, int fd) : bpf(bpf_instance), _name(std::move(name)), _fd(fd) { } virtual ~ProgFunc() = default; Php::Value __get(const Php::Value &name); }; #endif //PHPCPP_HELLOWORLD_FUNCTION_H