summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2011-03-24 20:57:43 +0100
committerThomas Graf <tgraf@suug.ch>2011-03-24 20:57:43 +0100
commit8d5493418a5a82b5303722cd9b2964300813e693 (patch)
treed886e7d258becfbd8c26dc3fe043824839c70a57
parenta62bfdb8e0a1dffa7539fe813a96593c9c407686 (diff)
downloadlibnl-8d5493418a5a82b5303722cd9b2964300813e693.tar.gz
Cleanup <netlink/route/qdisc.h>
- remove dead prototypes - reformat
-rw-r--r--include/netlink/route/qdisc.h20
-rw-r--r--lib/route/qdisc.c3
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 <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
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 <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,