From 8d5493418a5a82b5303722cd9b2964300813e693 Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Thu, 24 Mar 2011 20:57:43 +0100 Subject: Cleanup - remove dead prototypes - reformat --- include/netlink/route/qdisc.h | 20 +++++++++----------- lib/route/qdisc.c | 3 ++- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/include/netlink/route/qdisc.h b/include/netlink/route/qdisc.h index 966eb44..a08fca1 100644 --- a/include/netlink/route/qdisc.h +++ b/include/netlink/route/qdisc.h @@ -6,7 +6,7 @@ * License as published by the Free Software Foundation version 2.1 * of the License. * - * Copyright (c) 2003-2008 Thomas Graf + * Copyright (c) 2003-2011 Thomas Graf */ #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 diff --git a/lib/route/qdisc.c b/lib/route/qdisc.c index 6ec3a40..d0f2edc 100644 --- a/lib/route/qdisc.c +++ b/lib/route/qdisc.c @@ -93,6 +93,7 @@ #include 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, -- cgit v1.2.1