summaryrefslogtreecommitdiff
path: root/include/netlink/route/qdisc.h
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2011-03-24 22:50:11 +0100
committerThomas Graf <tgraf@suug.ch>2011-03-24 22:50:11 +0100
commite4b507e290475b59b08a022b1805f693d7867355 (patch)
treee15c3d17b1ddd66b0d9b63ba81e6e5720384cd79 /include/netlink/route/qdisc.h
parentf523f297f7fed8b64fe4c2a6e3791d31b2d2448b (diff)
downloadlibnl-e4b507e290475b59b08a022b1805f693d7867355.tar.gz
Deprecate rtnl_qdisc_foreach_child() and rtnl_qdisc_foreach_cls()
Their usage is not completely safe, it is not possible to handle the out of memory situation of the allocate filter. It is very unlikely for this to cause any problem though. The functions are still accessible but gcc will warn about their deprecation.
Diffstat (limited to 'include/netlink/route/qdisc.h')
-rw-r--r--include/netlink/route/qdisc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/netlink/route/qdisc.h b/include/netlink/route/qdisc.h
index a08fca1..fbff666 100644
--- a/include/netlink/route/qdisc.h
+++ b/include/netlink/route/qdisc.h
@@ -48,13 +48,14 @@ extern int rtnl_qdisc_build_delete_request(struct rtnl_qdisc *,
struct nl_msg **);
extern int rtnl_qdisc_delete(struct nl_sock *, struct rtnl_qdisc *);
+/* Deprecated functions */
extern void rtnl_qdisc_foreach_child(struct rtnl_qdisc *, struct nl_cache *,
void (*cb)(struct nl_object *, void *),
- void *);
+ void *) __attribute__ ((deprecated));
extern void rtnl_qdisc_foreach_cls(struct rtnl_qdisc *, struct nl_cache *,
void (*cb)(struct nl_object *, void *),
- void *);
+ void *) __attribute__ ((deprecated));
#ifdef __cplusplus
}