, RpcCallVersion(..)
, RpcResultVersion(..)
- , StorageType(..)
, StorageField(..)
, RpcCallStorageList(..)
, RpcResultStorageList(..)
-- Query node version.
-- Note: We can't use THH as it does not know what to do with empty dict
data RpcCallVersion = RpcCallVersion {}
- deriving (Show, Read, Eq)
+ deriving (Show, Eq)
instance J.JSON RpcCallVersion where
showJSON _ = J.JSNull
-- ** StorageList
-- | StorageList
--- Get list of storage units.
--- FIXME: This may be moved to Objects
-$(declareSADT "StorageType"
- [ ( "STLvmPv", 'C.stLvmPv )
- , ( "STFile", 'C.stFile )
- , ( "STLvmVg", 'C.stLvmVg )
- ])
-$(makeJSONInstance ''StorageType)
-- FIXME: This may be moved to Objects
$(declareSADT "StorageField"