summaryrefslogtreecommitdiffstats
path: root/include/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/buffer.h')
-rw-r--r--include/buffer.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/include/buffer.h b/include/buffer.h
index 38b6136..a5bd039 100644
--- a/include/buffer.h
+++ b/include/buffer.h
@@ -1,10 +1,10 @@
-#ifndef _NFT_BUFFER_H_
-#define _NFT_BUFFER_H_
+#ifndef _NFTNL_BUFFER_H_
+#define _NFTNL_BUFFER_H_
#include <stdint.h>
#include <stdbool.h>
-struct nft_buf {
+struct nftnl_buf {
char *buf;
size_t size;
size_t len;
@@ -12,28 +12,28 @@ struct nft_buf {
bool fail;
};
-#define NFT_BUF_INIT(__b, __buf, __len) \
- struct nft_buf __b = { \
+#define NFTNL_BUF_INIT(__b, __buf, __len) \
+ struct nftnl_buf __b = { \
.buf = __buf, \
.len = __len, \
};
-int nft_buf_update(struct nft_buf *b, int ret);
-int nft_buf_done(struct nft_buf *b);
+int nftnl_buf_update(struct nftnl_buf *b, int ret);
+int nftnl_buf_done(struct nftnl_buf *b);
-union nft_data_reg;
+union nftnl_data_reg;
-int nft_buf_open(struct nft_buf *b, int type, const char *tag);
-int nft_buf_close(struct nft_buf *b, int type, const char *tag);
+int nftnl_buf_open(struct nftnl_buf *b, int type, const char *tag);
+int nftnl_buf_close(struct nftnl_buf *b, int type, const char *tag);
-int nft_buf_open_array(struct nft_buf *b, int type, const char *tag);
-int nft_buf_close_array(struct nft_buf *b, int type, const char *tag);
+int nftnl_buf_open_array(struct nftnl_buf *b, int type, const char *tag);
+int nftnl_buf_close_array(struct nftnl_buf *b, int type, const char *tag);
-int nft_buf_u32(struct nft_buf *b, int type, uint32_t value, const char *tag);
-int nft_buf_s32(struct nft_buf *b, int type, uint32_t value, const char *tag);
-int nft_buf_u64(struct nft_buf *b, int type, uint64_t value, const char *tag);
-int nft_buf_str(struct nft_buf *b, int type, const char *str, const char *tag);
-int nft_buf_reg(struct nft_buf *b, int type, union nft_data_reg *reg,
+int nftnl_buf_u32(struct nftnl_buf *b, int type, uint32_t value, const char *tag);
+int nftnl_buf_s32(struct nftnl_buf *b, int type, uint32_t value, const char *tag);
+int nftnl_buf_u64(struct nftnl_buf *b, int type, uint64_t value, const char *tag);
+int nftnl_buf_str(struct nftnl_buf *b, int type, const char *str, const char *tag);
+int nftnl_buf_reg(struct nftnl_buf *b, int type, union nftnl_data_reg *reg,
int reg_type, const char *tag);
#define BASE "base"