#ifndef PYLIBBPF_STRUCT_PARSER_H #define PYLIBBPF_STRUCT_PARSER_H #include #include #include namespace py = pybind11; class StructParser { private: std::unordered_map struct_types_; public: explicit StructParser(py::dict structs); py::object parse(const std::string &struct_name, py::bytes data); bool has_struct(const std::string &struct_name) const; }; #endif