Lines Matching +full:socket +full:- +full:based
13 # See the COPYING file in the top-level directory.
15 # Based on ./scripts/qmp/qom-[set|get|tree|list]
36 Represents the return type from e.g. qom-list.
47 def make(cls, value: Dict[str, Any]) -> 'ObjectPropertyInfo':
52 assert value.keys() <= {'name', 'type', 'description', 'default-value'}
55 value.get('default-value'))
58 def child(self) -> bool:
63 def link(self) -> bool:
70 Represents a property return from e.g. qom-tree-get
78 def make(cls, value: Dict[str, Any]) -> 'ObjectPropertyValue':
87 def child(self) -> bool:
94 Represents the return type from e.g. qom-list-get
96 # pylint: disable=too-few-public-methods
98 def __init__(self, properties: List[ObjectPropertyValue]) -> None:
102 def make(cls, value: Dict[str, Any]) -> 'ObjectPropertiesValues':
119 Represents a QOM sub-command.
127 if args.socket is None:
128 raise QMPError("No QMP socket path or address given")
130 QEMUMonitorProtocol.parse_address(args.socket)
135 def register(cls, subparsers: Any) -> None:
146 def configure_parser(cls, parser: argparse.ArgumentParser) -> None:
154 '--socket', '-s',
155 dest='socket',
157 help='QMP socket path or address (addr:port).'
164 def add_path_prop_arg(cls, parser: argparse.ArgumentParser) -> None:
177 def run(self) -> int:
185 def qom_list(self, path: str) -> List[ObjectPropertyInfo]:
187 :return: a strongly typed list from the 'qom-list' command.
189 rsp = self.qmp.cmd('qom-list', path=path)
190 # qom-list returns List[ObjectPropertyInfo]
194 def qom_list_get(self, paths: List[str]) -> List[ObjectPropertiesValues]:
196 :return: a strongly typed list from the 'qom-list-get' command.
198 rsp = self.qmp.cmd('qom-list-get', paths=paths)
199 # qom-list-get returns List[ObjectPropertiesValues]
207 ) -> int:
209 Run a fully-parsed subcommand, with error-handling for the CLI.
218 return -1
221 def entry_point(cls) -> int: