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;
}
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;
}