summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-02-17 22:28:18 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2009-02-17 22:28:18 +0100
commit269a060f38395b8ec64f915f68d4f79a4430780a (patch)
tree92564b6f750e34e40f0af9a6eba8a6e42a154fbb /include
parentde8dafc90e335cbb06252a087d25a7589b607ad2 (diff)
nfnl: tag nfnl_talk() and nfnl_listen() as deprecatedlibnfnetlink-0.0.41
This patch tags nfnl_talk() and nfnl_listen() as deprecated functions. The replacements nfnl_query() and nfnl_process() should be used instead. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/libnfnetlink/libnfnetlink.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/libnfnetlink/libnfnetlink.h b/include/libnfnetlink/libnfnetlink.h
index 10b6478..f689ab0 100644
--- a/include/libnfnetlink/libnfnetlink.h
+++ b/include/libnfnetlink/libnfnetlink.h
@@ -77,15 +77,15 @@ extern int nfnl_sendiov(const struct nfnl_handle *nfnlh,
extern void nfnl_fill_hdr(struct nfnl_subsys_handle *, struct nlmsghdr *,
unsigned int, u_int8_t, u_int16_t, u_int16_t,
u_int16_t);
-extern int nfnl_talk(struct nfnl_handle *, struct nlmsghdr *, pid_t,
- unsigned, struct nlmsghdr *,
- int (*)(struct sockaddr_nl *, struct nlmsghdr *, void *),
- void *);
+extern __attribute__((deprecated)) int
+nfnl_talk(struct nfnl_handle *, struct nlmsghdr *, pid_t,
+ unsigned, struct nlmsghdr *,
+ int (*)(struct sockaddr_nl *, struct nlmsghdr *, void *), void *);
/* simple challenge/response */
-extern int nfnl_listen(struct nfnl_handle *,
- int (*)(struct sockaddr_nl *, struct nlmsghdr *, void *),
- void *);
+extern __attribute__((deprecated)) int
+nfnl_listen(struct nfnl_handle *,
+ int (*)(struct sockaddr_nl *, struct nlmsghdr *, void *), void *);
/* receiving */
extern ssize_t nfnl_recv(const struct nfnl_handle *h, unsigned char *buf, size_t len);