diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-05-12 10:06:59 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-05-12 10:06:59 +0200 |
commit | e549f5b3239c19f78af2f7c7a582fe5616403ca8 (patch) | |
tree | 56ab44758112099a6fd3177d75c9a1ce79fbfb16 /include | |
parent | 484ad4421a2ed07a94159b0fe92d5135f362c3bf (diff) |
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 <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libnftnl/regs.h | 23 |
1 files changed, 23 insertions, 0 deletions
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 <stdint.h> + +#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_ */ |