10 default_proto_free(struct interface_proto_state
*proto
)
16 default_proto_handler(struct interface_proto_state
*proto
,
17 enum interface_proto_cmd cmd
, bool force
)
19 enum interface_event ev
;
25 case PROTO_CMD_TEARDOWN
:
31 proto
->proto_event(proto
, ev
);
35 struct interface_proto_state
*get_default_proto(void)
37 struct interface_proto_state
*proto
;
39 proto
= calloc(1, sizeof(*proto
));
40 proto
->handler
= default_proto_handler
;
41 proto
->free
= default_proto_free
;