summaryrefslogtreecommitdiffstats
path: root/include/libnftnl/regs.h
blob: 7df79ecd346b48dae9244f438e36a09a346b695e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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_ */