X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=lib%2Fdummy.h;h=5b8a84128059f6df2e9c3aab6f6ab0a15451d354;hb=ca7e7bee86b4ee821d61b58bf15c89a9d8a3cb30;hp=abbb36387005fc6c714d54f0c8b3e40eba5f3b35;hpb=0cbfe35d74ab5f585033844b6513273aa16cca11;p=cascardo%2Fovs.git diff --git a/lib/dummy.h b/lib/dummy.h index abbb36387..5b8a84128 100644 --- a/lib/dummy.h +++ b/lib/dummy.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2011, 2012 Nicira Networks. + * Copyright (c) 2010, 2011, 2012, 2013, 2015 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,12 +19,25 @@ #include +/* Degree of dummy support. + * + * Beyond enabling support for dummies, it can be useful to replace some kinds + * of bridges and netdevs, or all kinds, by dummies. This enum expresses the + * degree to which this should happen. */ +enum dummy_level { + DUMMY_OVERRIDE_NONE, /* Support dummy but don't force its use. */ + DUMMY_OVERRIDE_SYSTEM, /* Replace "system" by dummy. */ + DUMMY_OVERRIDE_ALL, /* Replace all types by dummy. */ +}; + /* For client programs to call directly to enable dummy support. */ -void dummy_enable(bool override); +void dummy_enable(const char *arg); /* Implementation details. */ -void dpif_dummy_register(bool override); -void netdev_dummy_register(bool override); +void dpif_dummy_register(enum dummy_level); +void netdev_dummy_register(enum dummy_level); void timeval_dummy_register(void); +void vlandev_dummy_enable(void); +void ofpact_dummy_enable(void); #endif /* dummy.h */