(value: int, archtype: QL_ARCH)
| 191 | |
| 192 | |
| 193 | def socket_option_mapping(value: int, archtype: QL_ARCH) -> str: |
| 194 | socket_option: Type[Enum] = { |
| 195 | QL_ARCH.X86: linux_x86_socket_options, |
| 196 | QL_ARCH.X8664: linux_x86_socket_options, |
| 197 | QL_ARCH.ARM: linux_arm_socket_options, |
| 198 | QL_ARCH.ARM64: linux_arm_socket_options, |
| 199 | QL_ARCH.MIPS: linux_mips_socket_options |
| 200 | }[archtype] |
| 201 | |
| 202 | return socket_option(value).name |
| 203 | |
| 204 | |
| 205 | __all__ = [ |
no outgoing calls
no test coverage detected