#ifndef _LIBNFTNL_REGS_H_ #define _LIBNFTNL_REGS_H_ #include #ifdef __cplusplus extern "C" { #endif struct nftnl_regs; struct nftnl_expr; struct nftnl_regs *nftnl_regs_alloc(uint32_t num_regs); void nftnl_regs_free(const struct nftnl_regs *regs); uint32_t nftnl_reg_get(struct nftnl_regs *regs, const struct nftnl_expr *expr); uint32_t nftnl_reg_get_scratch(struct nftnl_regs *regs, uint32_t len); #ifdef __cplusplus } /* extern "C" */ #endif #endif /* _LIBNFTNL_REGS_H_ */