
22 Nov
2010
22 Nov
'10
10:47 p.m.
On Mon, Nov 22, 2010 at 06:09:21PM +0000, Daniel P. Berrange wrote:
+/* + * Flags to pass to 'load_drv' and also 'new_drv' method + * Plugins must support at least one of the modes. If a + * mode is unsupported, it must return an error + */ +enum { + VIR_LOCK_MANAGER_MODE_CONTENT = (1 << 0), + VIR_LOCK_MANAGER_MODE_METADATA = (1 << 1), +} virLockManagerFlags;
If I want one plugin to provide both modes, but want to deal with each mode differently, then wouldn't I need a separate _virLockDriver structure for each, or a mode arg in each function? Dave