summaryrefslogtreecommitdiffstats
path: root/include/common.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/common.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/common.h')
-rw-r--r--include/common.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/common.h b/include/common.h
index 4b9e2c5..425bbf5 100644
--- a/include/common.h
+++ b/include/common.h
@@ -4,29 +4,29 @@
#define BASE_DEC 10
#define BASE_HEX 16
-#define NFT_SNPRINTF_BUFSIZ 4096
+#define NFTNL_SNPRINTF_BUFSIZ 4096
-struct nft_parse_err {
+struct nftnl_parse_err {
int line;
int column;
int error;
const char *node_name;
};
-enum nft_parse_input {
- NFT_PARSE_BUFFER,
- NFT_PARSE_FILE,
+enum nftnl_parse_input {
+ NFTNL_PARSE_BUFFER,
+ NFTNL_PARSE_FILE,
};
#include <stdio.h>
-int nft_cmd_header_snprintf(char *buf, size_t bufsize, uint32_t cmd,
+int nftnl_cmd_header_snprintf(char *buf, size_t bufsize, uint32_t cmd,
uint32_t format, uint32_t flags);
-int nft_cmd_header_fprintf(FILE *fp, uint32_t cmd, uint32_t format,
+int nftnl_cmd_header_fprintf(FILE *fp, uint32_t cmd, uint32_t format,
uint32_t flags);
-int nft_cmd_footer_snprintf(char *buf, size_t bufsize, uint32_t cmd,
+int nftnl_cmd_footer_snprintf(char *buf, size_t bufsize, uint32_t cmd,
uint32_t format, uint32_t flags);
-int nft_cmd_footer_fprintf(FILE *fp, uint32_t cmd, uint32_t format,
+int nftnl_cmd_footer_fprintf(FILE *fp, uint32_t cmd, uint32_t format,
uint32_t flags);
#endif