Break API some more
Since we've broken the API anyway, remove some aliases which only exist for backwards compatibility.
This commit is contained in:
parent
8a3efffa5b
commit
7179b2d859
4 changed files with 0 additions and 12 deletions
|
@ -36,8 +36,6 @@ extern struct nl_object * nl_cache_get_last(struct nl_cache *);
|
|||
extern struct nl_object * nl_cache_get_next(struct nl_object *);
|
||||
extern struct nl_object * nl_cache_get_prev(struct nl_object *);
|
||||
|
||||
/* Cache creation/deletion */
|
||||
#define nl_cache_alloc_from_ops(ptr) nl_cache_alloc(ptr)
|
||||
extern struct nl_cache * nl_cache_alloc(struct nl_cache_ops *);
|
||||
extern int nl_cache_alloc_and_fill(struct nl_cache_ops *,
|
||||
struct nl_handle *,
|
||||
|
@ -54,9 +52,7 @@ extern int nl_cache_add(struct nl_cache *,
|
|||
struct nl_object *);
|
||||
extern int nl_cache_parse_and_add(struct nl_cache *,
|
||||
struct nl_msg *);
|
||||
#define nl_cache_delete(a, b) nl_cache_remove(b)
|
||||
extern void nl_cache_remove(struct nl_object *);
|
||||
#define nl_cache_update(a, b) nl_cache_refill(a, b)
|
||||
extern int nl_cache_refill(struct nl_handle *,
|
||||
struct nl_cache *);
|
||||
extern int nl_cache_pickup(struct nl_handle *,
|
||||
|
|
|
@ -68,11 +68,6 @@ extern struct nlattr * nlmsg_find_attr(struct nlmsghdr *, int, int);
|
|||
extern int nlmsg_validate(struct nlmsghdr *, int, int,
|
||||
struct nla_policy *);
|
||||
|
||||
/* Backward compatibility */
|
||||
#define nlmsg_new() nlmsg_alloc()
|
||||
#define nlmsg_build_simple(a, b) nlmsg_alloc_simple(a, b)
|
||||
#define nlmsg_build(ptr) nlmsg_inherit(ptr)
|
||||
|
||||
extern struct nl_msg * nlmsg_alloc(void);
|
||||
extern struct nl_msg * nlmsg_alloc_size(size_t);
|
||||
extern struct nl_msg * nlmsg_alloc_simple(int, int);
|
||||
|
|
|
@ -59,7 +59,6 @@ extern int nl_recv(struct nl_handle *,
|
|||
|
||||
extern int nl_recvmsgs(struct nl_handle *, struct nl_cb *);
|
||||
|
||||
#define nl_recvmsgs_def(handle) nl_recvmsgs_default(handle)
|
||||
extern int nl_recvmsgs_default(struct nl_handle *);
|
||||
|
||||
extern int nl_wait_for_ack(struct nl_handle *);
|
||||
|
|
|
@ -44,9 +44,7 @@ extern void rtnl_rule_set_family(struct rtnl_rule *, int);
|
|||
extern int rtnl_rule_get_family(struct rtnl_rule *);
|
||||
extern void rtnl_rule_set_prio(struct rtnl_rule *, int);
|
||||
extern int rtnl_rule_get_prio(struct rtnl_rule *);
|
||||
#define rtnl_rule_set_fwmark(ptr, n) rtnl_rule_set_mark(ptr, n)
|
||||
extern void rtnl_rule_set_mark(struct rtnl_rule *, uint64_t);
|
||||
#define rtnl_rule_get_fwmark(ptr) rtnl_rule_get_mark(ptr)
|
||||
extern uint64_t rtnl_rule_get_mark(struct rtnl_rule *);
|
||||
extern void rtnl_rule_set_table(struct rtnl_rule *, int);
|
||||
extern int rtnl_rule_get_table(struct rtnl_rule *);
|
||||
|
|
Loading…
Add table
Reference in a new issue