Cleanup <netlink/route/qdisc.h>
- remove dead prototypes - reformat
This commit is contained in:
parent
a62bfdb8e0
commit
8d5493418a
2 changed files with 11 additions and 12 deletions
|
@ -6,7 +6,7 @@
|
|||
* License as published by the Free Software Foundation version 2.1
|
||||
* of the License.
|
||||
*
|
||||
* Copyright (c) 2003-2008 Thomas Graf <tgraf@suug.ch>
|
||||
* Copyright (c) 2003-2011 Thomas Graf <tgraf@suug.ch>
|
||||
*/
|
||||
|
||||
#ifndef NETLINK_QDISC_H_
|
||||
|
@ -22,15 +22,17 @@ extern "C" {
|
|||
|
||||
struct rtnl_qdisc;
|
||||
|
||||
extern struct nl_object_ops qdisc_obj_ops;
|
||||
|
||||
extern struct rtnl_qdisc *rtnl_qdisc_alloc(void);
|
||||
extern struct rtnl_qdisc *
|
||||
rtnl_qdisc_alloc(void);
|
||||
extern void rtnl_qdisc_put(struct rtnl_qdisc *);
|
||||
|
||||
extern int rtnl_qdisc_alloc_cache(struct nl_sock *, struct nl_cache **);
|
||||
extern struct rtnl_qdisc *rtnl_qdisc_get(struct nl_cache *, int, uint32_t);
|
||||
extern struct rtnl_qdisc *rtnl_qdisc_get_by_parent(struct nl_cache *,
|
||||
int, uint32_t);
|
||||
|
||||
extern struct rtnl_qdisc *
|
||||
rtnl_qdisc_get(struct nl_cache *, int, uint32_t);
|
||||
|
||||
extern struct rtnl_qdisc *
|
||||
rtnl_qdisc_get_by_parent(struct nl_cache *, int, uint32_t);
|
||||
|
||||
extern int rtnl_qdisc_build_add_request(struct rtnl_qdisc *, int,
|
||||
struct nl_msg **);
|
||||
|
@ -46,8 +48,6 @@ extern int rtnl_qdisc_build_delete_request(struct rtnl_qdisc *,
|
|||
struct nl_msg **);
|
||||
extern int rtnl_qdisc_delete(struct nl_sock *, struct rtnl_qdisc *);
|
||||
|
||||
extern void rtnl_qdisc_set_kind(struct rtnl_qdisc *, const char *);
|
||||
|
||||
extern void rtnl_qdisc_foreach_child(struct rtnl_qdisc *, struct nl_cache *,
|
||||
void (*cb)(struct nl_object *, void *),
|
||||
void *);
|
||||
|
@ -56,8 +56,6 @@ extern void rtnl_qdisc_foreach_cls(struct rtnl_qdisc *, struct nl_cache *,
|
|||
void (*cb)(struct nl_object *, void *),
|
||||
void *);
|
||||
|
||||
extern struct nl_msg * rtnl_qdisc_get_opts(struct rtnl_qdisc *);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -93,6 +93,7 @@
|
|||
#include <netlink/route/classifier.h>
|
||||
|
||||
static struct nl_cache_ops rtnl_qdisc_ops;
|
||||
static struct nl_object_ops qdisc_obj_ops;
|
||||
|
||||
static int qdisc_msg_parser(struct nl_cache_ops *ops, struct sockaddr_nl *who,
|
||||
struct nlmsghdr *n, struct nl_parser_param *pp)
|
||||
|
@ -514,7 +515,7 @@ static struct nl_cache_ops rtnl_qdisc_ops = {
|
|||
.co_obj_ops = &qdisc_obj_ops,
|
||||
};
|
||||
|
||||
struct nl_object_ops qdisc_obj_ops = {
|
||||
static struct nl_object_ops qdisc_obj_ops = {
|
||||
.oo_name = "route/qdisc",
|
||||
.oo_size = sizeof(struct rtnl_qdisc),
|
||||
.oo_free_data = rtnl_tc_free_data,
|
||||
|
|
Loading…
Add table
Reference in a new issue