diff options
Diffstat (limited to 'include/libnftnl/regs.h')
-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_ */ |