diff options
author | Maxim Devaev <[email protected]> | 2022-07-23 04:41:54 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-07-24 05:38:26 +0300 |
commit | 2eef9bd26394f5f98f1324012a3c77570e80a7e2 (patch) | |
tree | 5aef8e1650bc02b0bb65552a5d5f6d45cfb6eec8 /kvmd/plugins/msd/__init__.py | |
parent | 06bf0fcd17e58d0a719baed57fca9aa786340237 (diff) |
basic msd rw api
Diffstat (limited to 'kvmd/plugins/msd/__init__.py')
-rw-r--r-- | kvmd/plugins/msd/__init__.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/kvmd/plugins/msd/__init__.py b/kvmd/plugins/msd/__init__.py index 31095f3c..ac285f7b 100644 --- a/kvmd/plugins/msd/__init__.py +++ b/kvmd/plugins/msd/__init__.py @@ -93,7 +93,12 @@ class MsdMultiNotSupported(MsdOperationError): class MsdCdromNotSupported(MsdOperationError): def __init__(self) -> None: - super().__init__("This MSD does not support CD-ROM emulation") + super().__init__("This MSD does not support CD-ROM switching") + + +class MsdRwNotSupported(MsdOperationError): + def __init__(self) -> None: + super().__init__("This MSD does not support RW switching") # ===== @@ -114,7 +119,13 @@ class BaseMsd(BasePlugin): # ===== - async def set_params(self, name: Optional[str]=None, cdrom: Optional[bool]=None) -> None: + async def set_params( + self, + name: Optional[str]=None, + cdrom: Optional[bool]=None, + rw: Optional[bool]=None, + ) -> None: + raise NotImplementedError() async def set_connected(self, connected: bool) -> None: |