X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fdpif-provider.h;fp=lib%2Fdpif-provider.h;h=5a36af3cff52c3ffd33b201c24486fd8c32cabf7;hb=ea413ef8eecbcd3034446b9dfd49714cbb6815d2;hp=1106db888dc7248eee012112912d6189848a9ca7;hpb=d59051362fa8ac4369f1be69ac942a52c9a424b9;p=sliver-openvswitch.git diff --git a/lib/dpif-provider.h b/lib/dpif-provider.h index 1106db888..5a36af3cf 100644 --- a/lib/dpif-provider.h +++ b/lib/dpif-provider.h @@ -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.