usb 2.1.3 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +19 -2
  3. package/dist/index.d.ts +2 -1
  4. package/dist/index.js +3 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist/usb/bindings.d.ts +4 -0
  7. package/dist/usb/device.js +5 -0
  8. package/dist/usb/device.js.map +1 -1
  9. package/dist/usb/index.js +7 -16
  10. package/dist/usb/index.js.map +1 -1
  11. package/dist/webusb/webusb-device.d.ts +0 -1
  12. package/dist/webusb/webusb-device.js +149 -243
  13. package/dist/webusb/webusb-device.js.map +1 -1
  14. package/libusb/.gitattributes +2 -6
  15. package/libusb/.private/appveyor_build.sh +22 -0
  16. package/libusb/.private/bm.sh +1 -1
  17. package/libusb/.private/ci-build.sh +67 -0
  18. package/libusb/.private/ci-container-build.sh +70 -0
  19. package/libusb/.private/post-rewrite.sh +5 -1
  20. package/libusb/.private/pre-commit.sh +5 -1
  21. package/libusb/.private/wbs.txt +4 -19
  22. package/libusb/.travis.yml +32 -23
  23. package/libusb/AUTHORS +86 -3
  24. package/libusb/ChangeLog +54 -3
  25. package/libusb/INSTALL_WIN.txt +22 -44
  26. package/libusb/Makefile.am +32 -10
  27. package/libusb/{README.md → README} +2 -2
  28. package/libusb/README.git +3 -3
  29. package/libusb/Xcode/common.xcconfig +23 -19
  30. package/libusb/Xcode/config.h +25 -13
  31. package/libusb/Xcode/libusb.xcodeproj/project.pbxproj +511 -109
  32. package/libusb/android/README +90 -54
  33. package/libusb/android/config.h +23 -43
  34. package/libusb/android/examples/unrooted_android.c +300 -0
  35. package/libusb/android/examples/unrooted_android.h +36 -0
  36. package/libusb/android/jni/Android.mk +1 -1
  37. package/libusb/android/jni/Application.mk +16 -0
  38. package/libusb/android/jni/examples.mk +63 -29
  39. package/libusb/android/jni/libusb.mk +14 -8
  40. package/libusb/android/jni/tests.mk +13 -24
  41. package/libusb/appveyor.yml +73 -30
  42. package/libusb/autogen.sh +5 -3
  43. package/libusb/bootstrap.sh +6 -2
  44. package/libusb/configure.ac +314 -227
  45. package/libusb/doc/Makefile.in +22 -0
  46. package/libusb/doc/doxygen.cfg.in +460 -223
  47. package/libusb/examples/Makefile.am +6 -13
  48. package/libusb/examples/dpfp.c +276 -73
  49. package/libusb/examples/ezusb.c +18 -8
  50. package/libusb/examples/ezusb.h +6 -17
  51. package/libusb/examples/fxload.c +4 -5
  52. package/libusb/examples/hotplugtest.c +1 -1
  53. package/libusb/examples/sam3u_benchmark.c +59 -24
  54. package/libusb/examples/testlibusb.c +138 -104
  55. package/libusb/examples/xusb.c +26 -22
  56. package/libusb/libusb/Makefile.am +57 -70
  57. package/libusb/libusb/Makefile.am.extra +26 -0
  58. package/libusb/libusb/core.c +432 -423
  59. package/libusb/libusb/descriptor.c +365 -419
  60. package/libusb/libusb/hotplug.c +200 -104
  61. package/libusb/libusb/io.c +522 -535
  62. package/libusb/libusb/libusb-1.0.def +7 -3
  63. package/libusb/libusb/libusb-1.0.rc +1 -9
  64. package/libusb/libusb/libusb.h +302 -226
  65. package/libusb/libusb/libusbi.h +607 -316
  66. package/libusb/libusb/os/darwin_usb.c +703 -329
  67. package/libusb/libusb/os/darwin_usb.h +39 -15
  68. package/libusb/libusb/os/events_posix.c +300 -0
  69. package/libusb/libusb/os/events_posix.h +59 -0
  70. package/libusb/libusb/os/events_windows.c +214 -0
  71. package/libusb/{msvc/missing.h → libusb/os/events_windows.h} +25 -11
  72. package/libusb/libusb/os/haiku_pollfs.cpp +14 -9
  73. package/libusb/libusb/os/haiku_usb.h +12 -12
  74. package/libusb/libusb/os/haiku_usb_backend.cpp +36 -37
  75. package/libusb/libusb/os/haiku_usb_raw.cpp +80 -116
  76. package/libusb/libusb/os/linux_netlink.c +55 -63
  77. package/libusb/libusb/os/linux_udev.c +61 -69
  78. package/libusb/libusb/os/linux_usbfs.c +926 -1015
  79. package/libusb/libusb/os/linux_usbfs.h +74 -57
  80. package/libusb/libusb/os/netbsd_usb.c +103 -168
  81. package/libusb/libusb/os/null_usb.c +111 -0
  82. package/libusb/libusb/os/openbsd_usb.c +71 -120
  83. package/libusb/libusb/os/sunos_usb.c +289 -375
  84. package/libusb/libusb/os/sunos_usb.h +0 -1
  85. package/libusb/libusb/os/threads_posix.c +81 -32
  86. package/libusb/libusb/os/threads_posix.h +19 -23
  87. package/libusb/libusb/os/threads_windows.c +9 -95
  88. package/libusb/libusb/os/threads_windows.h +33 -31
  89. package/libusb/libusb/os/windows_common.c +915 -0
  90. package/libusb/libusb/os/windows_common.h +330 -42
  91. package/libusb/libusb/os/windows_usbdk.c +161 -267
  92. package/libusb/libusb/os/windows_usbdk.h +5 -2
  93. package/libusb/libusb/os/windows_winusb.c +1355 -1192
  94. package/libusb/libusb/os/windows_winusb.h +167 -167
  95. package/libusb/libusb/strerror.c +20 -30
  96. package/libusb/libusb/sync.c +20 -21
  97. package/libusb/libusb/version.h +1 -1
  98. package/libusb/libusb/version_nano.h +1 -1
  99. package/libusb/msvc/.gitattributes +3 -0
  100. package/libusb/msvc/config.h +27 -20
  101. package/libusb/msvc/{hotplugtest_2012.vcxproj → dpfp_2013.vcxproj} +14 -10
  102. package/libusb/msvc/dpfp_2013.vcxproj.filters +26 -0
  103. package/libusb/msvc/{hotplugtest_2010.vcxproj → dpfp_2015.vcxproj} +14 -9
  104. package/libusb/msvc/dpfp_2015.vcxproj.filters +26 -0
  105. package/libusb/msvc/dpfp_2017.vcxproj +106 -0
  106. package/libusb/msvc/dpfp_2017.vcxproj.filters +26 -0
  107. package/libusb/msvc/dpfp_2019.vcxproj +106 -0
  108. package/libusb/msvc/dpfp_2019.vcxproj.filters +26 -0
  109. package/libusb/msvc/dpfp_threaded_2013.vcxproj +87 -0
  110. package/libusb/msvc/dpfp_threaded_2013.vcxproj.filters +26 -0
  111. package/libusb/msvc/dpfp_threaded_2015.vcxproj +87 -0
  112. package/libusb/msvc/dpfp_threaded_2015.vcxproj.filters +26 -0
  113. package/libusb/msvc/dpfp_threaded_2017.vcxproj +106 -0
  114. package/libusb/msvc/dpfp_threaded_2017.vcxproj.filters +26 -0
  115. package/libusb/msvc/{fxload_2012.vcxproj → dpfp_threaded_2019.vcxproj} +32 -17
  116. package/libusb/msvc/dpfp_threaded_2019.vcxproj.filters +26 -0
  117. package/libusb/msvc/fxload_2013.vcxproj +6 -3
  118. package/libusb/msvc/fxload_2013.vcxproj.filters +35 -0
  119. package/libusb/msvc/fxload_2015.vcxproj +6 -3
  120. package/libusb/msvc/fxload_2015.vcxproj.filters +35 -0
  121. package/libusb/msvc/fxload_2017.vcxproj +6 -7
  122. package/libusb/msvc/fxload_2017.vcxproj.filters +35 -0
  123. package/libusb/msvc/{fxload_2010.vcxproj → fxload_2019.vcxproj} +29 -6
  124. package/libusb/msvc/fxload_2019.vcxproj.filters +35 -0
  125. package/libusb/{examples → msvc}/getopt/getopt.c +0 -0
  126. package/libusb/{examples → msvc}/getopt/getopt.h +0 -0
  127. package/libusb/{examples → msvc}/getopt/getopt1.c +0 -0
  128. package/libusb/msvc/getopt_2013.vcxproj +4 -5
  129. package/libusb/msvc/getopt_2013.vcxproj.filters +26 -0
  130. package/libusb/msvc/getopt_2015.vcxproj +4 -4
  131. package/libusb/msvc/getopt_2015.vcxproj.filters +26 -0
  132. package/libusb/msvc/getopt_2017.vcxproj +4 -10
  133. package/libusb/msvc/getopt_2017.vcxproj.filters +26 -0
  134. package/libusb/msvc/{getopt_2010.vcxproj → getopt_2019.vcxproj} +25 -5
  135. package/libusb/msvc/getopt_2019.vcxproj.filters +26 -0
  136. package/libusb/msvc/hotplugtest_2013.vcxproj +6 -3
  137. package/libusb/msvc/hotplugtest_2013.vcxproj.filters +23 -0
  138. package/libusb/msvc/hotplugtest_2015.vcxproj +6 -3
  139. package/libusb/msvc/hotplugtest_2015.vcxproj.filters +23 -0
  140. package/libusb/msvc/hotplugtest_2017.vcxproj +6 -7
  141. package/libusb/msvc/hotplugtest_2017.vcxproj.filters +23 -0
  142. package/libusb/msvc/hotplugtest_2019.vcxproj +105 -0
  143. package/libusb/msvc/hotplugtest_2019.vcxproj.filters +23 -0
  144. package/libusb/msvc/libusb_2013.sln +50 -20
  145. package/libusb/msvc/libusb_2015.sln +51 -21
  146. package/libusb/msvc/libusb_2017.sln +90 -36
  147. package/libusb/msvc/libusb_2019.sln +240 -0
  148. package/libusb/msvc/libusb_dll_2013.vcxproj +6 -9
  149. package/libusb/msvc/libusb_dll_2013.vcxproj.filters +94 -0
  150. package/libusb/msvc/libusb_dll_2015.vcxproj +6 -8
  151. package/libusb/msvc/libusb_dll_2015.vcxproj.filters +94 -0
  152. package/libusb/msvc/libusb_dll_2017.vcxproj +6 -16
  153. package/libusb/msvc/libusb_dll_2017.vcxproj.filters +94 -0
  154. package/libusb/msvc/{libusb_dll_2010.vcxproj → libusb_dll_2019.vcxproj} +27 -9
  155. package/libusb/msvc/libusb_dll_2019.vcxproj.filters +94 -0
  156. package/libusb/msvc/libusb_static_2013.vcxproj +5 -9
  157. package/libusb/msvc/libusb_static_2013.vcxproj.filters +80 -0
  158. package/libusb/msvc/libusb_static_2015.vcxproj +5 -8
  159. package/libusb/msvc/libusb_static_2015.vcxproj.filters +80 -0
  160. package/libusb/msvc/libusb_static_2017.vcxproj +5 -8
  161. package/libusb/msvc/libusb_static_2017.vcxproj.filters +80 -0
  162. package/libusb/msvc/{libusb_static_2010.vcxproj → libusb_static_2019.vcxproj} +26 -9
  163. package/libusb/msvc/libusb_static_2019.vcxproj.filters +80 -0
  164. package/libusb/msvc/listdevs_2013.vcxproj +6 -3
  165. package/libusb/msvc/listdevs_2013.vcxproj.filters +23 -0
  166. package/libusb/msvc/listdevs_2015.vcxproj +6 -3
  167. package/libusb/msvc/listdevs_2015.vcxproj.filters +23 -0
  168. package/libusb/msvc/listdevs_2017.vcxproj +6 -7
  169. package/libusb/msvc/listdevs_2017.vcxproj.filters +23 -0
  170. package/libusb/msvc/listdevs_2019.vcxproj +105 -0
  171. package/libusb/msvc/listdevs_2019.vcxproj.filters +23 -0
  172. package/libusb/msvc/{listdevs_2010.vcxproj → sam3u_benchmark_2013.vcxproj} +13 -8
  173. package/libusb/msvc/sam3u_benchmark_2013.vcxproj.filters +26 -0
  174. package/libusb/msvc/{listdevs_2012.vcxproj → sam3u_benchmark_2015.vcxproj} +13 -9
  175. package/libusb/msvc/sam3u_benchmark_2015.vcxproj.filters +26 -0
  176. package/libusb/msvc/sam3u_benchmark_2017.vcxproj +106 -0
  177. package/libusb/msvc/sam3u_benchmark_2017.vcxproj.filters +26 -0
  178. package/libusb/msvc/sam3u_benchmark_2019.vcxproj +106 -0
  179. package/libusb/msvc/sam3u_benchmark_2019.vcxproj.filters +26 -0
  180. package/libusb/msvc/stress_2013.vcxproj +4 -2
  181. package/libusb/msvc/stress_2013.vcxproj.filters +32 -0
  182. package/libusb/msvc/stress_2015.vcxproj +4 -2
  183. package/libusb/msvc/stress_2015.vcxproj.filters +32 -0
  184. package/libusb/msvc/stress_2017.vcxproj +4 -6
  185. package/libusb/msvc/stress_2017.vcxproj.filters +32 -0
  186. package/libusb/msvc/{stress_2010.vcxproj → stress_2019.vcxproj} +26 -4
  187. package/libusb/msvc/stress_2019.vcxproj.filters +32 -0
  188. package/libusb/msvc/testlibusb_2013.vcxproj +6 -3
  189. package/libusb/msvc/testlibusb_2013.vcxproj.filters +23 -0
  190. package/libusb/msvc/testlibusb_2015.vcxproj +6 -3
  191. package/libusb/msvc/testlibusb_2015.vcxproj.filters +23 -0
  192. package/libusb/msvc/testlibusb_2017.vcxproj +6 -7
  193. package/libusb/msvc/testlibusb_2017.vcxproj.filters +23 -0
  194. package/libusb/msvc/{testlibusb_2010.vcxproj → testlibusb_2019.vcxproj} +28 -5
  195. package/libusb/msvc/testlibusb_2019.vcxproj.filters +23 -0
  196. package/libusb/msvc/xusb_2013.vcxproj +6 -3
  197. package/libusb/msvc/xusb_2013.vcxproj.filters +23 -0
  198. package/libusb/msvc/xusb_2015.vcxproj +6 -3
  199. package/libusb/msvc/xusb_2015.vcxproj.filters +23 -0
  200. package/libusb/msvc/xusb_2017.vcxproj +6 -7
  201. package/libusb/msvc/xusb_2017.vcxproj.filters +23 -0
  202. package/libusb/msvc/{xusb_2010.vcxproj → xusb_2019.vcxproj} +28 -5
  203. package/libusb/msvc/xusb_2019.vcxproj.filters +23 -0
  204. package/libusb/tests/Makefile.am +13 -1
  205. package/libusb/tests/libusb_testlib.h +12 -43
  206. package/libusb/tests/stress.c +59 -50
  207. package/libusb/tests/testlib.c +78 -171
  208. package/libusb/tests/umockdev.c +1175 -0
  209. package/libusb.gypi +10 -11
  210. package/package.json +1 -1
  211. package/prebuilds/android-arm/node.napi.armv7.node +0 -0
  212. package/prebuilds/android-arm64/node.napi.armv8.node +0 -0
  213. package/prebuilds/darwin-x64+arm64/node.napi.node +0 -0
  214. package/prebuilds/linux-arm/node.napi.armv6.node +0 -0
  215. package/prebuilds/linux-arm/node.napi.armv7.node +0 -0
  216. package/prebuilds/linux-arm64/node.napi.armv8.node +0 -0
  217. package/prebuilds/linux-ia32/node.napi.node +0 -0
  218. package/prebuilds/linux-x64/node.napi.glibc.node +0 -0
  219. package/prebuilds/linux-x64/node.napi.musl.node +0 -0
  220. package/prebuilds/win32-ia32/node.napi.node +0 -0
  221. package/prebuilds/win32-x64/node.napi.node +0 -0
  222. package/src/device.cc +12 -7
  223. package/src/node_usb.cc +10 -0
  224. package/test/usb.coffee +6 -0
  225. package/tsc/index.ts +2 -0
  226. package/tsc/usb/bindings.ts +5 -0
  227. package/tsc/usb/device.ts +6 -0
  228. package/tsc/usb/index.ts +5 -8
  229. package/tsc/webusb/webusb-device.ts +67 -124
  230. package/dist/webusb/mutex.d.ts +0 -22
  231. package/dist/webusb/mutex.js +0 -89
  232. package/dist/webusb/mutex.js.map +0 -1
  233. package/libusb/.private/bd.cmd +0 -89
  234. package/libusb/.private/bwince.cmd +0 -57
  235. package/libusb/.private/wbs_wince.txt +0 -42
  236. package/libusb/Brewfile +0 -4
  237. package/libusb/appveyor_cygwin.bat +0 -11
  238. package/libusb/appveyor_minGW.bat +0 -19
  239. package/libusb/doc/Makefile.am +0 -9
  240. package/libusb/examples/dpfp_threaded.c +0 -557
  241. package/libusb/libusb/hotplug.h +0 -99
  242. package/libusb/libusb/os/poll_posix.c +0 -84
  243. package/libusb/libusb/os/poll_posix.h +0 -14
  244. package/libusb/libusb/os/poll_windows.c +0 -447
  245. package/libusb/libusb/os/poll_windows.h +0 -98
  246. package/libusb/libusb/os/wince_usb.c +0 -888
  247. package/libusb/libusb/os/wince_usb.h +0 -126
  248. package/libusb/libusb/os/windows_nt_common.c +0 -1010
  249. package/libusb/libusb/os/windows_nt_common.h +0 -110
  250. package/libusb/libusb/os/windows_nt_shared_types.h +0 -147
  251. package/libusb/msvc/appveyor.bat +0 -27
  252. package/libusb/msvc/ddk_build.cmd +0 -219
  253. package/libusb/msvc/errno.h +0 -102
  254. package/libusb/msvc/fxload_sources +0 -23
  255. package/libusb/msvc/getopt_2005.vcproj +0 -288
  256. package/libusb/msvc/getopt_2012.vcxproj +0 -73
  257. package/libusb/msvc/getopt_sources +0 -24
  258. package/libusb/msvc/hotplugtest_sources +0 -20
  259. package/libusb/msvc/inttypes.h +0 -295
  260. package/libusb/msvc/libusb.dsw +0 -71
  261. package/libusb/msvc/libusb_2005.sln +0 -95
  262. package/libusb/msvc/libusb_2010.sln +0 -105
  263. package/libusb/msvc/libusb_2012.sln +0 -105
  264. package/libusb/msvc/libusb_dll.dsp +0 -194
  265. package/libusb/msvc/libusb_dll_2005.vcproj +0 -464
  266. package/libusb/msvc/libusb_dll_2012.vcxproj +0 -107
  267. package/libusb/msvc/libusb_dll_wince.vcproj +0 -1251
  268. package/libusb/msvc/libusb_sources +0 -43
  269. package/libusb/msvc/libusb_static.dsp +0 -174
  270. package/libusb/msvc/libusb_static_2005.vcproj +0 -390
  271. package/libusb/msvc/libusb_static_2012.vcxproj +0 -98
  272. package/libusb/msvc/libusb_static_wince.vcproj +0 -1179
  273. package/libusb/msvc/libusb_wince.sln +0 -246
  274. package/libusb/msvc/listdevs.dsp +0 -103
  275. package/libusb/msvc/listdevs_2005.vcproj +0 -360
  276. package/libusb/msvc/listdevs_sources +0 -20
  277. package/libusb/msvc/listdevs_wince.vcproj +0 -1120
  278. package/libusb/msvc/missing.c +0 -80
  279. package/libusb/msvc/stdint.h +0 -256
  280. package/libusb/msvc/stress_2005.vcproj +0 -390
  281. package/libusb/msvc/stress_2012.vcxproj +0 -87
  282. package/libusb/msvc/stress_sources +0 -21
  283. package/libusb/msvc/stress_wince.vcproj +0 -1128
  284. package/libusb/msvc/testlibusb_2012.vcxproj +0 -83
  285. package/libusb/msvc/testlibusb_sources +0 -20
  286. package/libusb/msvc/xusb.dsp +0 -102
  287. package/libusb/msvc/xusb_2005.vcproj +0 -344
  288. package/libusb/msvc/xusb_2012.vcxproj +0 -83
  289. package/libusb/msvc/xusb_sources +0 -20
  290. package/libusb/msvc/xusb_wince.vcproj +0 -1120
  291. package/libusb/travis-autogen.sh +0 -39
  292. package/tsc/webusb/mutex.ts +0 -38
@@ -1,288 +0,0 @@
1
- <?xml version="1.0" encoding="Windows-1252"?>
2
- <VisualStudioProject
3
- ProjectType="Visual C++"
4
- Version="9.00"
5
- Name="getopt"
6
- ProjectGUID="{AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}"
7
- RootNamespace="getopt"
8
- TargetFrameworkVersion="196613"
9
- >
10
- <Platforms>
11
- <Platform
12
- Name="Win32"
13
- />
14
- <Platform
15
- Name="x64"
16
- />
17
- </Platforms>
18
- <ToolFiles>
19
- </ToolFiles>
20
- <Configurations>
21
- <Configuration
22
- Name="Debug|Win32"
23
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\lib"
24
- IntermediateDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\lib\getopt"
25
- ConfigurationType="4"
26
- CharacterSet="1"
27
- >
28
- <Tool
29
- Name="VCPreBuildEventTool"
30
- />
31
- <Tool
32
- Name="VCCustomBuildTool"
33
- />
34
- <Tool
35
- Name="VCXMLDataGeneratorTool"
36
- />
37
- <Tool
38
- Name="VCWebServiceProxyGeneratorTool"
39
- />
40
- <Tool
41
- Name="VCMIDLTool"
42
- />
43
- <Tool
44
- Name="VCCLCompilerTool"
45
- PreprocessorDefinitions="HAVE_STRING_H;_CRT_SECURE_NO_WARNINGS"
46
- MinimalRebuild="true"
47
- RuntimeLibrary="1"
48
- WarningLevel="3"
49
- DebugInformationFormat="3"
50
- />
51
- <Tool
52
- Name="VCManagedResourceCompilerTool"
53
- />
54
- <Tool
55
- Name="VCResourceCompilerTool"
56
- />
57
- <Tool
58
- Name="VCPreLinkEventTool"
59
- />
60
- <Tool
61
- Name="VCLibrarianTool"
62
- IgnoreAllDefaultLibraries="true"
63
- />
64
- <Tool
65
- Name="VCALinkTool"
66
- />
67
- <Tool
68
- Name="VCXDCMakeTool"
69
- />
70
- <Tool
71
- Name="VCBscMakeTool"
72
- />
73
- <Tool
74
- Name="VCFxCopTool"
75
- />
76
- <Tool
77
- Name="VCPostBuildEventTool"
78
- />
79
- </Configuration>
80
- <Configuration
81
- Name="Debug|x64"
82
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\lib"
83
- IntermediateDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\lib\getopt"
84
- ConfigurationType="4"
85
- CharacterSet="1"
86
- >
87
- <Tool
88
- Name="VCPreBuildEventTool"
89
- />
90
- <Tool
91
- Name="VCCustomBuildTool"
92
- />
93
- <Tool
94
- Name="VCXMLDataGeneratorTool"
95
- />
96
- <Tool
97
- Name="VCWebServiceProxyGeneratorTool"
98
- />
99
- <Tool
100
- Name="VCMIDLTool"
101
- TargetEnvironment="3"
102
- />
103
- <Tool
104
- Name="VCCLCompilerTool"
105
- PreprocessorDefinitions="HAVE_STRING_H;_CRT_SECURE_NO_WARNINGS"
106
- RuntimeLibrary="1"
107
- WarningLevel="3"
108
- DebugInformationFormat="3"
109
- />
110
- <Tool
111
- Name="VCManagedResourceCompilerTool"
112
- />
113
- <Tool
114
- Name="VCResourceCompilerTool"
115
- />
116
- <Tool
117
- Name="VCPreLinkEventTool"
118
- />
119
- <Tool
120
- Name="VCLibrarianTool"
121
- IgnoreAllDefaultLibraries="true"
122
- />
123
- <Tool
124
- Name="VCALinkTool"
125
- />
126
- <Tool
127
- Name="VCXDCMakeTool"
128
- />
129
- <Tool
130
- Name="VCBscMakeTool"
131
- />
132
- <Tool
133
- Name="VCFxCopTool"
134
- />
135
- <Tool
136
- Name="VCPostBuildEventTool"
137
- />
138
- </Configuration>
139
- <Configuration
140
- Name="Release|Win32"
141
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\lib"
142
- IntermediateDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\lib\getopt"
143
- ConfigurationType="4"
144
- CharacterSet="1"
145
- WholeProgramOptimization="1"
146
- >
147
- <Tool
148
- Name="VCPreBuildEventTool"
149
- />
150
- <Tool
151
- Name="VCCustomBuildTool"
152
- />
153
- <Tool
154
- Name="VCXMLDataGeneratorTool"
155
- />
156
- <Tool
157
- Name="VCWebServiceProxyGeneratorTool"
158
- />
159
- <Tool
160
- Name="VCMIDLTool"
161
- />
162
- <Tool
163
- Name="VCCLCompilerTool"
164
- Optimization="2"
165
- PreprocessorDefinitions="HAVE_STRING_H;_CRT_SECURE_NO_WARNINGS"
166
- RuntimeLibrary="0"
167
- WarningLevel="3"
168
- />
169
- <Tool
170
- Name="VCManagedResourceCompilerTool"
171
- />
172
- <Tool
173
- Name="VCResourceCompilerTool"
174
- />
175
- <Tool
176
- Name="VCPreLinkEventTool"
177
- />
178
- <Tool
179
- Name="VCLibrarianTool"
180
- IgnoreAllDefaultLibraries="true"
181
- />
182
- <Tool
183
- Name="VCALinkTool"
184
- />
185
- <Tool
186
- Name="VCXDCMakeTool"
187
- />
188
- <Tool
189
- Name="VCBscMakeTool"
190
- />
191
- <Tool
192
- Name="VCFxCopTool"
193
- />
194
- <Tool
195
- Name="VCPostBuildEventTool"
196
- />
197
- </Configuration>
198
- <Configuration
199
- Name="Release|x64"
200
- OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\lib"
201
- IntermediateDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\lib\getopt"
202
- ConfigurationType="4"
203
- CharacterSet="1"
204
- WholeProgramOptimization="1"
205
- >
206
- <Tool
207
- Name="VCPreBuildEventTool"
208
- />
209
- <Tool
210
- Name="VCCustomBuildTool"
211
- />
212
- <Tool
213
- Name="VCXMLDataGeneratorTool"
214
- />
215
- <Tool
216
- Name="VCWebServiceProxyGeneratorTool"
217
- />
218
- <Tool
219
- Name="VCMIDLTool"
220
- TargetEnvironment="3"
221
- />
222
- <Tool
223
- Name="VCCLCompilerTool"
224
- PreprocessorDefinitions="HAVE_STRING_H;_CRT_SECURE_NO_WARNINGS"
225
- RuntimeLibrary="0"
226
- WarningLevel="3"
227
- />
228
- <Tool
229
- Name="VCManagedResourceCompilerTool"
230
- />
231
- <Tool
232
- Name="VCResourceCompilerTool"
233
- />
234
- <Tool
235
- Name="VCPreLinkEventTool"
236
- />
237
- <Tool
238
- Name="VCLibrarianTool"
239
- IgnoreAllDefaultLibraries="true"
240
- />
241
- <Tool
242
- Name="VCALinkTool"
243
- />
244
- <Tool
245
- Name="VCXDCMakeTool"
246
- />
247
- <Tool
248
- Name="VCBscMakeTool"
249
- />
250
- <Tool
251
- Name="VCFxCopTool"
252
- />
253
- <Tool
254
- Name="VCPostBuildEventTool"
255
- />
256
- </Configuration>
257
- </Configurations>
258
- <References>
259
- </References>
260
- <Files>
261
- <Filter
262
- Name="Source Files"
263
- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
264
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
265
- >
266
- <File
267
- RelativePath="..\examples\getopt\getopt.c"
268
- >
269
- </File>
270
- <File
271
- RelativePath="..\examples\getopt\getopt1.c"
272
- >
273
- </File>
274
- </Filter>
275
- <Filter
276
- Name="Header Files"
277
- Filter="h;hpp;hxx;hm;inl;inc;xsd"
278
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
279
- >
280
- <File
281
- RelativePath="..\examples\getopt\getopt.h"
282
- >
283
- </File>
284
- </Filter>
285
- </Files>
286
- <Globals>
287
- </Globals>
288
- </VisualStudioProject>
@@ -1,73 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
- <ItemGroup Label="ProjectConfigurations">
4
- <ProjectConfiguration Include="Debug|Win32">
5
- <Configuration>Debug</Configuration>
6
- <Platform>Win32</Platform>
7
- </ProjectConfiguration>
8
- <ProjectConfiguration Include="Debug|x64">
9
- <Configuration>Debug</Configuration>
10
- <Platform>x64</Platform>
11
- </ProjectConfiguration>
12
- <ProjectConfiguration Include="Release|Win32">
13
- <Configuration>Release</Configuration>
14
- <Platform>Win32</Platform>
15
- </ProjectConfiguration>
16
- <ProjectConfiguration Include="Release|x64">
17
- <Configuration>Release</Configuration>
18
- <Platform>x64</Platform>
19
- </ProjectConfiguration>
20
- </ItemGroup>
21
- <PropertyGroup Label="Globals">
22
- <ProjectName>getopt</ProjectName>
23
- <ProjectGuid>{AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}</ProjectGuid>
24
- <RootNamespace>getopt</RootNamespace>
25
- </PropertyGroup>
26
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
27
- <PropertyGroup Label="Configuration">
28
- <ConfigurationType>StaticLibrary</ConfigurationType>
29
- <CharacterSet>Unicode</CharacterSet>
30
- <PlatformToolset>v110</PlatformToolset>
31
- <WholeProgramOptimization Condition="'$(Configuration)'=='Release'">true</WholeProgramOptimization>
32
- </PropertyGroup>
33
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
34
- <ImportGroup Label="ExtensionSettings">
35
- </ImportGroup>
36
- <ImportGroup Label="PropertySheets">
37
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
38
- </ImportGroup>
39
- <PropertyGroup Label="UserMacros" />
40
- <PropertyGroup>
41
- <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
42
- <IntDir>$(ProjectDir)..\$(Platform)\$(Configuration)\lib\$(ProjectName)\</IntDir>
43
- <OutDir>$(ProjectDir)..\$(Platform)\$(Configuration)\lib\</OutDir>
44
- </PropertyGroup>
45
- <ItemDefinitionGroup>
46
- <ClCompile>
47
- <AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
48
- <AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
49
- <PreprocessorDefinitions>HAVE_STRING_H;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
50
- <WarningLevel>Level3</WarningLevel>
51
- </ClCompile>
52
- <ClCompile Condition="'$(Configuration)'=='Debug'">
53
- <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
54
- <Optimization>Disabled</Optimization>
55
- <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
56
- </ClCompile>
57
- <ClCompile Condition="'$(Configuration)'=='Release'">
58
- <Optimization>MaxSpeed</Optimization>
59
- <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
60
- <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
61
- </ClCompile>
62
- </ItemDefinitionGroup>
63
- <ItemGroup>
64
- <ClCompile Include="..\examples\getopt\getopt.c" />
65
- <ClCompile Include="..\examples\getopt\getopt1.c" />
66
- </ItemGroup>
67
- <ItemGroup>
68
- <ClInclude Include="..\examples\getopt\getopt.h" />
69
- </ItemGroup>
70
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
71
- <ImportGroup Label="ExtensionTargets">
72
- </ImportGroup>
73
- </Project>
@@ -1,24 +0,0 @@
1
- TARGETTYPE=LIBRARY
2
- TARGETNAME=getopt
3
- 386_STDCALL=0
4
-
5
- _NT_TARGET_VERSION=$(_NT_TARGET_VERSION_WINXP)
6
-
7
- !IFNDEF MSC_WARNING_LEVEL
8
- MSC_WARNING_LEVEL=/W3
9
- !ENDIF
10
-
11
- !IFDEF STATIC_LIBC
12
- USE_LIBCMT=1
13
- !ELSE
14
- USE_MSVCRT=1
15
- !ENDIF
16
-
17
- INCLUDES=$(DDK_INC_PATH)
18
- C_DEFINES=$(C_DEFINES) /DDDKBUILD /DHAVE_STRING_H
19
-
20
- TARGETLIBS=$(SDK_LIB_PATH)\kernel32.lib \
21
- $(SDK_LIB_PATH)\user32.lib
22
-
23
- SOURCES=..\getopt1.c \
24
- ..\getopt.c
@@ -1,20 +0,0 @@
1
- TARGETNAME=hotplugtest
2
- TARGETTYPE=PROGRAM
3
- 386_STDCALL=0
4
-
5
- _NT_TARGET_VERSION=$(_NT_TARGET_VERSION_WINXP)
6
-
7
- !IFNDEF MSC_WARNING_LEVEL
8
- MSC_WARNING_LEVEL=/W3
9
- !ENDIF
10
-
11
- !IFDEF STATIC_LIBC
12
- USE_LIBCMT=1
13
- !ELSE
14
- USE_MSVCRT=1
15
- !ENDIF
16
-
17
- UMTYPE=console
18
- INCLUDES=..\..\msvc;..\..\libusb;$(DDK_INC_PATH)
19
- UMLIBS=..\..\libusb\os\obj$(BUILD_ALT_DIR)\*\libusb-1.0.lib
20
- SOURCES=..\hotplugtest.c
@@ -1,295 +0,0 @@
1
- /**
2
- * This file has no copyright assigned and is placed in the Public Domain.
3
- * This file was original part of the w64 mingw-runtime package.
4
- */
5
-
6
- /*
7
- * THIS SOFTWARE IS NOT COPYRIGHTED
8
- *
9
- * Modified for libusb/MSVC: Pete Batard <pbatard@gmail.com>
10
- *
11
- * This source code is offered for use in the public domain. You may
12
- * use, modify or distribute it freely.
13
- *
14
- * This code is distributed in the hope that it will be useful but
15
- * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
16
- * DISCLAIMED. This includes but is not limited to warranties of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
- *
19
- * Date: 2010-04-02
20
- */
21
-
22
- #ifndef _MSC_VER
23
- #error This header should only be used with Microsoft compilers
24
- #endif
25
-
26
- /* 7.8 Format conversion of integer types <inttypes.h> */
27
-
28
- #ifndef _INTTYPES_H_
29
- #define _INTTYPES_H_
30
-
31
- #include <stdint.h>
32
-
33
- #ifdef __cplusplus
34
- extern "C" {
35
- #endif
36
-
37
- typedef struct {
38
- intmax_t quot;
39
- intmax_t rem;
40
- } imaxdiv_t;
41
-
42
-
43
- /* 7.8.1 Macros for format specifiers
44
- *
45
- * MS runtime does not yet understand C9x standard "ll"
46
- * length specifier. It appears to treat "ll" as "l".
47
- * The non-standard I64 length specifier causes warning in GCC,
48
- * but understood by MS runtime functions.
49
- */
50
-
51
- /* fprintf macros for signed types */
52
- #define PRId8 "d"
53
- #define PRId16 "d"
54
- #define PRId32 "d"
55
- #define PRId64 "I64d"
56
-
57
- #define PRIdLEAST8 "d"
58
- #define PRIdLEAST16 "d"
59
- #define PRIdLEAST32 "d"
60
- #define PRIdLEAST64 "I64d"
61
-
62
- #define PRIdFAST8 "d"
63
- #define PRIdFAST16 "d"
64
- #define PRIdFAST32 "d"
65
- #define PRIdFAST64 "I64d"
66
-
67
- #define PRIdMAX "I64d"
68
-
69
- #define PRIi8 "i"
70
- #define PRIi16 "i"
71
- #define PRIi32 "i"
72
- #define PRIi64 "I64i"
73
-
74
- #define PRIiLEAST8 "i"
75
- #define PRIiLEAST16 "i"
76
- #define PRIiLEAST32 "i"
77
- #define PRIiLEAST64 "I64i"
78
-
79
- #define PRIiFAST8 "i"
80
- #define PRIiFAST16 "i"
81
- #define PRIiFAST32 "i"
82
- #define PRIiFAST64 "I64i"
83
-
84
- #define PRIiMAX "I64i"
85
-
86
- #define PRIo8 "o"
87
- #define PRIo16 "o"
88
- #define PRIo32 "o"
89
- #define PRIo64 "I64o"
90
-
91
- #define PRIoLEAST8 "o"
92
- #define PRIoLEAST16 "o"
93
- #define PRIoLEAST32 "o"
94
- #define PRIoLEAST64 "I64o"
95
-
96
- #define PRIoFAST8 "o"
97
- #define PRIoFAST16 "o"
98
- #define PRIoFAST32 "o"
99
- #define PRIoFAST64 "I64o"
100
-
101
- #define PRIoMAX "I64o"
102
-
103
- /* fprintf macros for unsigned types */
104
- #define PRIu8 "u"
105
- #define PRIu16 "u"
106
- #define PRIu32 "u"
107
- #define PRIu64 "I64u"
108
-
109
-
110
- #define PRIuLEAST8 "u"
111
- #define PRIuLEAST16 "u"
112
- #define PRIuLEAST32 "u"
113
- #define PRIuLEAST64 "I64u"
114
-
115
- #define PRIuFAST8 "u"
116
- #define PRIuFAST16 "u"
117
- #define PRIuFAST32 "u"
118
- #define PRIuFAST64 "I64u"
119
-
120
- #define PRIuMAX "I64u"
121
-
122
- #define PRIx8 "x"
123
- #define PRIx16 "x"
124
- #define PRIx32 "x"
125
- #define PRIx64 "I64x"
126
-
127
- #define PRIxLEAST8 "x"
128
- #define PRIxLEAST16 "x"
129
- #define PRIxLEAST32 "x"
130
- #define PRIxLEAST64 "I64x"
131
-
132
- #define PRIxFAST8 "x"
133
- #define PRIxFAST16 "x"
134
- #define PRIxFAST32 "x"
135
- #define PRIxFAST64 "I64x"
136
-
137
- #define PRIxMAX "I64x"
138
-
139
- #define PRIX8 "X"
140
- #define PRIX16 "X"
141
- #define PRIX32 "X"
142
- #define PRIX64 "I64X"
143
-
144
- #define PRIXLEAST8 "X"
145
- #define PRIXLEAST16 "X"
146
- #define PRIXLEAST32 "X"
147
- #define PRIXLEAST64 "I64X"
148
-
149
- #define PRIXFAST8 "X"
150
- #define PRIXFAST16 "X"
151
- #define PRIXFAST32 "X"
152
- #define PRIXFAST64 "I64X"
153
-
154
- #define PRIXMAX "I64X"
155
-
156
- /*
157
- * fscanf macros for signed int types
158
- * NOTE: if 32-bit int is used for int_fast8_t and int_fast16_t
159
- * (see stdint.h, 7.18.1.3), FAST8 and FAST16 should have
160
- * no length identifiers
161
- */
162
-
163
- #define SCNd16 "hd"
164
- #define SCNd32 "d"
165
- #define SCNd64 "I64d"
166
-
167
- #define SCNdLEAST16 "hd"
168
- #define SCNdLEAST32 "d"
169
- #define SCNdLEAST64 "I64d"
170
-
171
- #define SCNdFAST16 "hd"
172
- #define SCNdFAST32 "d"
173
- #define SCNdFAST64 "I64d"
174
-
175
- #define SCNdMAX "I64d"
176
-
177
- #define SCNi16 "hi"
178
- #define SCNi32 "i"
179
- #define SCNi64 "I64i"
180
-
181
- #define SCNiLEAST16 "hi"
182
- #define SCNiLEAST32 "i"
183
- #define SCNiLEAST64 "I64i"
184
-
185
- #define SCNiFAST16 "hi"
186
- #define SCNiFAST32 "i"
187
- #define SCNiFAST64 "I64i"
188
-
189
- #define SCNiMAX "I64i"
190
-
191
- #define SCNo16 "ho"
192
- #define SCNo32 "o"
193
- #define SCNo64 "I64o"
194
-
195
- #define SCNoLEAST16 "ho"
196
- #define SCNoLEAST32 "o"
197
- #define SCNoLEAST64 "I64o"
198
-
199
- #define SCNoFAST16 "ho"
200
- #define SCNoFAST32 "o"
201
- #define SCNoFAST64 "I64o"
202
-
203
- #define SCNoMAX "I64o"
204
-
205
- #define SCNx16 "hx"
206
- #define SCNx32 "x"
207
- #define SCNx64 "I64x"
208
-
209
- #define SCNxLEAST16 "hx"
210
- #define SCNxLEAST32 "x"
211
- #define SCNxLEAST64 "I64x"
212
-
213
- #define SCNxFAST16 "hx"
214
- #define SCNxFAST32 "x"
215
- #define SCNxFAST64 "I64x"
216
-
217
- #define SCNxMAX "I64x"
218
-
219
- /* fscanf macros for unsigned int types */
220
-
221
- #define SCNu16 "hu"
222
- #define SCNu32 "u"
223
- #define SCNu64 "I64u"
224
-
225
- #define SCNuLEAST16 "hu"
226
- #define SCNuLEAST32 "u"
227
- #define SCNuLEAST64 "I64u"
228
-
229
- #define SCNuFAST16 "hu"
230
- #define SCNuFAST32 "u"
231
- #define SCNuFAST64 "I64u"
232
-
233
- #define SCNuMAX "I64u"
234
-
235
- #ifdef _WIN64
236
- #define PRIdPTR "I64d"
237
- #define PRIiPTR "I64i"
238
- #define PRIoPTR "I64o"
239
- #define PRIuPTR "I64u"
240
- #define PRIxPTR "I64x"
241
- #define PRIXPTR "I64X"
242
- #define SCNdPTR "I64d"
243
- #define SCNiPTR "I64i"
244
- #define SCNoPTR "I64o"
245
- #define SCNxPTR "I64x"
246
- #define SCNuPTR "I64u"
247
- #else
248
- #define PRIdPTR "d"
249
- #define PRIiPTR "i"
250
- #define PRIoPTR "o"
251
- #define PRIuPTR "u"
252
- #define PRIxPTR "x"
253
- #define PRIXPTR "X"
254
- #define SCNdPTR "d"
255
- #define SCNiPTR "i"
256
- #define SCNoPTR "o"
257
- #define SCNxPTR "x"
258
- #define SCNuPTR "u"
259
- #endif
260
-
261
- #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
262
- /*
263
- * no length modifier for char types prior to C9x
264
- * MS runtime scanf appears to treat "hh" as "h"
265
- */
266
-
267
- /* signed char */
268
- #define SCNd8 "hhd"
269
- #define SCNdLEAST8 "hhd"
270
- #define SCNdFAST8 "hhd"
271
-
272
- #define SCNi8 "hhi"
273
- #define SCNiLEAST8 "hhi"
274
- #define SCNiFAST8 "hhi"
275
-
276
- #define SCNo8 "hho"
277
- #define SCNoLEAST8 "hho"
278
- #define SCNoFAST8 "hho"
279
-
280
- #define SCNx8 "hhx"
281
- #define SCNxLEAST8 "hhx"
282
- #define SCNxFAST8 "hhx"
283
-
284
- /* unsigned char */
285
- #define SCNu8 "hhu"
286
- #define SCNuLEAST8 "hhu"
287
- #define SCNuFAST8 "hhu"
288
- #endif /* __STDC_VERSION__ >= 199901 */
289
-
290
-
291
- #ifdef __cplusplus
292
- }
293
- #endif
294
-
295
- #endif /* ndef _INTTYPES_H */