From e549f5b3239c19f78af2f7c7a582fe5616403ca8 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 12 May 2022 10:06:59 +0200 Subject: include: missing libnftnl/regs.h Add missing file, otherwise compilation breaks. Fixes: b9e00458b9f3 ("src: add dynamic register allocation infrastructure") Signed-off-by: Pablo Neira Ayuso --- include/libnftnl/regs.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 include/libnftnl/regs.h (limited to 'include') diff --git a/include/libnftnl/regs.h b/include/libnftnl/regs.h new file mode 100644 index 0000000..7df79ec --- /dev/null +++ b/include/libnftnl/regs.h @@ -0,0 +1,23 @@ +#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_ */ -- cgit v1.2.3