diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-04 18:33:25 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-09-04 18:33:25 +0200 |
commit | 0c823ed77d2d4aaca12d4c9504e808e4c715b8e4 (patch) | |
tree | 7033b9a9480b8e6362a60ea59a4ae589345cfda3 /proto.c | |
parent | d06540fec1150b2046ae4929265e9d38673c5ceb (diff) |
remove the uci dependency from protocol handlers
Diffstat (limited to 'proto.c')
-rw-r--r-- | proto.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -35,15 +35,14 @@ invalid_proto_handler(struct interface_proto_state *proto, static int no_proto_handler(struct interface_proto_state *proto, - enum interface_proto_cmd cmd, bool force) + enum interface_proto_cmd cmd, bool force) { return 0; } static struct interface_proto_state * default_proto_attach(const struct proto_handler *h, - struct interface *iface, - struct uci_section *s) + struct interface *iface, struct blob_attr *attr) { struct interface_proto_state *proto; @@ -75,16 +74,16 @@ get_proto_handler(const char *name) } void -proto_init_interface(struct interface *iface, struct uci_section *s) +proto_init_interface(struct interface *iface, struct blob_attr *attr) { const struct proto_handler *proto = iface->proto_handler; struct interface_proto_state *state = NULL; if (proto) - state = proto->attach(proto, iface, s); + state = proto->attach(proto, iface, attr); if (!state) { - state = no_proto.attach(&no_proto, iface, s); + state = no_proto.attach(&no_proto, iface, attr); state->handler = invalid_proto_handler; } |