learning-switch: Add ability to define default flows
[sliver-openvswitch.git] / lib / learning-switch.h
index a2ac53b..3b414a5 100644 (file)
 
 #include <stdbool.h>
 #include <stdint.h>
+#include <stdio.h>
 
 struct ofpbuf;
 struct rconn;
 
 struct lswitch *lswitch_create(struct rconn *, bool learn_macs,
-                              bool exact_flows, int max_idle,
-                              bool action_normal);
+                               bool exact_flows, int max_idle, 
+                               bool action_normal, FILE *default_flows);
 void lswitch_set_queue(struct lswitch *sw, uint32_t queue);
 void lswitch_run(struct lswitch *, struct rconn *);
 void lswitch_wait(struct lswitch *);