summaryrefslogtreecommitdiffstats
path: root/include/buffer.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-09-01 20:19:56 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-09-07 19:24:19 +0200
commit760768890e60617acfd144dce875a4a3be14513c (patch)
tree14a3a4f53e81fd9b44c8481e123f2c0ceb6f2bff /include/buffer.h
parentb7154e52fc417e927bef0bbfa5db6e7a71f28602 (diff)
src: rename existing functions to use the nftnl_ prefix
So we can use the nft_* prefix anytime soon for our upcoming higher level library. After this patch, the nft_* symbols become an alias of the nftnl_* symbols. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
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"