Catalli's threaded switch
[sliver-openvswitch.git] / lib / dpif-provider.h
index 1106db8..5a36af3 100644 (file)
@@ -77,6 +77,16 @@ struct dpif_class {
      * to be called. */
     void (*wait)(void);
 
+#ifdef THREADED
+    /* Starts the datapath management. This function is thought for a scenario
+     * in which the datapath and the ofproto modules are managed in different
+     * threads/processes */
+    void (*start)(void);
+
+    /* Function called in the arrival of a fatal signal (e.g. SIGTERM) */
+    void (*exit_hook)(void*);
+#endif
+
     /* Enumerates the names of all known created datapaths, if possible, into
      * 'all_dps'.  The caller has already initialized 'all_dps' and other dpif
      * classes might already have added names to it.