annotate stubs/usb/backend/openusb.pyi @ 2133:1dbbf0db3036

WIP graph-using songlist; trying to make request-then-play safer ux for song playback
author drewp@bigasterisk.com
date Sun, 05 Jun 2022 01:42:39 +0000
parents 5c1b662c0263
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1882
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
1 # Stubs for usb.backend.openusb (Python 3)
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
2 #
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
3 # NOTE: This dynamically typed stub was automatically generated by stubgen.
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
4
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
5 from ctypes import *
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
6 import usb.libloader as _objfinalizer
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
7 import usb.libloader
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
8 from typing import Any
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
9
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
10 class _usb_endpoint_desc(Structure): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
11 class _usb_interface_desc(Structure): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
12 class _usb_config_desc(Structure): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
13 class _usb_device_desc(Structure): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
14 class _openusb_request_result(Structure): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
15
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
16 class _openusb_ctrl_request(Structure):
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
17 payload: Any = ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
18 length: int = ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
19 timeout: int = ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
20 flags: int = ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
21 next: Any = ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
22 def __init__(self) -> None: ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
23 class _openusb_ctrl_setup(Structure): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
24
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
25 class _openusb_intr_request(Structure): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
26 class _openusb_bulk_request(Structure): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
27
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
28 class _openusb_isoc_pkts(Structure):
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
29 class _openusb_isoc_packet(Structure): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
30
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
31 class _openusb_isoc_request(Structure): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
32
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
33 class _Context(_objfinalizer.AutoFinalizedObject):
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
34 handle: Any = ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
35 def __init__(self) -> None: ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
36
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
37 class _BusIterator(_objfinalizer.AutoFinalizedObject):
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
38 buslist: Any = ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
39 num_busids: Any = ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
40 def __init__(self) -> None: ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
41 def __iter__(self) -> None: ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
42
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
43 class _DevIterator(_objfinalizer.AutoFinalizedObject):
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
44 devlist: Any = ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
45 num_devids: Any = ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
46 def __init__(self, busid: Any) -> None: ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
47 def __iter__(self) -> None: ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
48
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
49 class _OpenUSB(usb.backend.IBackend):
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
50 def enumerate_devices(self) -> None: ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
51 def get_device_descriptor(self, dev: Any): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
52 def get_configuration_descriptor(self, dev: Any, config: Any): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
53 def get_interface_descriptor(self, dev: Any, intf: Any, alt: Any, config: Any): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
54 def get_endpoint_descriptor(self, dev: Any, ep: Any, intf: Any, alt: Any, config: Any): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
55 def open_device(self, dev: Any): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
56 def close_device(self, dev_handle: Any) -> None: ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
57 def set_configuration(self, dev_handle: Any, config_value: Any) -> None: ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
58 def get_configuration(self, dev_handle: Any): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
59 def set_interface_altsetting(self, dev_handle: Any, intf: Any, altsetting: Any) -> None: ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
60 def claim_interface(self, dev_handle: Any, intf: Any) -> None: ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
61 def release_interface(self, dev_handle: Any, intf: Any) -> None: ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
62 def bulk_write(self, dev_handle: Any, ep: Any, intf: Any, data: Any, timeout: Any): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
63 def bulk_read(self, dev_handle: Any, ep: Any, intf: Any, buff: Any, timeout: Any): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
64 def intr_write(self, dev_handle: Any, ep: Any, intf: Any, data: Any, timeout: Any): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
65 def intr_read(self, dev_handle: Any, ep: Any, intf: Any, buff: Any, timeout: Any): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
66 def ctrl_transfer(self, dev_handle: Any, bmRequestType: Any, bRequest: Any, wValue: Any, wIndex: Any, data: Any, timeout: Any): ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
67 def reset_device(self, dev_handle: Any) -> None: ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
68 def clear_halt(self, dev_handle: Any, ep: Any) -> None: ...
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
69
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
70 # Names in __all__ with no definition:
5c1b662c0263 stub updates
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
71 # get_backendOPENUSB_SUCCESSOPENUSB_PLATFORM_FAILUREOPENUSB_NO_RESOURCESOPENUSB_NO_BANDWIDTHOPENUSB_NOT_SUPPORTEDOPENUSB_HC_HARDWARE_ERROROPENUSB_INVALID_PERMOPENUSB_BUSYOPENUSB_BADARGOPENUSB_NOACCESSOPENUSB_PARSE_ERROROPENUSB_UNKNOWN_DEVICEOPENUSB_INVALID_HANDLEOPENUSB_SYS_FUNC_FAILUREOPENUSB_NULL_LISTOPENUSB_CB_CONTINUEOPENUSB_CB_TERMINATEOPENUSB_IO_STALLOPENUSB_IO_CRC_ERROROPENUSB_IO_DEVICE_HUNGOPENUSB_IO_REQ_TOO_BIGOPENUSB_IO_BIT_STUFFINGOPENUSB_IO_UNEXPECTED_PIDOPENUSB_IO_DATA_OVERRUNOPENUSB_IO_DATA_UNDERRUNOPENUSB_IO_BUFFER_OVERRUNOPENUSB_IO_BUFFER_UNDERRUNOPENUSB_IO_PID_CHECK_FAILUREOPENUSB_IO_DATA_TOGGLE_MISMATCHOPENUSB_IO_TIMEOUTOPENUSB_IO_CANCELED