Rework STP implementation in controller.
[sliver-openvswitch.git] / include / learning-switch.h
index 8e30446..ce6df2f 100644 (file)
 
 #include <stdbool.h>
 
-struct buffer;
+struct ofpbuf;
 struct rconn;
 
-struct lswitch *lswitch_create(struct rconn *,
-                               bool learn_macs, bool setup_flows);
+struct lswitch *lswitch_create(struct rconn *, bool learn_macs, int max_idle);
+void lswitch_run(struct lswitch *, struct rconn *);
+void lswitch_wait(struct lswitch *);
 void lswitch_destroy(struct lswitch *);
 void lswitch_process_packet(struct lswitch *, struct rconn *,
-                            const struct buffer *);
+                            const struct ofpbuf *);
+
 
 #endif /* learning-switch.h */