Commit af9a877825b4a3cee3b8f6016a300701df741136

ckolivas 2013-08-28T13:04:46

Remove unused and maintainer cleaned files

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
diff --git a/compat/libusb-1.0/ChangeLog b/compat/libusb-1.0/ChangeLog
deleted file mode 100644
index 7d4be57..0000000
--- a/compat/libusb-1.0/ChangeLog
+++ /dev/null
@@ -1,5113 +0,0 @@
-commit 09af2a25d7585c481f5e891ddfd1ceb2536ed6c9
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Mon May 6 20:55:53 2013 -0600
-
-    on to 1.0.16-rc10
-
-commit bcc159ec9156201544c249bb4a87f8f24cc34e0a
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Thu Mar 7 11:44:00 2013 +0000
-
-    Linux: Consume all events on a fd in one go
-    
-    * This fixes libusb_handle_events_timeout() only handling one event
-    * Fixes #123
-    
-    Conflicts:
-    	libusb/version_nano.h
-
-commit c703ab72d0398c18686c2970730cd580e2d1f46c
-Author: Sean McBride <sean@rogue-research.com>
-Date:   Fri Oct 12 17:34:25 2012 -0400
-
-    Core: use C99 flexible array member when possible
-    
-    fix clang warning by using C99 flexible array member instead of zero
-    length array gcc extension
-    
-    Conflicts:
-    	libusb/libusbi.h
-
-commit 21e4c82043caf0d19ae9354e48035a135f3549d3
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Fri May 3 08:09:09 2013 -0600
-
-    bumb version to 1.0.16-rc9
-
-commit 66553c2e8219d84e3e8857b18341782e1ca82a58
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Fri May 3 08:03:37 2013 -0600
-
-    darwin: return LIBUSB_ERROR_NOT_FOUND when reading the active config descriptor when the device is not configured.
-    
-    fixes #172
-
-commit 42bb27b4fdc07e4c74a3ae8fa6ca67b66b591412
-Merge: 376a05a 629cefb
-Author: hjelmn <hjelmn@cs.unm.edu>
-Date:   Sun Apr 28 08:04:19 2013 -0700
-
-    Merge pull request #1 from LudovicRousseau/fixes
-    
-    Examples: fix compiler warnings
-
-commit 629cefbd40974c84c326107e3b31869088336753
-Author: Ludovic Rousseau <ludovic.rousseau+github@gmail.com>
-Date:   Sat Apr 27 22:40:03 2013 +0200
-
-    Examples: fix compiler warnings
-    
-    hotplugtest.c:30: warning: no previous prototype for ‘hotplug_callback’
-    hotplugtest.c:48: warning: no previous prototype for ‘hotplug_callback_detach’
-
-commit 376a05a9efa441b576fb1c58e5d49c90a1295e4a
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Thu Apr 25 22:31:01 2013 -0600
-
-    update to 1.0.16-rc8
-
-commit 20ec541f26d6d98f26d87cfca82287fe4bf15d30
-Author: hjelmn <Nathan Hjelm hjelmn@cs.unm.edu>
-Date:   Tue Apr 23 16:35:33 2013 -0600
-
-    darwin: clean up old code
-    
-    For some time only one type of completion message has been in use in the darwin
-    backend. The commit cleans up this code. This commit also removes some code
-    that has never done anything useful. If a pipe has an error it probably means
-    the device was closed so there is nothing to do.
-
-commit 9f41a3a780fc14785da2f07d03c119b8024b2452
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Thu Apr 25 21:12:45 2013 -0600
-
-    darwin: fix memory leaks in the darwin backend.
-    
-    There were two memory leaks in the darwin backend:
-     - A CFString allocated by IORegistryEntryCreateCFProperty in darwin_get_interface()
-       was not released.
-     - The runloop is retained by darwin_open() but was not release by darwin_close().
-
-commit e63fb62acfe52aecfd12b2a2f87f9a79495b2a0b
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Thu Apr 25 21:09:19 2013 -0600
-
-    core: release the context device list when the context is deleted.
-    
-    This commit fixes a memory leak in the context list patch. Devices need
-    to be unref'd when the context is deleted. This can happen if either 1)
-    the backend init fails, or 2) the context is destroyed by libusb_exit().
-
-commit 1c1d686151691f894c04519e2a4faec5811a292c
-Author: Nathan Hjelm <hjelmn@cs.unm.edu>
-Date:   Mon Apr 22 15:04:20 2013 -0600
-
-    Update .gitignore
-
-commit 6714fb46d2d2e74587637b465ceb967f5bf80901
-Author: Nathan Hjelm <hjelmn@cs.unm.edu>
-Date:   Fri Dec 7 19:59:39 2012 -0700
-
-    core: this is 1.0.16-rc7
-    
-    Rebasing lost the meaning of previous release candidates. Just set the
-    version to 1.0.16-rc7.
-
-commit eb2393972a1731571d3ca7f5b20fe3a3448a1675
-Author: Nathan Hjelm <hjelmn@cs.unm.edu>
-Date:   Thu Apr 11 10:19:03 2013 -0600
-
-    Add support for libusb_strerror()
-    
-    Fixes #102
-
-commit 34319ac4fd312356ae9488838b675e57e36c5f98
-Author: Nathan Hjelm <hjelmn@cs.unm.edu>
-Date:   Tue Apr 9 19:01:02 2013 -0600
-
-    Update release notes for 1.0.16 release.
-
-commit c3694edc25e0b63a9aa1c1f29590fb727a430aef
-Author: Nathan Hjelm <hjelmn@cs.unm.edu>
-Date:   Sun Apr 7 09:35:29 2013 -0600
-
-    darwin: don't need darwin_error_str if ENABLE_LOGGING is not defined
-
-commit eff69edbce89aa0364aba64e9944b83dcac5b080
-Author: Nathan Hjelm <hjelmn@cs.unm.edu>
-Date:   Sun Apr 7 09:22:48 2013 -0600
-
-    update AUTHORS
-
-commit c5ad994bb918bfbf87f8044197930124d2289d0f
-Author: Maya Erez <merez@codeaurora.org>
-Date:   Sat Apr 6 12:30:22 2013 -0600
-
-    Add definitions for Endpoint Companion and BOS descriptors.
-    Add APIs for parsing the Endpoint Companion and BOS descriptors.
-    
-    Nathan: Modified the original patch to fit the interface now already
-    provided by the FreeBSD implementation of libusb 1.0 and fit with
-    the rest of libusb.h.
-    
-    Some discussion: The FreeBSD API is not optimal. Further discussion
-    is needed to determine how to update the API without breaking code
-    that used the existing API. This discussion should probably involve
-    the FreeBSD developers and could be handled in a 1.0.x release.
-    
-    An example has been added to show how to use the new API.
-    
-    Fixes #110
-
-commit 55221eda77899ae1287a79c71138967029bed3b3
-Author: Nathan Hjelm <hjelmn@cs.unm.edu>
-Date:   Wed Apr 3 08:37:21 2013 -0600
-
-    Use AM_CPPFLAGS instead of INCLUDES in examples/Makefile.am
-
-commit 4232cd434b1475b09db2b15325840ea54753496b
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Wed Aug 22 11:47:00 2012 +0100
-
-    Linux: Avoid unnecessary splitting of bulk transfers
-    
-    * With the latest kernels it is no longer needed to always split large bulk
-      transfers into multiple urbs. This patch takes advantage of this by not
-      splitting when not necessary. Note that the non-split code path is in essence
-      using the old split code path with an urb count which is always 1.
-    * This leads to more sane handling of large transfers with recent kernels,
-      although our splitting code is well tested, not splitting at all still is
-      a lot better :)
-    * When used with a recent kernel, this also fixes the problems, on XHCI attached
-      devices, when a large bulk-in transfer ends with a short read in an urb other
-      then the last urb.
-    * For more on this see: http://marc.info/?l=linux-usb&m=133797554910355
-    
-    Conflicts:
-    	libusb/os/linux_usbfs.c
-    	libusb/version_nano.h
-
-commit ca257e3dbbecffe011ed3a5c87000ba634bf161d
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Wed Aug 22 11:47:00 2012 +0100
-
-    Linux: Add support for the new get_capabilities ioctl
-    
-    * There were a few (new) usbdevfs capabilities which libusbx could not
-      discover in any other way then checking the kernel version.
-    * However, this presents the following problems:
-      1) It is just not very pretty
-      2) Given the tendency of enterprise distros to backport stuff it is not
-         reliable
-      3) Some of these features turn out to not work with certain host controllers,
-         making depending on them based on the kernel version not a good idea
-    * Therefore a new USBDEVFS_GET_CAPABILITIES ioctl has been added to the kernel
-      to offer a better way to find out a device's capabilities (technically
-      the capabilities of the host controller to which the device is attached,
-      but that does not matter).
-    
-    Conflicts:
-    	libusb/os/linux_usbfs.c
-    	libusb/version_nano.h
-
-commit e922bc672aef38773818d2df41cf603b1eac9382
-Author: Nathan Hjelm <hjelmn@cs.unm.edu>
-Date:   Tue Apr 2 22:12:47 2013 -0600
-
-    darwin: don't assume an interval of 1 or high/super speed
-    
-    This patch updates submit_iso_transfer to use the bInterval value of the
-    endpoint and the speed of the device to determine the last frame of the
-    transaction.
-    
-    Fixes: #165
-
-commit 6abf49b40c38a5a911701e439160be8eea34f9f3
-Author: Nathan Hjelm <hjelmn@cs.unm.edu>
-Date:   Sun Feb 10 14:46:38 2013 -0700
-
-    windows: call usbi_sanitize_device to ensure the device descriptor gets cached
-
-commit 7533aa5ea10280add3d9223db2291089009d6988
-Author: Nathan Hjelm <hjelmn@cs.unm.edu>
-Date:   Fri Feb 8 20:41:43 2013 -0700
-
-    darwin: add fcntl.h
-
-commit 265ff59780a226100fcd0634e5c9b09dbe826f17
-Author: Nathan Hjelm <hjelmn@cs.unm.edu>
-Date:   Fri Feb 8 20:39:46 2013 -0700
-
-    Fix usbi_log_v in the case where ctx is NULL (no default context).
-    
-    Fixes #147.
-
-commit 854f7b63654045f20692f42b97dd6954b0069c74
-Author: Nathan Hjelm <hjelmn@cs.unm.edu>
-Date:   Fri Feb 8 17:19:01 2013 -0700
-
-    On windows do not set the hotplug pipe as non-blocking. I will leave it up the backend maintainers to figure out.
-
-commit 2fa98198472e54b2ae246fb33bf40130dea1456d
-Author: Nathan Hjelm <hjelmn@cs.unm.edu>
-Date:   Fri Feb 8 00:12:13 2013 -0700
-
-    darwin: add support for the LIBUSB_TRANSFER_ADD_ZERO_PACKET transfer flag.
-    
-    The zero-length packet is sent by the async event thread if all the following
-    conditions are met:
-    
-    1) The packet size is not a multiple of maxPacketSize, and
-    2) the transfer completed successfully.
-    
-    References #6.
-
-commit b8e6b77495dd8e25c0a52443db4fdc204d4f20f0
-Author: Nathan Hjelm <hjelmn@cs.unm.edu>
-Date:   Thu Feb 7 23:35:32 2013 -0700
-
-    Don't set the USBFS_URB_SHORT_NOT_OK flag on the last URB.
-    
-    Fixes: #142
-
-commit 1cd10590ae6fbfbd976349abe625e1495f6a1370
-Author: Nathan Hjelm <hjelmn@cs.unm.edu>
-Date:   Thu Feb 7 21:56:30 2013 -0700
-
-    darwin/libusb_reset: reenumerate device if the device descriptor or any
-    configuration descriptor has changed
-    
-    Some background: the Linux kernel causes a device to be reenumeration when
-    reset if the device's descriptors have changed. Darwin does not provide
-    this feature but instead provides a call to force the reenumeration of
-    a device. This behavior is required to support the firmware update
-    protocol used by some devices.
-    
-    This patch updates darwin_reset to check if either the device or
-    configuration descriptors have changed. If they have darwin_reset will
-    ask the OS to reenumerate the device and return LIBUSB_ERROR_NOT_FOUND
-    or LIBUSB_SUCCESS accordingly.
-    
-    Fixes #169
-
-commit 4920971837d569b7afa31f69ed7a92c313362cc3
-Author: Nathan Hjelm <hjelmn@cs.unm.edu>
-Date:   Fri Feb 8 17:10:24 2013 -0700
-
-    replace removed automake macro AM_CONFIG_HEADER with AC_CONFIG_HEADERS.
-    
-    Fixes #159. Thanks to cazfi.
-
-commit ed61beaa5ecb1bde41ad04060d980c4bc87d6936
-Author: Nathan Hjelm <hjelmn@cs.unm.edu>
-Date:   Fri Dec 7 19:55:21 2012 -0700
-
-    darwin: clean up extraneous includes
-
-commit 43ae35e6f482b5893348b75772c0e0866d050374
-Author: Nathan Hjelm <hjelmn@cs.unm.edu>
-Date:   Fri Nov 30 19:17:43 2012 -0700
-
-    darwin: dpriv->device will never be NULL for a valid device. remove unnecessary code that handled this case
-
-commit 9300dd929abf077c79cfbb0cb98022e9bedee3bb
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Thu Nov 29 16:19:11 2012 -0700
-
-    darwin: allow control messages on devices we can not exclusively open
-
-commit 046fae00f8a138f6d0c1ddba609676bc3a44e86c
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Thu Nov 29 16:14:03 2012 -0700
-
-    Add hotplug support to the Linux backend.
-    
-    There are two ways to configure hotplug support for Linux: udev, and netlink. It
-    is strongly recommened that udev support is used on systems that utilize udev.
-    We reenforce this recommendation by defaulting to --with-udev=yes at configure
-    time. To enable netlink support run configure with --with-udev=no. If udev
-    support is enabled all device enumeration is done with udev.
-    
-    References: #17
-
-commit e3948b8e39668f9242925622cccb0658404b5c32
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Thu Nov 29 16:13:00 2012 -0700
-
-    Add hotplug support to the Darwin backend.
-    
-    Hotplug events are handled by the async event thread. This thread listens for
-    two events: kIOTerminatedNotification, and kIOFirstMatchNotification. If
-    either of these events fires the thread will iterate through the appropriate
-    iterator and will either enumerate or call usbi_disconnect_device depending
-    on the event.
-    
-    While adding hotplug support it was discovered that when reading from the IO
-    registry we need to use kCFNumberSInt32Type for the device location. Using
-    kCFNumberLongType would cause locations to be sign-extended and not match
-    what is stored for the session id. This is now fixed.
-
-commit c6a7a0ebba3e0ea7e82ec75a8d63ff8604d78d25
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Thu Nov 29 14:23:26 2012 -0700
-
-    Add hotplug support. Bump the version to 1.0.15 and change the so version to
-    reflect external API changes.
-    
-    The internal API is changing as follows:
-     - Adding two new functions. usbi_connect_device, and usbi_disconnect_device.
-       Backends must call these functions to add them to the context's device list
-       at one of two places: initial enumeration (done at init), and on device
-       attach and removal. These functions need to be called once per context.
-     - Backends that support hotplug should not provide a get_device_list funtion.
-       This function is now deprecated and will likely be removed once all backends
-       support hotplug.
-    
-    The external API is changing as follows:
-     - Two new functions have been added to register and deregister callbacks for
-       hotplug notification: libusb_hotplug_register_callback(),
-       libusb_hotplug_deregister_callback(). Hotplug callbacks are called by
-       libusb_handle_events(). Details of the new API can be found in libusb.h.
-     - A new capability check has been added to check for hotplug support. See
-       LIBUSB_CAP_HAS_HOTPLUG.
-    
-    Aa suggested by Xiaofan add new example has been added to show how to use
-    the new external hotplug API. See examples/hotplugtest.c.
-    
-    References #17
-
-commit 0350974e585a018827b648b8e4d67c08cb19307f
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Thu Nov 29 13:53:41 2012 -0700
-
-    core: cache device descriptors in the core
-    
-    Discussion: It is necessary to cache the device descriptor in the core to
-    support reading the descriptors after a device is disconnected. We could
-    either 1) allow each backend to handle this caching (which would most
-    certainly duplicate code), or 2) cache the descritors when a device
-    is added. This patch does the later.
-    
-    Further discussion: It might be beneficial to cache more than just the
-    device descriptors in the core. It might also be worthwhile caching the
-    configuration and BOS descriptors as well.
-
-commit 8bf72124ad18461acedecc2d89adebc9b67e5b69
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Sun Sep 30 11:49:01 2012 -0600
-
-    core: Keep a list of contexts (active_contexts_list) created by libusb_init. The list can be used by backends to determine which contexts need notification of device removal (and in the future device arrival). The active_contexts_list is protected from multiple access by the active_contexts_lock.
-
-commit 2fff52d3f7bee6bae121846bc83cc41bea14e13e
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Tue Oct 2 08:07:03 2012 -0600
-
-    darwin: add support for detecting superspeed devices (IOUSBFamily 5.0.0 or newer)
-
-commit be5a526f6322c6200611f5495aed6d9fbb523b2e
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Sun Sep 30 10:22:30 2012 -0600
-
-    clean up tabs
-
-commit f9acbbd1a598213fe7d0bff2d06209d9af003558
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Fri Sep 28 22:13:09 2012 -0600
-
-    darwin: use Release instead of IODestroyPlugInInterface to avoid stopping
-    IOServices associated with a device
-    
-    Some IOService subclasses with actually stop if IODestroyPlugInInterface is
-    used to release the plugin interface. This is likely what causes the
-    keyboard and mouse to lock up. Using Release should prevent this from
-    happening.
-    
-    Fixes #139
-    Fixes #150
-    Fixes #153
-
-commit f28f03b081926fa081cef2fee9a409f7e4dc0240
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Fri Sep 28 21:18:36 2012 -0600
-
-    darwin: don't bother retrying or unsuspending Apple devices during
-    enumeration
-    
-    Some devices appear to cause the keyboard and mouse to lock up
-    after repeated enumeration. Try to avoid the issue by not attempting
-    to unsuspend Apple devices.
-    
-    Fixes #150
-
-commit bd7cd8e5e20d2999a31a11fca5eb32068acbcd2c
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Fri Sep 28 21:18:08 2012 -0600
-
-    darwin: reduce number of times libusb attempts to retrieve a device
-    descriptor during enumeration
-    
-    On failure it doesn't make sense to keep on trying to enumerate a
-    device more than a couple times. Reduce the number of tries from
-    10 down to 3.
-    
-    Fixes #151
-
-commit 7634714aa696175b08016b6f2185a75a2f55a113
-Author: Peter Stuge <peter@stuge.se>
-Date:   Tue Oct 23 09:46:02 2012 +0200
-
-    configure.ac: AC_SEARCH_LIBS(clock_gettime) to be able to add -pthread
-
-commit 2799d70e471c8ab02bfac6d4efe1149e3d5ba37a
-Author: Peter Stuge <peter@stuge.se>
-Date:   Tue Oct 23 09:41:31 2012 +0200
-
-    configure.ac: Move VISIBILITY_CFLAGS into AM_CFLAGS
-
-commit 62f9a648cf8a875f7572697321f4059b40ef357c
-Author: Peter Stuge <peter@stuge.se>
-Date:   Tue Oct 23 09:37:47 2012 +0200
-
-    configure.ac: Move THREAD_CFLAGS into AM_CFLAGS
-
-commit 29c5786bb26bbe62122b94ae17da6c1b286006be
-Author: Peter Stuge <peter@stuge.se>
-Date:   Tue Oct 23 09:27:25 2012 +0200
-
-    configure.ac: Use LIBS instead of PC_LIBS_PRIVATE
-
-commit 2b044abace76ba0095ee5dbc71a7dac75e8c8f05
-Author: Pete Batard <pete@akeo.ie>
-Date:   Wed Aug 22 01:32:10 2012 -0700
-
-    io.c: Handle >= 1 second transfer timeout in libusb_wait_for_event()
-
-commit 3b821d0a709c6b5b3094a763bb04e48ed0447050
-Author: Peter Stuge <peter@stuge.se>
-Date:   Wed Aug 22 01:32:10 2012 -0700
-
-    io.c: Handle >= 1 second transfer timeout in libusb_submit_transfer()
-
-commit b7ed26c7add5528b71a205b4f04c242d3cbeab54
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sat Aug 4 14:27:55 2012 +0200
-
-    INSTALL_WIN.txt: Correct Windows backend webpage URL
-
-commit cf60da545c915905869fa4007fcdc5faa75fdcbb
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sat Aug 4 14:26:43 2012 +0200
-
-    Windows: #include <windows.h> in header files
-
-commit 36962a408b07920f2fdd61dda6bef0e9e319e7d2
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sun Jul 29 06:22:45 2012 +0200
-
-    Windows: Remove msvc/inttypes.h
-    
-    This file might have been needed for platform abstraction, except that
-    all code shared among platforms doesn't need the file. Windows code in
-    particular does not need to use the file.
-    
-    The file was used in one single place, where the PRIu64 define has now
-    been replaced with it's value "I64u".
-
-commit 455b2d98869826db7276ddb69ce7b73f1acc9f94
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sat Jul 28 19:17:15 2012 +0200
-
-    libusb.h: Fix #145 libusb_ref_device() and libusb_unref_device() typos
-
-commit 53e526e21b519300aff9c9579f886cfc107b0a30
-Author: Simon Haggett <simon.haggett@realvnc.com>
-Date:   Tue Jul 10 16:07:45 2012 +0100
-
-    Windows: Stop leaking event handle when destroying condition variables
-    
-    usbi_cond_destroy() must close the handle created by usbi_cond_intwait().
-
-commit c5194b408286229ce0d94765f963890057d46ee0
-Author: Peter Stuge <peter@stuge.se>
-Date:   Tue Jul 10 16:54:16 2012 +0200
-
-    io.c: Avoid timerfd race condition between completion and new submit
-    
-    An event handler thread working on transfer completion for the last
-    flying transfer with a timeout can end up racing with a call to
-    libusb_submit_transfer() from a second thread, so that the timerfd
-    gets disarmed even though libusb actually again has a transfer with
-    a timeout.
-    
-    By arming or disarming the timerfd during completion strictly
-    according to remaining flying transfers while also holding the
-    flying_transfers_lock this change ensures that a new transfer can
-    not be added to the flying list until the completion code path has
-    armed/disarmed the timerfd according to the current flying list.
-    
-    Hans de Goede describes the race condition situation in
-    http://sourceforge.net/mailarchive/message.php?msg_id=29520709
-    
-    Signed-off-by: Peter Stuge <peter@stuge.se>
-
-commit 0845ff2aeed9ad009d246ecc2a945f007817ca9a
-Author: Peter Stuge <peter@stuge.se>
-Date:   Tue Jul 10 06:29:48 2012 +0200
-
-    .gitattributes: Set INSTALL_WIN.txt eol=crlf attribute
-
-commit cd8e76f0b1f47271c4059cd6c1e67e23f0e247a8
-Author: Pete Batard <pete@akeo.ie>
-Date:   Thu May 10 16:44:30 2012 +0100
-
-    Windows: Add INSTALL_WIN.txt
-    
-    libusbx.git commit 75b1cf81db74357f55cc4d0f596ef19a6a25c5cd
-    
-    [stuge: Remove trailing whitespace]
-
-commit 3bd6db0b8f60143836f5a933f35b15d764fbc7dc
-Author: Ludovic Rousseau <ludovic.rousseau@gmail.com>
-Date:   Wed May 9 09:13:41 2012 +0200
-
-    examples/Makefile.am: Use the implicit _SOURCES rule
-    
-    By default automake looks for a source file foo.c for a foo binary.
-    
-    libusbx.git commit 7e52e1e7534ead3f66b13bdcb28ac8587ff47ab0
-
-commit 1bd831c4e88857bff2f1670c89eda1d04da1cc54
-Author: Peter Stuge <peter@stuge.se>
-Date:   Tue Jul 10 01:46:38 2012 +0200
-
-    io.c: Only disarm timerfd when no flying transfer has a timeout
-    
-    Commit 4630fc22cff8ad3e1afa9b223378c0aabe282b5c made libusb work
-    correctly when built to use timerfd but run on a kernel without
-    timerfd support. The commit unfortunately also broke the logic
-    during transfer completion which decides if the timerfd will be
-    disarmed or not, and disarm_timerfd() was called even if the
-    timerfd had already been armed with the next flying transfer
-    timeout.
-    
-    Before the offending commit the timerfd would be disarmed only
-    when arm_timerfd_for_next_timeout() reported that there was no
-    flying transfer with a timeout. Let's restore that behavior.
-    
-    The bug was spotted through code review both by the author and
-    by Hans de Goede, but was not squashed until Vincent Pellier
-    experienced transfers never timing out, and helped confirm
-    the source of the problem. Many thanks!
-    
-    References #73.
-
-commit ae996af002793005db318689229300ff73549964
-Author: Ludovic Rousseau <ludovic.rousseau@gmail.com>
-Date:   Tue May 8 20:34:12 2012 +0200
-
-    Darwin: Fix warning: comparison between signed and unsigned
-    
-    libusbx.git commit c5c6b0e69a13786e48b2b6254c8e5458dc6716cc
-
-commit 0f29541c6728c9c2159080267b43e9b4144e9e56
-Author: Ludovic Rousseau <ludovic.rousseau@gmail.com>
-Date:   Tue May 8 15:53:56 2012 +0200
-
-    Core: Return LIBUSB_ERROR_IO on sync API TRANSFER_ERROR and _CANCELLED
-    
-    This is much more appropriate and also fixes gcc -Wswitch-enum warnings.
-    
-    libusbx.git commit 30ccbd773bc02d5dfd21e02bfba6d58234f59393
-
-commit 133092314d539d4c1a37997bb0c4ccfbcacb4677
-Author: Ludovic Rousseau <ludovic.rousseau@gmail.com>
-Date:   Fri May 4 16:56:00 2012 +0100
-
-    autogen.sh: Correctly pass arguments containing spaces to configure
-    
-    libusbx.git commit d20cd4f3573fe74d0ec5a4e1d60c9d291547ace4
-
-commit 8dc8b977d796b227f59eb5a7b247b38e27748d52
-Author: Ludovic Rousseau <ludovic.rousseau@gmail.com>
-Date:   Fri May 4 16:56:00 2012 +0100
-
-    autogen.sh: Exit script on first error
-    
-    libusbx.git commit c74fe3ab703a28c6d8c3755213e3736c5d1eb35e
-
-commit d8e35a560dfada578c6f6dea520d7d908b002001
-Author: Toby Gray <toby.gray@realvnc.com>
-Date:   Thu May 3 11:25:11 2012 +0100
-
-    Windows: Fix deadlock when submitting transfers
-    
-    The Windows backend needed to call usbi_fd_notification() from
-    submit_transfer() because a new event source is added for every WinUSB
-    transfer. This could cause a deadlock when attempting to lock the event
-    lock if another thread was processing events on the just-submitted
-    transfer.
-    
-    The deadlock comes about as the thread calling libusb_submit_transfer()
-    acquires the transfer mutex before trying to acquire the event lock; this
-    is the other order of lock acquisition from an event thread handling
-    activity on the just submitted transfer. This could lead to one of two
-    deadlocks:
-    
-    1) If the transfer completes while usbi_fd_notification() is waiting for
-    the event lock and the callback attempts to resubmit the transfer.
-    
-    2) If the transfer timeout is hit while usbi_fd_notification() is waiting
-    for the event lock then the attempt to cancel the transfer will deadlock.
-    
-    This patch fixes both of these deadlocks by having libusb_submit_transfer()
-    only call usbi_fd_notification() after having released the transfer mutex.
-    
-    This deadlock was always present in the Windows code, but temporarily
-    deleted by mistake in commit 6506013c6d4face34cfec79dd0584e9f528cbc6a
-    and later restored in commit 325a8416697cf69b9b926ed68720f12b1aedf940.
-    
-    libusbx.git commit 1ed09c7b2a5fc27c3cfea21740584879781bff67
-    
-    [stuge: Touch up commit message]
-
-commit b988c3d66e349b4f3c430410a42b6203f4fef80f
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sun Jun 3 21:28:13 2012 +0200
-
-    Clean up broken whitespace in list_for_each_entry() macros
-    
-    Introduced by commit aa77b02da65afb0332b9e6853dae9e4dcda00bfa.
-
-commit f651b2669c6ab0804d572650d79551bc2b70f525
-Author: Peter Stuge <peter@stuge.se>
-Date:   Tue May 8 19:50:17 2012 +0200
-
-    examples: Add sam3u_benchmark isochronous example by Harald Welte
-    
-    Copied with the author's permission under LGPL-2.1 from
-    usb-benchmark-project/host/benchmark.c in
-    git://git.gnumonks.org/sam3u-tests.git commit
-    74959f7ee88f1597286cd435f312a8ff52c56b7e
-    
-    http://git.gnumonks.org/cgi-bin/gitweb.cgi?p=sam3u-tests.git;a=blob;f=usb-benchmark-project/host/benchmark.c;h=74959f7ee88f1597286cd435f312a8ff52c56b7e
-    
-    An Atmel SAM3U test firmware is also available in the above repository.
-
-commit 3a69eff1aaf8e3242937bd7ecc94a60e7aa502cd
-Author: Peter Stuge <peter@stuge.se>
-Date:   Tue May 8 19:22:31 2012 +0200
-
-    examples: Only check for HAVE_SIGACTION once in Makefile.am
-
-commit d9dbb433f3f3b9787417e34316604d99cb72b188
-Author: Peter Stuge <peter@stuge.se>
-Date:   Tue May 8 19:19:28 2012 +0200
-
-    .gitignore: Add examples/ path to the examples
-
-commit a129732fb45fc424743f26f01c906e4514f11521
-Author: Peter Stuge <peter@stuge.se>
-Date:   Tue May 8 19:14:40 2012 +0200
-
-    examples: Use a common LDADD for all examples
-
-commit 325a8416697cf69b9b926ed68720f12b1aedf940
-Author: Uri Lublin <uril@redhat.com>
-Date:   Tue May 1 16:47:34 2012 +0300
-
-    Windows: Make new transfers correctly notify the event handling thread
-    
-    usbi_fd_notification() calls are added back into submit_*_transfer()
-    so that the event handling thread will be aware of new transfers.
-    
-    libusb.git commit 6506013c6d4face34cfec79dd0584e9f528cbc6a from
-    libusbx.git commit 4cccbed825fe1dc138121640a6497d7d05aac159 removed
-    these calls during the removal of the DYNAMIC_FDS Windows-specific
-    
-    [stuge: Rewrite commit message]
-
-commit 4674b4d137df2e2e49a1057c947888de8f37d6e8
-Author: Ludovic Rousseau <ludovic.rousseau+github@gmail.com>
-Date:   Fri Apr 20 22:25:38 2012 +0100
-
-    Linux: Fix warning: comparison between signed and unsigned
-    
-    libusbx.git commit 36a7119bf296cecd4e910bef86908fd782224960
-
-commit ab9cd5a7be637f7b793987971a706b1d11c27ded
-Author: Peter Stuge <peter@stuge.se>
-Date:   Fri Apr 20 08:10:11 2012 +0200
-
-    libusb-1.0.9
-
-commit 696400ad83531bcf944c71164a46f9ccb6a33df3
-Author: Peter Stuge <peter@stuge.se>
-Date:   Fri Apr 20 08:08:34 2012 +0200
-
-    AUTHORS: Update list of contributors
-
-commit 19f94537ea55586dd85f8d627fcfaa6173069ea1
-Author: Peter Stuge <peter@stuge.se>
-Date:   Fri Apr 20 06:41:34 2012 +0200
-
-    AUTHORS: Add Martin Pieuchot as copyright holder
-
-commit 1a1c633d7912a2565f6af0c9294e10a759d40e05
-Author: Peter Stuge <peter@stuge.se>
-Date:   Fri Apr 20 06:41:12 2012 +0200
-
-    AUTHORS: Add Hans de Goede as copyright holder
-
-commit 9477f793341d59cc861acb283e6cb03b5730ac91
-Author: Peter Stuge <peter@stuge.se>
-Date:   Fri Apr 20 06:40:45 2012 +0200
-
-    AUTHORS: Add Peter Stuge as copyright holder
-
-commit 4b0dfe9770356af3c51103a9b3d63c5f8cc63d8b
-Author: Pete Batard <pete@akeo.ie>
-Date:   Mon Apr 2 15:47:53 2012 +0100
-
-    AUTHORS: Update Pete Batard's copyright years and email address
-    
-    libusbx.git commit f98eaca0985364be00fcfde3fd3884075092a4e9
-    
-    [stuge: Remove unrelated changes]
-
-commit 9f0ea78357b7b1654cb3e7de6ff57f5f378b68f1
-Author: Peter Stuge <peter@stuge.se>
-Date:   Fri Apr 20 08:35:04 2012 +0200
-
-    AUTHORS: Update Nathan Hjelm's copyright years
-
-commit 8d38506ebc9fb57a40113e5a7739572a42b826d8
-Author: Peter Stuge <peter@stuge.se>
-Date:   Fri Apr 20 06:36:08 2012 +0200
-
-    README: Add the BSDs, punctuation, mailinglist link, and remove Daniel
-
-commit 05cbe2de45806db309343cdf298d8569c55863e5
-Author: James Hanko <james.hanko@tridentmicro.com>
-Date:   Wed Oct 19 17:32:34 2011 -0700
-
-    Linux: Search for /dev/usbdev<bus>.<device> USB device special files
-    
-    If neither the (now deprecated) usbfs filesystem nor udev is available
-    then libusb searches for device nodes also in /dev where they may be
-    created if the kernel was built with the option CONFIG_USB_DEVICE_CLASS.
-    This helps on embedded systems such as Android, and all mdev users.
-    
-    Fixes #119.
-
-commit a806d169e6b5f675289cb9307fcd6b908edd9219
-Author: Peter Stuge <peter@stuge.se>
-Date:   Fri Apr 20 04:32:47 2012 +0200
-
-    Add a timestamp in log messages
-    
-    Fixes #34.
-
-commit 03f4d40c748506c85f88427dd53afd5c663a2929
-Author: Peter Stuge <peter@stuge.se>
-Date:   Fri Apr 20 02:24:44 2012 +0200
-
-    Include library version in the very first libusb_init() debug message
-
-commit 84d5eafd1f24a1c6f77f0c2a2ad40e1fbfdea381
-Author: Martin Pieuchot <mpi@openbsd.org>
-Date:   Thu Apr 19 13:33:36 2012 +0200
-
-    OpenBSD: Provide libusb_get_device_speed() data
-    
-    Because the different speed values used by the libusb and OpenBSD's
-    usb_device_info structure are compatible, keep the code simple and
-    just copy the value returned by the USB_GET_DEVICEINFO ioctl() call.
-    
-    Fixes #45.
-
-commit c145ec09732fac2eef53accc07314040d22b64a5
-Author: Peter Stuge <peter@stuge.se>
-Date:   Fri Apr 20 00:11:01 2012 +0200
-
-    doc/Makefile.am: Remove username from SF web rsync upload command
-    
-    Commit c407a2d97b6f8715d3452257a0adac40a20178e6 did it for tarballs.
-    
-    libusbx.git commit ca159f15737e9097a4d031c9950f281c42af040a
-
-commit 6506013c6d4face34cfec79dd0584e9f528cbc6a
-Author: Pete Batard <pete@akeo.ie>
-Date:   Tue Apr 10 13:30:24 2012 +0100
-
-    Windows: Remove #define compile time options in the backend source code
-    
-    * The DYNAMIC_FDS, AUTO_CLAIM and FORCE_INSTANT_TIMEOUTS options
-      were introduced for development/testing and don't appear to be
-      used by the Windows backend users => remove them.
-    
-    libusbx.git commit 4cccbed825fe1dc138121640a6497d7d05aac159
-
-commit e291e369b975692dfa1a0f029244af597fa61220
-Author: Pete Batard <pete@akeo.ie>
-Date:   Tue Apr 10 13:05:37 2012 +0100
-
-    Windows: Warn on one libusb_get_device_list() memory allocation failure
-    
-    libusbx.git commit 24d595aa71e7fd0f14d40e933a33f852f7269c8b
-
-commit 2f40a03ea0552cd8b5ce3d7667b20dc04da061da
-Author: Pete Batard <pete@akeo.ie>
-Date:   Tue Apr 10 13:05:37 2012 +0100
-
-    Windows: Add textual error name to debug message on auto-release errors
-    
-    libusbx.git commit 24d595aa71e7fd0f14d40e933a33f852f7269c8b
-
-commit 3c7f85a49b42ac36c6d41294858518c554ac4694
-Author: Pete Batard <pete@akeo.ie>
-Date:   Tue Apr 10 13:05:37 2012 +0100
-
-    Windows: Silence warning about unused function guid_to_string()
-    
-    Commit 6b1982b1bd321b55698ce537e64648e8aec85f6f removed the #ifdef
-    around guid_to_string() but this ended up causing a warning when
-    the function wasn't being called. Add it back with correct _MSC_VER.
-    
-    libusbx.git commit 24d595aa71e7fd0f14d40e933a33f852f7269c8b
-    
-    [stuge: Rewrite commit message for libusb.git]
-
-commit eb55963a6b33799ea76c34f538f21e86f235ea62
-Author: Pete Batard <pete@akeo.ie>
-Date:   Tue Apr 10 13:05:37 2012 +0100
-
-    Windows: Base DUMMY_HANDLE on LONG_PTR instead of LONG
-    
-    libusbx.git commit 24d595aa71e7fd0f14d40e933a33f852f7269c8b
-
-commit d930865987de523061eca259a7fed11aea626831
-Author: Pete Batard <pete@akeo.ie>
-Date:   Tue Apr 10 13:05:37 2012 +0100
-
-    Windows: Prefer calloc() over malloc() and cast all allocations
-    
-    This silences VS2010 intellisense warnings on memory allocation.
-    
-    libusbx.git commit 24d595aa71e7fd0f14d40e933a33f852f7269c8b
-
-commit df35117ce58b74fa530baaaccc30adaf432398ea
-Author: Peter Stuge <peter@stuge.se>
-Date:   Thu Apr 19 22:55:44 2012 +0200
-
-    Add libusb_get_version() API function
-    
-    Let's see how this will be used. Fixes #53.
-    
-    libusbx.git commit 37dfd16c8c2f36c81c86de303072def0dc405e32
-    
-    [stuge: Remove unrelated changes]
-    [stuge: Add struct libusb_version member rc for release candidate suffix]
-    [stuge: Add struct libusb_version member describe for git describe output]
-
-commit 29d5f63c5765f36ea65b55c4cd5f36e1f10a4dae
-Author: Peter Stuge <peter@stuge.se>
-Date:   Thu Apr 19 22:25:07 2012 +0200
-
-    Windows: Rename VS2005 solution and add VS2010 project files
-    
-    libusbx.git commit fcad0941e52eb2fd6d57d3327f420db14dfabf0b
-    
-    [stuge: Remove xusb references]
-    [stuge: Add newlines at end of new files]
-    [stuge: Rename libusb_20??.sln to libusb_vs20??.sln]
-
-commit b217ec1f904c4382010a3a834a7c58d595b594cf
-Author: Pete Batard <pete@akeo.ie>
-Date:   Sat Mar 31 22:32:56 2012 +0100
-
-    libusb/Makefile.am: Fix missing DLL .def file from make dist
-    
-    libusbx.git commit 10dc1ea9a799b13b7423968130da812aa97289bf
-    
-    [stuge: Use EXTRA_DIST in libusb/Makefile.am instead]
-
-commit 54cb51d8417e0128eb9088bf628db138c9daa2a0
-Author: Pete Batard <pete@akeo.ie>
-Date:   Sat Mar 31 22:14:47 2012 +0100
-
-    Makefile.am: Fix msvc dir not being included in make dist
-    
-    libusbx.git commit a8a80b60a14e3a8269e42dedf34fda66da8e0e50
-
-commit 38d5ba472c6cb728ec818a0c8d964b632c8a7992
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Fri Mar 30 13:40:32 2012 +0100
-
-    Linux: Don't spam the console with 'device unconfigured' errors
-    
-    libusbx.git commit 3c968be61befc47d33562843e5479ff67303b0c4
-
-commit 93f14087b2e79d71ba1e53c0b9c7da655dd1258e
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Thu Apr 19 05:52:58 2012 -0600
-
-    Darwin: Silence warning: cast from pointer to integer of different size
-    
-    As per http://marc.info/?m=133483651109899
-    
-    Reported-by: Xiaofan Chen <xiaofanc@gmail.com>
-
-commit 0efc2086646200d8dee86cbbb1e98136383a05c3
-Author: Pete Batard <pete@akeo.ie>
-Date:   Thu Mar 29 23:21:25 2012 +0100
-
-    .gitattributes: Add export-ignore for .gitattributs and .gitignore
-    
-    This keeps the git files out of archives created by gitweb.
-    
-    libusbx.git commit 2250152b251243f75c951533ae7b1139a785cfe6
-    
-    [stuge: Removed unrelated whitespace changes]
-
-commit a7ef55c02f0116b94cb75831e5d90ad258c662f8
-Author: Pete Batard <pete@akeo.ie>
-Date:   Wed Mar 28 01:02:02 2012 +0100
-
-    Windows: fix Clang warnings about unused assignations
-    
-    libusbx.git commit c0e7b289fdb35687b90263b14426319d2b96b132
-
-commit ac8eed67e1595ee5a069623e48362d8a85dcb252
-Author: Pete Batard <pete@akeo.ie>
-Date:   Mon Mar 26 23:34:25 2012 +0100
-
-    configure.ac: LT_LANG([Windows Resource]) makes windres check redundant
-    
-    libusbx.git commit 4f9fd6a29a712b0e3312983e9ff153e6d7ed0822
-
-commit 89ce6f7d05dc8ff4a441a01b192d2e20857f6c48
-Author: Pete Batard <pete@akeo.ie>
-Date:   Tue Mar 27 00:03:07 2012 +0100
-
-    Windows: Bring .vcproj x86_64 output directories in line with x86_32
-    
-    libusbx.git commit abdb4437ea1897226076fa706651e350dba1cfd5
-
-commit 77743c6f5b3cfa2d06dcb32204bc65d8bd4fec80
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Fri Mar 9 11:31:11 2012 +0100
-
-    Linux: Fix a comment in handle_iso_completion()
-    
-    Fix the comment at the end of handle_iso_completion, we don't stop on
-    urbs / isoc packets with less data then requested, which is a good
-    thing since it is a normal condition for isoc transfers.
-    
-    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-
-commit 5b87c2c7475a8d68270e19336afec0c5a08579ca
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Fri Mar 9 11:31:10 2012 +0100
-
-    Linux: Remove bogus status handling from handle_iso_completion()
-    
-    Remove a useless check+set of status because:
-    1. The check is always true; and
-    2. The new value is never used
-    
-    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-
-commit e23d8f67eab947e5d41216e0139f0a50d1342ef8
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Fri Mar 9 11:31:09 2012 +0100
-
-    Linux: Translate isoc packet status codes to LIBUSB_TRANSFER_ codes
-    
-    During testing of my usbredir code I hit a scenario where my libusb
-    app was seeing EXDEV as status in the transfer's iso_packet_desc.
-    
-    This happened because we didn't translate linux negative errno errors
-    in each isoc packet's status to LIBUSB_TRANSFER_ status codes! This
-    patch adds these translations.
-    
-    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-
-commit 7199bc2c9c351b553b6175a588237ee793719281
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Fri Mar 9 11:31:08 2012 +0100
-
-    Linux: Fix URB return code handling
-    
-    During testing of my usbredir code I hit a case where EOVERFLOW was not
-    handled in handle_control_completion(). Instead of just fixing this one
-    case I've audited (and fixed where necessary) all handle_foo_completion()
-    functions to know about all errors documented in
-    linux/Documentation/usb/error-codes.txt.
-    
-    Note that for handle_iso_completion() this patch actually removes the
-    handling of some codes, since these can never occur on an iso urb (they
-    can only occur on the iso packets included in the urb, see the next patch
-    in this series). Also, in case an unknown status is encountered on an iso
-    urb this patch sets the urb's status to ERROR rather then leaving it at
-    completed.
-    
-    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-
-commit 98bc7b8d125c2756deadfc889dcefd4e6f2fcd02
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Fri Mar 9 11:31:07 2012 +0100
-
-    Don't print an error when libusb_cancel_transfer() fails with NOT_FOUND
-    
-    As stated in the documentation for libusb_cancel_transfer(),
-    LIBUSB_ERROR_NOT_FOUND is an expected return value for
-    libusb_cancel_transfer() under certain circumstances, so
-    printing an error every time this happens is undesirable.
-    
-    Even more so because under Linux IOCTL_USBFS_DISCARDURB sets errno
-    to EINVAL when the kernel can't not find the urb in the kernel's
-    urbs-in-flight list, which means that the urb has already completed
-    at the host controller level but it has not necessarily been reaped
-    yet. IOW under Linux libusb_cancel_transfer() may yield a result of
-    LIBUSB_ERROR_NOT_FOUND *before* the transfer's callback has been
-    called! In conclusion there is no way for applications to avoid
-    calling libusb_cancel_transfer() on already completed transfers,
-    and these errors can and do happen frequently for some USB traffic.
-    
-    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-
-commit 4db8275da59996eb1c22d2e9e9c527fa58b288ad
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Fri Mar 9 11:31:06 2012 +0100
-
-    Linux: Fix cancel_transfer return value when cancelling a multi-urb transfer
-    
-    If we fail to cancel the last urb of a multi-urb transfer because it
-    has already completed (errno == EINVAL on DISCARD_URB), then the entire
-    transfer has already completed, so returning NOT_FOUND is consistent
-    with what the documentation for libusb_cancel_transfer() says.
-    
-    But if we've successfully cancelled the last urb, and then another urb
-    fails with errno == EINVAL, this means that we've still cancelled the
-    transfer, as it has only *partially* completed.
-    
-    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-
-commit b22253ba9cbd399299b534a8c5e3bbac3f240963
-Author: Peter Stuge <peter@stuge.se>
-Date:   Thu Apr 19 04:05:29 2012 +0200
-
-    libusb-1.0.pc: Mention OpenBSD and NetBSD in description
-
-commit 6aa0fc60d94e3123de230d3fbc9196814c0e466e
-Author: Peter Stuge <peter@stuge.se>
-Date:   Mon Apr 16 05:59:44 2012 +0200
-
-    io.c: Add debug message with the callback address on completed transfer
-
-commit de41604560a57b2279ac1d0a10b8192a9224d284
-Author: Xiaofan Chen <xiaofanc@gmail.com>
-Date:   Sun Apr 15 11:50:27 2012 +0800
-
-    Experimental support for NetBSD using the OpenBSD backend
-    
-    Signed-off-by: Xiaofan Chen <xiaofanc@gmail.com>
-
-commit 404054cb508881c9bd6bc575b66c4f509046b4af
-Author: Peter Stuge <peter@stuge.se>
-Date:   Thu Apr 19 00:41:45 2012 +0200
-
-    configure.ac: Separate per-OS backend selection from per-backend settings
-
-commit 2eba7e4197cf9afa77451186e1a116ee3ae91adc
-Author: Xiaofan Chen <xiaofanc@gmail.com>
-Date:   Sun Apr 15 07:17:18 2012 +0800
-
-    Linux: Silence unused variable warnings when without CLOCK_MONOTONIC
-    
-    Signed-off-by: Xiaofan Chen <xiaofanc@gmail.com>
-
-commit bc790a9c414871cc1d33f1c7686048434a700e45
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sat Apr 7 05:20:36 2012 +0200
-
-    examples: Use snprintf() instead of sprintf() in dpfp and dpfp_threaded
-    
-    The OpenBSD C compiler generates a warning for every use of sprintf()
-    and for a good reason. Reported in http://marc.info/?m=133376187514495
-    
-    Reported-by: Xiaofan Chen <xiaofanc@gmail.com>
-
-commit bffa232dca51bcc41df71c5735fa56370b7509ad
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sat Apr 7 03:55:36 2012 +0200
-
-    OpenBSD: Fix warning: 'hpriv' may be used uninitialized
-    
-    As reported in http://marc.info/?m=133376187514495
-    
-    The variable would be used uninitialized when the internal list of
-    open devices is empty as obsd_handle_events() checks which device
-    the event fd belongs to, which can not actually happen, but if it
-    ever does happen then we will now return LIBUSB_ERROR_NO_DEVICE.
-    
-    Reported-by: Xiaofan Chen <xiaofanc@gmail.com>
-
-commit 6b1982b1bd321b55698ce537e64648e8aec85f6f
-Author: Moses McKnight <moses@texband.net>
-Date:   Fri Mar 30 21:53:20 2012 -0500
-
-    Windows: Fix build on VC++2003 which doesn't support variadic macros
-    
-    Change _MSC_VER tests to check for >= 1400 instead of > 1200 because
-    Visual C++ did not support variadic macros until VC++2005, as per
-    http://msdn.microsoft.com/en-us/library/ms177415%28v=VS.80%29.aspx
-    
-    Since usbi_dbg() is a function and not a macro with the old MS C
-    compilers the functions guid_to_string() and windows_error_str()
-    need to be compiled unconditionally, and the compiler should remove
-    the dead code when debug logging is disabled on newer compilers.
-
-commit 58ac0355e547080c82d02685a32480b891383d3d
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sat Mar 31 03:44:40 2012 +0200
-
-    Windows: Don't use a log function body macro for old MS compilers
-    
-    The duplication is a lot more straightforward than the previous LOG_BODY
-    macro, which also didn't handle the special debug case correctly. The
-    duplicated code is fortunately not very long.
-
-commit 76af4c99bd6122c1dd7b58858b669c919d8c8806
-Author: Peter Stuge <peter@stuge.se>
-Date:   Thu Mar 22 01:52:59 2012 +0100
-
-    libusbi.h: Add IS_EPIN() IS_EPOUT() IS_XFERIN() and IS_XFEROUT() macros
-    
-    The macros make backend code a little simpler to read, since the
-    transfer and endpoint direction is checked in several places across
-    the supported platforms.
-
-commit e3d0a4cb9e2f9872c9fdbb22d7ded169e111fc8f
-Author: Peter Stuge <peter@stuge.se>
-Date:   Wed Feb 22 14:21:54 2012 +0100
-
-    Add LIBUSB_TRANSFER_ADD_ZERO_PACKET flag to indicate need for ZLP
-    
-    Some protocols which use USB require an extra zero length data packet
-    to signal end-of-transfer on bulk endpoints, if the last data packet
-    is exactly wMaxPacketSize bytes long.
-    
-    This flag allows applications to inform libusb about this requirement,
-    so that libusb can handle the issue transparently.
-    
-    At the moment the new flag is only supported on Linux, and submitting
-    a transfer with the flag set returns an error at submit time on other
-    systems. Hopefully implementations will soon follow for other systems.
-    
-    References #6.
-
-commit 7e0c747cc5ed0a31f38dff5eb5f03d4043b05ada
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sun Feb 19 06:58:16 2012 +0100
-
-    libusb.h: Add comma after last value in enums to ease future expansion
-
-commit c20ec7a927c05e0b960269751c26ab2b6e0b39ab
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sun Feb 19 05:39:33 2012 +0100
-
-    Linux: Rework bulk continuation check to generic kernel version check
-    
-    The old check_flag_bulk_continuation() tested for one specific running
-    kernel version. The new kernel_version_ge() instead allows to test the
-    running kernel version against major, minor and sublevel parameters.
-
-commit cf8f5a7be821099b143fcea8e4ba553daa22818b
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sun Feb 19 05:32:10 2012 +0100
-
-    OpenBSD: Correctly catch attempts to do isochronous OUT transfers
-    
-    LIBUSB_ENDPOINT_OUT is the value of the direction bit, which is 0 for
-    OUT transfers, so the previous condition could never evaluate to true.
-
-commit ae8e86cffb81858af5eeddbf2ea1aec6d55f573d
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sun Feb 19 00:42:20 2012 +0100
-
-    Darwin: Do not reject devices with product id 0x0000
-    
-    Fixes #128.
-
-commit 4630fc22cff8ad3e1afa9b223378c0aabe282b5c
-Author: Peter Stuge <peter@stuge.se>
-Date:   Mon Feb 13 16:59:51 2012 +0100
-
-    Do not call timerfd functions when timerfd is not being used
-    
-    When libusb was built with timerfd support but used on a system
-    without timerfd support the library would hang indefinitely on
-    completion of the first transfer, since timerfd functions were
-    being called unconditionally and the error returned when timerfd
-    was not being used caused a confused internal state.
-    
-    Many thanks to Ivo Smits for looking into the issue, proposing
-    an initial solution, and helping with testing! Fixes #73.
-
-commit c40f3df1efbb9232b525e5f675746762ca2304b8
-Author: Michael Plante <michael.plante@gmail.com>
-Date:   Sun Feb 12 13:49:35 2012 -0500
-
-    Windows: Fix MSVC6 IDE warning on line continuation in libusb-1.0.rc
-    
-    * libusb\libusb-1.0.rc(21): Could not find the file LIBUSB_RC.
-    * only shows up first time after opening workspace.
-    * shows up on either build or clean.
-    * not actually due to rc.exe, but prior to it.
-    * probably an IDE bug.
-    * does not show up when running an exported makefile.
-    
-    Signed-off-by: Michael Plante <michael.plante@gmail.com>
-
-commit 5526841023101bafa280755c3bd19fc44b9c32a0
-Author: Pete Batard <pete@akeo.ie>
-Date:   Sat Jan 7 23:30:23 2012 +0000
-
-    Windows: Add Renesas SuperSpeed support for libusb_get_device_speed()
-    
-    * tests conducted using a Renesas PCIE USB 3.0 controller and driver and
-      a mass storage USB 3.0 confirm that USB_NODE_CONNECTION_INFORMATION_EX
-      uses (undocumented) value 3 for SuperSpeed
-
-commit 3df437680f8f5406795ec5f32d96612d327b2ca4
-Author: Peter Stuge <peter@stuge.se>
-Date:   Fri Feb 10 18:06:43 2012 +0100
-
-    autogen.sh: Try to use libtoolize before trying glibtoolize
-    
-    This helps on Mac OS X where an old glibtoolize is included in the
-    system and newer, manually installed, versions provide libtoolize.
-    
-    See also http://marc.info/?m=132490560131894
-
-commit 4afbc78fe09bfc3dd7a609e5f82e9272c9e6226d
-Author: Peter Stuge <peter@stuge.se>
-Date:   Wed Feb 8 15:54:21 2012 +0100
-
-    Rename the lsusb example program to listdevs
-    
-    This is intended to reduce confusion with the much more significant
-    lsusb utility which is part of the usbutils package.
-
-commit 57ab55159298b7057e0dd9b3854f7fd1550588ed
-Author: Sean McBride <sean@rogue-research.com>
-Date:   Fri Dec 9 13:44:21 2011 -0500
-
-    core.c: Fix clang warning about useless store to a variable
-
-commit 32bbbd133e24c24d02646c0f7d1963404d4955f2
-Author: Sean McBride <sean@rogue-research.com>
-Date:   Fri Dec 9 13:43:46 2011 -0500
-
-    Darwin: Clarify comments on event thread creation and termination
-
-commit 6cf3285a4e0dfaec0fe53b8eb6a9281e3c5bcb6c
-Author: Sean McBride <sean@rogue-research.com>
-Date:   Fri Dec 9 13:43:46 2011 -0500
-
-    Darwin: Fix incorrect mutex protection of libusb_darwin_acfl global
-
-commit 662ced422cf1ffce68753296a81dccf87f3a1c57
-Author: Sean McBride <sean@rogue-research.com>
-Date:   Fri Dec 9 13:43:46 2011 -0500
-
-    Darwin: Use retained runloop variable instead of CFRunLoopGetCurrent()
-
-commit 952a9bb6116afc69c4bae4714c2eb0713bf62a6d
-Author: Sean McBride <sean@rogue-research.com>
-Date:   Fri Dec 9 13:37:22 2011 -0500
-
-    Darwin: Fix libusb_init() and libusb_exit() refcount race condition
-    
-    Use OSAtomicIncrement32Barrier() and OSAtomicDecrement32Barrier()
-    in darwin_init() and darwin_exit() to be thread safe.
-
-commit 721cc1c19fc8e88c4482ab3d1e8a34fa100c403c
-Author: Sean McBride <sean@rogue-research.com>
-Date:   Fri Dec 9 13:33:28 2011 -0500
-
-    threads_posix.c: Fix prototype warning by including threads_posix.h
-
-commit f6ef0fca4b36657c1a0885c18cc4c4afcb4f7339
-Author: Dave Camarillo <dave.camarillo@gmail.com>
-Date:   Fri Sep 23 11:56:58 2011 +0100
-
-    Windows: Fix crash during enumeration with >= 64 connected devices
-    
-    * indexes were outgrowing the unref_list array before realloc,
-      resulting in out of bound access and crash.
-
-commit e280760331e8b39ad3530235653644654166b322
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Tue Oct 26 16:31:13 2010 +0100
-
-    Windows MSVC6: Remove SetupAPI, AdvAPI32 and OLE32 dependencies
-    
-    * this ensures that libusb dependent applications only need
-      to link with libusb on Windows
-    * (copied from Pete's msvc08 mods to msvc6 by Michael)
-
-commit fa66c93253855c9146011a6854d65df6d390039f
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Tue Dec 13 21:18:10 2011 -0500
-
-    Windows: Output an error message on calls to libusb_get_pollfds()
-    
-    Signed-off-by: Michael Plante <michael.plante@gmail.com>
-
-commit 637145ed29ee7c7b13ac45d10cf1f798fc06cbd9
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Thu Jun 3 22:14:20 2010 -0500
-
-    io.c: Fix comment since pthreads isn't the only threading libusb uses
-
-commit bb37939ab44a54a054f73e2f381808b12fb9cb33
-Author: Michael Plante <michael.plante@gmail.com>
-Date:   Mon Aug 2 19:59:12 2010 -0500
-
-    libusb.h: Cast in libusb_get_string_descriptor() to avoid MSVC6 warning
-    
-    On MSVC6 bitwise OR promotes to int, causing the warning.
-
-commit ca09754471acba9a22fe8fc09170e5660d1d5c5d
-Author: Michael Plante <michael.plante@gmail.com>
-Date:   Fri Dec 23 16:50:21 2011 -0600
-
-    Windows: guid_to_string() is only discarded when macro-usbi_dbg used
-    
-    * usbi_dbg encloses all references to guid_to_string
-    * MinGW/cygwin warn about an unused function, so the #if
-      squelches this warning
-    * MSVC6 uses a variadic function form of usbi_dbg instead
-      of a macro, so the compiler still "sees" guid_to_string
-      and it therefore needs to always be defined for MSVC6,
-      even if it's only a stub.
-    * So we define it if usbi_dbg is used OR if MSVC6 is used.
-    
-    Signed-off-by: Michael Plante <michael.plante@gmail.com>
-
-commit 8e15adcb0089882d10269ab77d35e193770ab90e
-Author: Pete Batard <pete@akeo.ie>
-Date:   Tue Nov 15 01:11:12 2011 +0000
-
-    Windows: Fix undefined datatype 'LONG_PTR' in MSVC6
-    
-    * issue reported by Elmi
-    
-    Signed-off-by: Michael Plante <michael.plante@gmail.com>
-
-commit 17ad642cae618cc09c5516612fa3880d4b6b8635
-Author: Pete Batard <pete@akeo.ie>
-Date:   Sun Nov 13 23:10:15 2011 +0000
-
-    Windows: Fix for MSVC6 preprocessor not accepting blank parameters
-    
-    * unlike later iterations of Visual Studio, MSVC6 does not accept
-      blank parameters on macro calls [eg. CALL(a, ,b)]
-    * blank params were used with the DLL_DECLARE and DLL_LOAD macros
-    * issue reported by Elmi
-
-commit c591a7cbf7dbc6fbb4368e65cf58a8cd02582aeb
-Author: Michael Plante <michael.plante@gmail.com>
-Date:   Tue Oct 26 11:39:38 2010 +0100
-
-    Windows: Switch MSVC6 .dsp project files from MBCS to Unicode
-    
-    * MBCS (which is different from UTF-8) only makes sense if
-      supporting Windows 95/98, which we don't
-    * (try to match Pete's vcproj changes in MSVC6)
-
-commit 536e424fd7d057fc3f20f9939f9de4572e51c815
-Author: Michael Plante <michael.plante@gmail.com>
-Date:   Tue Dec 13 21:39:40 2011 -0500
-
-    Windows: Add missing MSVC6 lsusb.dsp project file
-    
-    Signed-off-by: Michael Plante <michael.plante@gmail.com>
-
-commit c56828857eb7ba6fb4f7701693dbb3fe4e75d5f6
-Author: Martin Pieuchot <mpi@openbsd.org>
-Date:   Mon Jan 30 09:59:30 2012 +0100
-
-    OpenBSD backend
-
-commit d2285744c7fa4007bb411be354268209d350b0f2
-Author: Xiaofan Chen <xiaofanc@gmail.com>
-Date:   Fri Jan 13 18:07:34 2012 +0100
-
-    configure.ac: Darwin: Move -lobjc from LIBS to PC_LIBS_PRIVATE
-    
-    Since commit 40327cd134718475f6cec8935b856d4fdff2099c it is neccessary
-    to explicitly include -lobjc not only when linking libusb itself, but
-    also for programs linking statically against libusb. References #63.
-    
-    See also http://marc.info/?m=132505900202378
-
-commit 93b0e09d53ed1d177631af9182378492481a790a
-Author: Xiaofan Chen <xiaofanc@gmail.com>
-Date:   Fri Jan 13 13:04:00 2012 +0100
-
-    examples: Link only with ../libusb/libusb-1.0.la and not with -lusb-1.0
-    
-    Previous _LDFLAGS included both the freshly built libusb in ../libusb
-    and -lusb-1.0, where libtool would usually resolve the latter to an
-    already-installed libusb library in the system. The extra reference
-    to a second libusb library resulted in failure to build examples on
-    Mac OS X in some cases, and is plain wrong.
-    
-    See also the thread at http://marc.info/?m=132637593623667
-
-commit cdc5df8f1b206a7c19bc221e8a9a97d5d98deb85
-Author: Peter Stuge <peter@stuge.se>
-Date:   Thu Jan 12 10:34:55 2012 +0100
-
-    libusb/Makefile.am: Avoid recursive variables in .rc silent-rule
-    
-    Not every make supports recursive variable expansion so some automake
-    versions complain about non-POSIX variable names ever since commit
-    70bec4a9f8ec28d36c731011fa24d37c74ad3523 which added support for
-    silent-rules in our rule to compile the Windows .rc file.
-    
-    This commit removes the recursive variables and instead uses the
-    simple and generic GEN message and associated variable.
-
-commit a8e2e7cab278fbfcba91909eaf762cf66da9eda5
-Author: Ludovic Rousseau <ludovic.rousseau+github@gmail.com>
-Date:   Sat Sep 24 18:27:54 2011 +0200
-
-    Core: Fix #122 warning: no previous prototype for ‘usbi_log_v’
-    
-    Declare the usbi_log_v() function before using it.
-
-commit e88ecb1e65604c222f82da586bb9e9066d66fbba
-Author: Sean McBride <sean@rogue-research.com>
-Date:   Fri Oct 14 14:40:29 2011 -0400
-
-    Darwin: Set a name for the background thread on Mac OS X 10.6 and later
-    
-    The call to pthread_setname_np() makes it easy to identify the
-    background thread in the Xcode debugger and in crash reports.
-
-commit 60bad550dcb31a315a667a6614c52f712c82f45f
-Author: Peter Stuge <peter@stuge.se>
-Date:   Thu Sep 22 21:42:35 2011 +0200
-
-    libusb/Makefile.am: Add libusb-1.0.rc dependency on version.h
-
-commit 70bec4a9f8ec28d36c731011fa24d37c74ad3523
-Author: Peter Stuge <peter@stuge.se>
-Date:   Thu Sep 22 21:38:29 2011 +0200
-
-    libusb/Makefile.am: Make the libusb-1.0.rc rule support silent-rules
-
-commit fa9b682a638e54a4556ef6bd343ef56d6300a520
-Author: Peter Stuge <peter@stuge.se>
-Date:   Thu Sep 22 21:17:37 2011 +0200
-
-    configure.ac: Enable libtool support for Windows Resource language
-
-commit 58c73ddca310f757fc7ca75197bf3d7ca58ce29a
-Author: Sean McBride <sean@rogue-research.com>
-Date:   Mon Sep 19 12:52:44 2011 -0400
-
-    descriptor.c: Use size_t for minor 64 bit compliance improvement
-    
-    Fixes #121.
-
-commit 27ec326a9f1bff4481702b35f39897c65a5db586
-Author: Sean McBride <sean@rogue-research.com>
-Date:   Mon Sep 19 12:42:33 2011 -0400
-
-    Darwin: Fix warnings about mismatched signed/unsigned compare
-    
-    References #121.
-
-commit 59cc79f2c8e5da41fe2c761bf1e1d9cd18ddac81
-Author: Sean McBride <sean@rogue-research.com>
-Date:   Mon Sep 19 12:38:20 2011 -0400
-
-    Fix unused variable warnings when without timerfd and/or when on Darwin
-    
-    References #121.
-
-commit 1cc5b4a9fb984e83681ae5c797fa6b22bc20f809
-Author: Ludovic Rousseau <ludovic.rousseau+github@gmail.com>
-Date:   Fri Sep 16 18:07:56 2011 +0200
-
-    Correctly handle LIBUSB_TRANSFER_OVERFLOW in libusb_control_transfer()
-    
-    sync.c: In function `libusb_control_transfer':
-    sync.c:122: warning: enumeration value `LIBUSB_TRANSFER_OVERFLOW' not
-    handled in switch
-    
-    Fixes #120.
-
-commit c55f581f43885f8576d8e2ebf4d46cd7ff3c1030
-Author: Pete Batard <pete@akeo.ie>
-Date:   Mon Sep 19 16:01:37 2011 +0100
-
-    Windows: do not set altsetting 0 as part of libusb_release_interface()
-    
-    * pointed out by Travis Robinson and Xiaofan Chen
-    * similar to a change advised by Alan Stern for the Linux kernel:
-      http://marc.info/?m=122790204410765
-
-commit efd3fae8f95ef7797ecd4b5731b198f100007d6a
-Author: Pete Batard <pete@akeo.ie>
-Date:   Mon Sep 19 15:45:35 2011 +0100
-
-    Windows: fix communication with hubs
-    
-    * issue reported by René Haunstrup in http://marc.info/?m=130503019227814
-
-commit a8d1eb7963e5811e16e8fb7e157cf3a00d888347
-Author: Pete Batard <pete@akeo.ie>
-Date:   Mon Sep 19 15:41:39 2011 +0100
-
-    Windows: add USB 3.0 controller support
-    
-    * Windows 8, NEC/Renesas, TI, Fresco Logic, Etron, VIA, ASMedia
-      (some of which untested!)
-    * includes workaround for NEC/Renesas USB 3.0 root hubs
-
-commit 48a19497bdd14325738ac9197d8cf4ebe1daa2d4
-Author: Pete Batard <pete@akeo.ie>
-Date:   Mon Sep 19 15:28:03 2011 +0100
-
-    Windows: add static keywords and drop duplicated or unneeded code
-
-commit af407286ba2fd346755297e56e365d84b98090d5
-Author: Pete Batard <pete@akeo.ie>
-Date:   Mon Sep 19 13:59:46 2011 +0100
-
-    Windows: fix 'windows_error_str' defined but not used when not logging
-
-commit abc3143ba1989a48f62246c2afb0eb4c3c5f7917
-Author: Peter Stuge <peter@stuge.se>
-Date:   Thu Sep 22 10:19:17 2011 +0200
-
-    libusbi.h: Silence unused context variable warnings when not logging
-
-commit 69b71c896a153a307360cf21be67b3b6e1e09a2d
-Author: Pete Batard <pete@akeo.ie>
-Date:   Mon Sep 19 13:06:22 2011 +0100
-
-    Windows: copy DLL file regardless of ddk_build.cmd dll argument case
-
-commit fdbac8971212bda3a42feeeaeb92fd8e49c7e904
-Author: Pete Batard <pete@akeo.ie>
-Date:   Sun Sep 18 20:06:45 2011 +0100
-
-    Windows: Add uint32_t typedef for old MSC so that DDK can build lsusb
-
-commit c471d55e909d84012f065715703dad454d1fa421
-Author: Vitali Lovich <vlovich@gmail.com>
-Date:   Fri Sep 16 08:53:25 2011 -0600
-
-    Darwin: fix port leak in darwin_clock_gettime()
-
-commit 477f3917f8c123e36993f9c0ba8156ca0f16ccfa
-Author: Vitali Lovich <vlovich@gmail.com>
-Date:   Fri Sep 16 08:50:40 2011 -0600
-
-    Darwin: remove unnecessary run loop invalidation during libusb_exit()
-
-commit f52094f37ccaff8137f5ce39867d2dba9b0f6bf9
-Author: Vitali Lovich <vlovich@gmail.com>
-Date:   Fri Sep 16 08:49:54 2011 -0600
-
-    Darwin: fix port leak during libusb_exit()
-
-commit 8a2f7b5c0520e6099f2c624cd0994c60867c1628
-Author: Vitali Lovich <vlovich@gmail.com>
-Date:   Fri Sep 16 08:48:28 2011 -0600
-
-    Darwin: fix potential leak on libusb_claim_interface() error
-
-commit b1ee2ef8d0b67dcc51c15742cb2decb386cffd9b
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Fri Sep 16 08:41:01 2011 -0600
-
-    Darwin: Fix #117 transfer size 64/32 bit issue for transfer callbacks
-    
-    The transfer size is now always truncated to 32 bits.
-
-commit c407a2d97b6f8715d3452257a0adac40a20178e6
-Author: Peter Stuge <peter@stuge.se>
-Date:   Thu Sep 15 17:04:43 2011 +0200
-
-    Remove username from SF FRS rsync upload command
-
-commit cbc2d7b2de58cf5fb02d9e5a39be0870527f8632
-Author: Peter Stuge <peter@stuge.se>
-Date:   Thu Sep 15 16:48:35 2011 +0200
-
-    Support release candidate versions in configure.ac and libusb-1.0.rc
-
-commit 384a528ed7adde935681313dacc5cd79e4be9ea1
-Author: Peter Stuge <peter@stuge.se>
-Date:   Thu Sep 15 16:32:47 2011 +0200
-
-    Tidy .gitignore a little
-    
-    There's no xusb, we need a glob pattern for matching .exe files, and
-    fpusb tarballs aren't very common in the libusb source dir.
-
-commit 9ad3643391a7fc6ce97aa77ffaf97d244fd9e613
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Wed Sep 14 10:53:48 2011 +0200
-
-    Docs: Clarify that libusb_handle_events_timeout() tv param can't be NULL
-    
-    The example code and API doc for libusb_handle_events_timeout() could be
-    interpreted as it being OK to pass a NULL pointer for the tv argument (I
-    interpreted it like that when I first started coding for libusb).
-    
-    This patch changes the docs to make it clear that one must always supply
-    a tv struct to libusb_handle_events_timeout.
-    
-    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-
-commit e1c06fb070c1328a3b78c7da8b9e779d466edd97
-Author: Peter Stuge <peter@stuge.se>
-Date:   Wed Sep 14 08:23:43 2011 +0200
-
-    Makefile.am: Do not remove ChangeLog on make distclean, fixes #116
-    
-    [pbatard: Remove it on make maintainer-clean instead]
-
-commit 0c5bf03eb829e51dcf19562fc4f745937235ea51
-Author: Vitali Lovich <vlovich@aliph.com>
-Date:   Wed Sep 14 07:02:06 2011 +0200
-
-    Darwin: Reduce race likelihood between cancellation and device disconnect
-    
-    References #88. The race condition still remains, but this change
-    makes it less likely to trigger.
-
-commit 3e6e257f55156c4600f3116a0befba8cee62872a
-Author: Peter Stuge <peter@stuge.se>
-Date:   Wed Sep 14 04:00:33 2011 +0200
-
-    Document that libusb_get_device_list() can return any libusb_error code
-    
-    Fixes #87.
-
-commit 737ba04ea40f19564b445fbb489907529e75edc9
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Thu Jun 16 10:49:13 2011 +0100
-
-    Linux: Fix #81 URB double free race condition on device disconnect
-    
-    A submitted transfer that has just been failed by the kernel could be
-    picked up by an event handler to be cleaned up, where freeing of URB
-    memory would race with the submit function doing it's own cleanup and
-    freeing as a result of the submit failing.
-    
-    libusb_submit_transfer() always holds itransfer->lock, so the race can
-    be avoided by taking that lock also in the cleanup path and checking
-    that the URB memory has not already been freed before freeing it there.
-    
-    As http://libusb.org/ticket/81#comment:14 notes there is still another
-    possible, but unlikely, race condition between libusb_submit_transfer()
-    and an event handling thread. That will require more work to solve.
-    
-    [stuge: Add check in cleanup path that URBs have not already been freed]
-
-commit 1b0f758a334d78d3832d17d694ac0c931da36050
-Author: Peter Stuge <peter@stuge.se>
-Date:   Wed Sep 14 03:00:14 2011 +0200
-
-    Add libusb_error_name() API function
-    
-    Until we have i18ned error messages we can at least offer easy
-    translation from numeric error code to the error code's name.
-    
-    [hansg: switch() on enum to get a compiler warning if a case is missing]
-    [hansg: Better return value when called with an unknown error code]
-    [hansg: Fix DEFAULT_VISIBILITY in definition to compile on all platforms]
-
-commit e16805130a04b2642891e86b8f479e6343ca17da
-Author: Peter Stuge <peter@stuge.se>
-Date:   Wed Sep 14 02:30:18 2011 +0200
-
-    Add libusb_has_capability() API function
-    
-    Since it is currently not planned to change the filename of the libusb
-    library between libusb-1.0 versions at least on Windows systems it's
-    important to have a capability API.
-    
-    Currently there exists only one capability; LIBUSB_CAP_HAS_CAPABILITY,
-    which tests support for the libusb_has_capability() API.
-
-commit 2dc2fa2a56408e515d25359323b4ea2f1bbec14a
-Author: Sebastian Pipping <sebastian@pipping.org>
-Date:   Tue Sep 13 20:38:26 2011 +0200
-
-    Fix typos in introductory documentation
-
-commit 0a828082aeedc6d19b6de4e3b10cc9762352fa7f
-Author: Pekka Nikander <pekka.nikander@senseg.com>
-Date:   Tue Sep 13 18:57:43 2011 +0200
-
-    Linux: Add libusb_open() debug and error messages with the device path
-    
-    Fixes #109.
-
-commit 6583372125d73543fe0db9fdc59850b9c6aa50d9
-Author: Pekka Nikander <pekka.nikander@senseg.com>
-Date:   Tue Sep 13 18:52:36 2011 +0200
-
-    Add debug message with libusb_open() error code
-    
-    References #109.
-
-commit f797ecb3b4e653594f8ebc0c9d9e2ca579062779
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Mon Sep 12 18:11:20 2011 +0200
-
-    Document libusb_handle_events_completed() and _timeout_completed()
-    
-    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-    [stuge: Note that the old racy functions should be avoided by new code]
-
-commit 6696512aade99bb15d6792af90ae329af270eba6
-Author: Graeme Gill <graeme2@argyllcms.com>
-Date:   Sat Sep 10 15:47:05 2011 +0200
-
-    Fix #56 race condition causing delayed completion of sync transfers
-    
-    The sync API had a race where it would check a condition to know if it
-    needed to call a libusb_handle_events() function. However, the check
-    was done outside of the lock that is held while the condition is set,
-    so another thread could completely serve whatever was needed to make
-    the condition true between it being checked and the event handler being
-    called. This situation would be detected after a libusb-internal timeout
-    of 60 seconds, after which the transfer would be completed without
-    error, but with significant delay.
-    
-    Original patch at http://marc.info/?l=libusb-devel&m=127252114815709
-    
-    Changes by Hans de Goede:
-    - Renamed the "race-proof" functions from libusb_handle_events*_check()
-      to libusb_handle_events*_completed()
-    - Drop r = 0 setting in libusb_handle_events_timeout_completed()
-      (to make both completed checking cases identical flow wise)
-    
-    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-    [stuge: Simplify libusb_handle_events_timeout() change with a goto]
-    [pbatard: Fix _handle_events_timeout() and _completed() definitions]
-
-commit cfee5446cdb2974c1e90c7c379a365c495975aef
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Fri Aug 26 23:06:40 2011 -0600
-
-    Darwin: Use a condition to signal async thread ready in libusb_init()
-
-commit d1bd234f7e1b1ff4168b8f605e2038e87a0e361f
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Thu Jul 21 22:34:12 2011 -0600
-
-    Fix #64 use of reserved identifiers throughout libusb
-
-commit a97762a8a121de1ad3deb9e861088b69bb6a155b
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Thu Jul 21 22:31:09 2011 -0600
-
-    Darwin: fix libusb_get_device_list() and libusb_claim_interface() leaks
-
-commit 8723df191fcedc6161732fd06d12df392c6dea3f
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Thu Jul 21 22:28:47 2011 -0600
-
-    Darwin: use kIOMasterPortDefault instead of creating a master port
-
-commit 0eb7e43759003610d1afe6148aa6ff4f5859ccb0
-Author: Peter Stuge <peter@stuge.se>
-Date:   Wed Jul 27 03:15:03 2011 +0200
-
-    Allow devices with zero configurations to be discovered
-    
-    At least in Linux, wireless USB devices have zero configurations until
-    they have been authorized. This device state can be set for any USB
-    device using:
-    
-    echo 0 > /sys/bus/usb/devices/?-?/authorized
-    
-    An unauthorized device would previously make usbi_sanitize_device()
-    return LIBUSB_ERROR_IO, although there really was no I/O error.
-    
-    Reported-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
-
-commit 5010c3e80423d13acee6eeb4af974e8a9bcdd006
-Author: Peter Stuge <peter@stuge.se>
-Date:   Wed Jul 27 06:17:48 2011 +0200
-
-    Linux: Continue enumeration even if one device returns an error
-
-commit 2bf8848fb5c85ace0f445c0820a0c173cf76bf43
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Fri Jun 17 10:19:00 2011 +0200
-
-    Linux: Handle single- and two-digit kernel versions like 3.0 and 4
-    
-    The code has been tested with various version strings.
-    
-    [stuge: Remove bogus string length check and optimize for newer kernels]
-
-commit 0288bf24f91eca9f433ebad91a7eb6c0e3e29133
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Thu Mar 3 18:35:35 2011 +0000
-
-    Windows: Provide libusb_get_device_speed() data
-    
-    * use (currently superspeed unaware) USB_NODE_CONNECTION_INFORMATION_EX
-    
-    Fixes #45.
-    
-    [stuge: Explicitly convert OS device speeds to libusb device speeds]
-    [pbatard: Add breaks overlooked when adding explicit conversion]
-
-commit 382b7deaadd7e2f1d08c9e921e460bb3abf130b2
-Author: Trygve Laugstøl <trygvis@inamo.no>
-Date:   Tue Jul 19 23:20:40 2011 +0200
-
-    Darwin: Provide libusb_get_device_speed() data
-    
-    References #45.
-
-commit 44d6319f57e7e2c77347da228ed032e62716b438
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Thu Feb 17 15:06:40 2011 +0100
-
-    Linux: Provide libusb_get_device_speed() data from sysfs
-    
-    References #45.
-    
-    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-
-commit c8c40bcbd22abca922ff31c4ed6a75fd7af78b59
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Thu Feb 17 13:17:55 2011 +0100
-
-    Add new API function libusb_get_device_speed()
-    
-    Reworked version of my earlier patch, largely modelled after (if not
-    copy and pasted from) Trygve Laugstøl's <trygvis@inamo.no> similar
-    commit 5a6541e0d80fb1f21e2b960bc2337a612f9d74fb in
-    git://git.libusb.org/libusb-trygvis.git
-    http://git.libusb.org/libusb-trygvis.git
-    http://git.libusb.org/?p=libusb-trygvis.git;a=commitdiff;h=5a6541e0d
-    
-    This patch does not add any OS specific code. The supporting code in
-    each backend follows in separate patches. References #45.
-    
-    Signed-off-By: Hans de Goede <hdegoede@redhat.com>
-
-commit 0db8cba7f2c372f0127c7df9724e5a35e93f2069
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Sun Mar 20 00:25:44 2011 -0600
-
-    Darwin: Improve device enumeration performance
-    
-    The device location is saved, and later used whenever iterating over
-    devices. Fixes #111 and #112.
-    
-    [stuge: Formatting fixes and split out libusb_get_device_speed() change]
-    [stuge: Combine with patch that uses the saved device location]
-
-commit 511ec4301deb516691e39e3df5b90fe28cb2bb0f
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Thu Feb 17 12:49:36 2011 +0100
-
-    Linux: Use __read_sysfs_attr() to get busnum and devaddr
-    
-    Remove code duplication.
-    
-    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-
-commit e05bbc59ca7b896e2b825bde59bf883ac8c09f5c
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Thu Feb 17 12:45:10 2011 +0100
-
-    Linux: Add __read_sysfs_attr() helper function
-    
-    On Linux we often need to read (postive) integers from sysfs. This patch
-    adds a helper function for this. This is a preparation patch for adding
-    a libusb_get_device_speed() function to libusb.
-    
-    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-
-commit 20e26dda0f86dafa3436b152e090b5f3410c8ce4
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Tue Feb 8 16:37:18 2011 +0100
-
-    Linux: Stop kernel from re-attaching in-kernel driver after reset
-    
-    When an interface is bound to the usbfs driver (iow claimed), the
-    kernel will unbind it, and then after the reset do a device_attach
-    on the interface, which will bind the default in kernel driver to
-    the interface.
-    
-    So if an app has detached the in kernel driver, and claimed the
-    interface and then does a libusb_reset_device. Things end up with
-    the interface no longer being bound to the usbfs driver (so no longer
-    claimed) and instead it is bound to the in kernel driver (iow the in
-    kernel driver is re-attached).
-    
-    We can stop this from happening by releasing all claimed interfaces
-    before the reset, as the kernel will not do the device attach after
-    reset, if no driver was bound to the interface before the reset.
-    
-    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-
-commit 4e294dc9848aab86b31d2fff228cf97e7eadf913
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Thu Feb 17 12:35:46 2011 +0100
-
-    Core: Use USB_MAXINTERFACES rather then sizeof(claimed_interfaces)
-    
-    claimed_interfaces is a long and thus its size differs on 32
-    versus 64 bits, this patch uses USB_MAXINTERFACES instead of
-    sizeof(claimed_interfaces) on interface number range checks
-    for consistent behavior independent of the arch.
-    
-    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-
-commit a68f956dd4c29d6ed799f04f07a3346317843999
-Author: Hans de Goede <hdegoede@redhat.com>
-Date:   Wed Feb 9 12:40:35 2011 +0100
-
-    Linux: Fix warnings seen when compiling with gcc-4.6
-    
-    Compiling with gcc-4.6 results in the following warnings:
-    os/linux_usbfs.c: In function 'op_get_configuration':
-    os/linux_usbfs.c:1144:6: warning: variable 'r' set but not used ...
-    os/linux_usbfs.c: In function 'op_handle_events':
-    os/linux_usbfs.c:2091:40: warning: 'status' may be used uninitialized ...
-    os/linux_usbfs.c:2044:6: note: 'status' was declared here
-    dpfp.c: In function 'save_to_file':
-    dpfp.c:228:9: warning: variable 'ignore' set but not used ...
-    dpfp_threaded.c: In function 'save_to_file':
-    dpfp_threaded.c:257:9: warning: variable 'ignore' set but not used ...
-    
-    This patch fixes these. (The second comes from handle_control_completion()
-    which gcc seems to inline into op_handle_events().)
-    
-    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-    [stuge: Add fixes for dpfp examples and update source references]
-
-commit 209b5ccd827039b933b730e3f29abd0d72d3c6c6
-Author: Vitali Lovich <vlovich@aliph.com>
-Date:   Tue Jun 14 08:51:57 2011 +0200
-
-    Darwin: Fix #108 crash when a device is unplugged
-
-commit d3543e9140536a9751811b44f8496489be1e6bb7
-Author: Peter Stuge <peter@stuge.se>
-Date:   Mon Jun 13 22:58:23 2011 +0200
-
-    libusb.h: Add missing LIBUSB_CLASS_ codes currently defined by usb.org
-    
-    LIBUSB_CLASS_PHYSICAL
-    LIBUSB_CLASS_SMART_CARD
-    LIBUSB_CLASS_CONTENT_SECURITY
-    LIBUSB_CLASS_VIDEO
-    LIBUSB_CLASS_PERSONAL_HEALTHCARE
-    LIBUSB_CLASS_DIAGNOSTIC_DEVICE
-    
-    Per http://www.usb.org/developers/defined_class
-
-commit 08bc7ffb6a3b65afc6795cd048a890ee8da7d954
-Author: Peter Stuge <peter@stuge.se>
-Date:   Mon Jun 13 22:53:40 2011 +0200
-
-    libusb.h: Add LIBUSB_CLASS_IMAGE in addition to LIBUSB_CLASS_PTP
-    
-    The old LIBUSB_CLASS_PTP name is kept for compatibility. Fixes #106.
-
-commit 3d7938d85a33cd98553c0c898a8dd0490826b077
-Author: Peter Stuge <peter@stuge.se>
-Date:   Mon Jun 13 22:52:48 2011 +0200
-
-    libusb.h: Fix LIBUSB_CLASS_PRINTER description typo
-    
-    References #106.
-
-commit 5d0526af1a922afab02cdbdf4bb7078702759571
-Author: Sean McBride <sean@rogue-research.com>
-Date:   Fri Feb 11 11:28:04 2011 -0500
-
-    Darwin: Fix #100 warning cast to pointer from integer of different size
-
-commit bb8854ff5680136e29b57505300f131c2646f258
-Author: Sean McBride <sean@rogue-research.com>
-Date:   Mon Jun 13 22:26:43 2011 +0200
-
-    configure.ac: Fix #97 clang warning about -fgnu89-inline
-    
-    Remove the test that sets the flag since GNU89 inline semantics are not
-    required by libusb.
-    
-    [stuge: Also remove reference to the test result]
-
-commit cb3c2e488f298b78027c9d5fc0bec0e5ba27d761
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Wed Jun 15 01:38:58 2011 +0200
-
-    Windows: Make cancel_io() in poll_windows.c static
-    
-    References #97.
-
-commit 6635dbb4acb5ee556a020e431b15c954edfcbd29
-Author: Peter Stuge <peter@stuge.se>
-Date:   Mon Jun 13 22:21:02 2011 +0200
-
-    Windows: Make upperize() in windows_usb.h static
-    
-    References #97.
-
-commit 9479ce9dae3d0dbe2ce693bd02ccceb018a75fe9
-Author: Vitali Lovich <vlovich@aliph.com>
-Date:   Wed Mar 16 17:33:57 2011 -0700
-
-    descriptor.c: Fix buffer read overflow caught by valgrind
-    
-    In parse_interface() an unexpected descriptor would be parsed without
-    validating the descriptor's length.  It is possible for size to be 0 at
-    this point, which means that the parsing would read past the end of the
-    source buffer.  Fix #83 by checking the length of the remaining buffer
-    before parsing.
-
-commit c775c2f43037cd235b65410583179195e25f9c4a
-Author: Vitali Lovich <vlovich@aliph.com>
-Date:   Wed Mar 16 19:51:40 2011 -0700
-
-    Clean up in-flight transfers and device handle when closing a device
-    
-    Any in-flight transfers should properly invalidate their references
-    to device handles that are being closed.  Additionally, they should be
-    removed from the transfer-in-flight list.  This is done with the events
-    lock held to protect against another thread processing the same transfer.
-    The events lock is initialized as a recursive mutex, because the device
-    close code might itself be called while an event is being handled.
-    Fixes #82.
-    
-    [stuge: Trivial rework to reduce indenting]
-
-commit 74282582cc879f091ad1d847411337bc3fa78a2b
-Author: Vitali Lovich <vlovich@aliph.com>
-Date:   Wed Mar 16 19:43:30 2011 -0700
-
-    Add recursive mutexes to threading abstraction
-    
-    This is necessary for the device close path which needs to attain the
-    events lock, but which might itself be called while handling an event.
-    The events lock is necessary to properly clean up transfers which might
-    still be pointing to the device. References #82.
-    
-    [stuge: Move usbi_mutex_init_recursive() into threads_posix.c]
-    [stuge: Must also #define _XOPEN_SOURCE 500 to be able to build]
-    [pbatard: Un-inline usbi_mutex_init_recursive() to make Cygwin happy]
-
-commit 8f1bc0659136faf312dabe8fe67380a798299d33
-Author: Vitali Lovich <vlovich@aliph.com>
-Date:   Wed Mar 16 19:48:35 2011 -0700
-
-    Add USBI_TRANSFER_CANCELLING and _DEVICE_DISAPPEARED status flags
-    
-    The flags are used to indicate if a cancellation has started, and if
-    a cancellation has failed because the device is no longer available.
-    References #82.
-
-commit 87ba8a9ead4fd9e81ae3c5a894f698779de1f2c2
-Author: Vitali Lovich <vlovich@aliph.com>
-Date:   Wed Mar 16 19:50:04 2011 -0700
-
-    Linux: Detect and report that device has gone away while discarding URBs
-    
-    Return LIBUSB_ERROR_NO_DEVICE if the device is no longer available
-    (ENODEV) to discard the urbs. References #82.
-
-commit 2c85c363cddd72b9ab425f05e2ee03e0b1df24f1
-Author: Peter Stuge <peter@stuge.se>
-Date:   Mon Jun 6 02:46:46 2011 +0200
-
-    libusbi.h: Add comma after last value in enum usbi_transfer_flags
-
-commit 5d7be3e1337f2444097504931ac0f2f0997b2b05
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sun Jun 5 23:28:07 2011 +0200
-
-    threads_posix.h: Whitespace fix
-
-commit 18db4813e844fc6929680afcc9b793abcb06876a
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sun Jun 5 23:21:08 2011 +0200
-
-    libusb/Makefile.am: Correct threading files in libusb_1_0_la_SOURCES
-
-commit 5f30c81f66e8dd61f8eae16de548697708f9bd18
-Author: Alan Ott <alan@signal11.us>
-Date:   Thu Jul 21 16:37:48 2011 +0200
-
-    Linux: Fix #70 race condition in sysfs_get_device_list()
-    
-    Change the way libusb chooses between using sysfs and usbfs for information
-    about the attached devies.  Using the old method, a race condition could
-    occur if a device was unplugged just before (or during) the call to
-    libusb_get_device_list(), corrupting the internal sysfs_can_relate_devices
-    and sysfs_has_descriptors variables and preventing libusb_get_device_list()
-    from working in future calls.
-    
-    The old method was based on the assumption that if certain sysfs files
-    (eg: busnum) could not be opened, that indicated an inadequacy of sysfs
-    (ie: the running kernel's sysfs version did not contain those files),
-    when in reality those files couldn't be opened because the device had
-    been unplugged.
-    
-    The new method checks the adequacy of sysfs during libusb_init()
-    (op_init()) and if a sysfs file cannot be opened, it is now assumed that
-    it is because the device has been unplugged, not because sysfs is
-    inadequate.
-    
-    Signed-off-by: Alan Ott <alan@signal11.us>
-    [stuge: Include closedir() bugfix posted in ticket by Arne Laansoo]
-    [stuge: Remove dead code in sysfs_scan_device() found by Hans de Goede]
-
-commit 40327cd134718475f6cec8935b856d4fdff2099c
-Author: Sean McBride <sean@rogue-research.com>
-Date:   Thu Feb 10 17:11:29 2011 -0500
-
-    Darwin: Fix #63 error when apps use Objective-C garbage collection
-
-commit 3ba2fae24886fec89410e5f2295f65363edcc2df
-Author: Sean McBride <sean@rogue-research.com>
-Date:   Fri Feb 5 11:50:34 2010 -0500
-
-    Darwin: Fix #28 clang analyzer warning about unbalanced retain/release
-
-commit b67120f047f7eafa15c88c66fa61cef40805ec1f
-Author: Sean McBride <sean@rogue-research.com>
-Date:   Fri Feb 5 11:50:34 2010 -0500
-
-    io.c: Fix clang analyzer warning about unused variable
-    
-    References #28.
-
-commit 51af85d03a098d7d99ea544e8e9535b5476bab33
-Author: Peter Stuge <peter@stuge.se>
-Date:   Tue May 10 10:44:18 2011 +0200
-
-    .gitignore: Add m4 subdirectory created by libtool
-
-commit c569e5b3b314538f45d0b3b6f14ce3dbdfee1be9
-Author: Ludovic Rousseau <rousseau@debian.org>
-Date:   Mon Nov 15 14:45:50 2010 +0100
-
-    Linux: Do not include useless pthread.h
-    
-    The code does not use threads so no need to #include <pthread.h>
-    Fixes #74.
-
-commit 82af9f9d440ef49015652c699157cf62020f097a
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Tue Mar 8 17:41:05 2011 +0000
-
-    Windows: minor code improvements
-    
-    * mostly warnings from VS2010's Intellisense
-
-commit 7e636dbe06001b9ac68e452a2fdc05e33fbb4e3a
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Tue Mar 8 17:40:39 2011 +0000
-
-    Windows: prevent set_configuration request from being sent using WinUSB
-    
-    * multiple WinUSB set configuration requests can stall a device and
-      WinUSB does not support setting of alt configuration in the first place
-    * issue reported and investigated by Xiaofan Chen
-
-commit 578c50c99646e5ebbcfbea653524a519b843ebcd
-Author: Graeme Gill <graeme@argyllcms.com>
-Date:   Tue Mar 8 17:39:16 2011 +0000
-
-    Windows: fixed default WinUSB timeout and ineffective policy settings
-    
-    * default WinUSB timeout was 5 seconds, which may be to small.
-      PIPE_TRANSFER_TIMEOUT policy is now set to infinite for all EPs.
-    * other WinUSB policy settings were called before the endpoints
-      had been set. This is now fixed.
-
-commit 25fa63ea1cfe02e784cb62d3b869fd15e62b5b6e
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Tue Mar 8 17:37:40 2011 +0000
-
-    Windows: Don't leak pipe fds
-    
-    use _open() and _close() rather than _open_osfhandle() and CloseHandle()
-    
-    * use of CloseHandle() prevented the pipe fds from being
-      relinquished on libusb_exit()
-    * leaked fds could lead to the OS running out of new fds
-      and LIBUSB_ERROR_NO_MEM being returned as a result
-    * using _open() avoids _open_osfhandle() redef for cygwin
-    * issue reported by Stephano Antonelli
-
-commit 3ccd9bddec316ee4b867959fd7f616eb4d410997
-Author: Peter Stuge <peter@stuge.se>
-Date:   Tue May 10 10:05:29 2011 +0200
-
-    Windows: enumeration overhaul
-    
-    * uses multiple passes in a single call
-    * uses a hash table, in anticipation for hotplug
-    * adds a (dummy) HUB interface for harmonization
-    * adds calloc on device struct creation in core
-      (to detect and avoid unnecessary double initialization)
-
-commit bb108cbe39802785d10fe025b74ca5ee19734151
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Tue May 10 00:56:18 2011 +0100
-
-    Windows: MS project files part 4 - MSVC6 project files
-    
-    Fixes #57 and #1.
-
-commit 78896ae99b9c2d5672fc93c5bad0f5e8e75c53ea
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Tue May 10 00:53:09 2011 +0100
-
-    Windows: MS project files part 3 - VS2005 project files
-    
-    References #57.
-
-commit 9e5f4277e379a82f5d32e81db1bd0ffaa6637596
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Tue May 10 00:38:49 2011 +0100
-
-    Windows: MS project files part 2 - WDK project files
-    
-    References #57.
-
-commit c1e75431418cdfc10ec963d823fce479cdae6840
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Tue May 10 00:38:12 2011 +0100
-
-    Windows: MS project files part 1 - support files & preliminaries
-    
-    * adds the MSVC support files used by MSVC6, VS2005 and WDK
-    * also adds missing defines required by MS compilers in libusb.h
-    * also anticipatory sets .gitattributes for CRLF handling
-    * also adds manually maintained .def file for import lib generation
-    
-    References #57.
-
-commit 85a14f43e0ce27cd47f84fdaeacbaa81cebdb886
-Author: Peter Stuge <peter@stuge.se>
-Date:   Mon May 9 08:12:24 2011 +0200
-
-    Move library version number from configure.ac to libusb/version.h
-    
-    This is neccessary to support native MS builds. The Windows resource
-    file libusb/libusb-1.0.rc must include the release version, which was
-    previously only available after configure had run and had substituted
-    the numbers into a generated libusb/libusb-1.0.rc file.
-    
-    The version atoms are now stored as CPP style #defines in libusb/version.h
-    so that the .rc no longer needs to be generated but can simply include the
-    header file and access the version information directly.
-    
-    The m4 macro LU_DEFINE_VERSION_ATOM() was added to configure.ac to get
-    version atoms from libusb/version.h for use in AC_INIT(). The macro
-    handles C and C++ style comments in version.h, but can easily be made
-    to fail by obscuring the file. Please don't do that.
-    
-    Tested with MinGW using autoconf, and manual compile of libusb-1.0.rc
-    using RC.EXE Version 5.2.3690.0 from Visual C++ 2005 Express Edition.
-
-commit 3481f52b014110f6c291e5a15e79ba774dcdfacf
-Author: Peter Stuge <peter@stuge.se>
-Date:   Tue May 10 08:36:32 2011 +0200
-
-    Windows: Debug builds create the same .dll file name as non-debug
-    
-    Thanks to Pete for pointing this out!
-
-commit 9da8cf5c9ed9bd381a77d8170fc0556edbcce4dc
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Tue Mar 8 17:18:48 2011 +0000
-
-    Windows: explicit use of ANSI or WideChar calls
-    
-    * This is in anticipation of adding MSVC project files
-      that use Unicode rather than MBCS
-
-commit ae675c1f49dc00b695fce7296903f60998cc28ed
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Tue Mar 8 17:16:23 2011 +0000
-
-    Windows: Remove SetupAPI, AdvAPI32 and OLE32 link-time dependencies
-    
-    * this ensures that libusb dependent applications only need
-      to explicitly link against libusb on Windows
-    
-    The run-time dependency on Cfgmgr32.dll, OLE32.dll and SetupAPI.dll remains.
-
-commit 356e312511e4892977636da52ec497ad2c716032
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Tue Mar 8 17:12:33 2011 +0000
-
-    Add .gitattributes to avoid Windows line ending issues with autocrlf
-
-commit 61c120f025f3dee04eeb88159d7c0403a8bf91fe
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sun Feb 27 09:37:54 2011 +0100
-
-    Windows: Touch up FileDescription and ProductName resource strings
-
-commit 99b4ddcd893834a4be8b5884037b650e57ba0ba2
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sun Feb 27 07:20:40 2011 +0100
-
-    Windows: Remove emulated direct device access via HID API
-    
-    Either use a library such as HIDAPI to communicate with HID class
-    devices, or replace the kernel driver for the device with one that
-    offers support for the complete libusb API.
-
-commit 4be84ab49c838d534d3a1b8a64ffa89774984ee7
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sun Feb 27 06:59:15 2011 +0100
-
-    Revert libusb_strerror() until we have i18n and l10n
-
-commit 0e177f22fcc69d9aab6fb410e85f3413f478c94c
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Wed Jan 19 14:00:12 2011 +0000
-
-    dpfp_threaded: return instead of pthread_exit() to avoid Cygwin warning
-
-commit e65878f21b0a0bb96debcb292dc03ce3c4ebb701
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Wed Jan 19 13:52:08 2011 +0000
-
-    Windows: Rename various variables named "index" to avoid shadow warnings
-
-commit 019bf73bb2677dc7720bc8280527316adcbaa506
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Tue Oct 5 12:50:53 2010 +0100
-
-    Windows: Fix logic in enumeration of driver name and port number
-
-commit 24494ed5db27737fc607fc35dda722521c9fe4d4
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Tue Oct 5 12:50:13 2010 +0100
-
-    Windows: Allow claiming any interface in composite device using WinUSB
-    
-    Issue reported by Benjamin Dobell, see #48. The call to
-    WinUsb_QueryInterfaceSettings() is removed since it doesn't work
-    on any other interface but the first (a WinUSB limitation).
-    
-    This allows the use of WinUSB.sys in lieu of the usbccgp.sys
-    "USB Generic Parent" default driver for composite devices.
-
-commit 9c8e6545f2fbb171f81a9451eaf2d09e1fbc13b3
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Tue Oct 5 12:47:15 2010 +0100
-
-    Windows: Allow arbitrary bConfigurationValue in config descriptors
-    
-    Unlike bInterfaceNumber, bConfigurationValue does not have to be
-    either sequential or contiguous. The bConfigurationValue is now
-    included in debug output. Fixes #48 reported by Benjamin Dobell.
-
-commit dcd002974e511879320233fd5b0600e06bdc5620
-Author: Thomas Röfer <Thomas.Roefer@dfki.de>
-Date:   Fri Nov 19 22:03:11 2010 +0100
-
-    Darwin: Schedule isochronous transfers further in the future
-    
-    This is required to make OpenKinect transfer data at 30 fps. This
-    change was originally made by Theo Watson, and Thomas improved on it.
-    The commit came via OpenKinect into libusb thanks to Kyle Machulis and
-    Hector Martin. Fixes #66.
-
-commit e83fad33dbaf9f37811da6d4cd9d3be554817944
-Author: Thomas Röfer <Thomas.Roefer@dfki.de>
-Date:   Fri Nov 19 22:03:11 2010 +0100
-
-    Darwin: Fix #65 memory leak in submit_iso_transfer()
-    
-    This was also independently fixed by Hoi-Ho Chan, but Thomas caught
-    an additional problem with his fix.
-    
-    This commit came via OpenKinect into libusb thanks to Kyle Machulis
-    and Hector Martin.
-
-commit 1a2d21fe42ad5a157651c787e2f500fc162c325b
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sat Feb 26 04:21:05 2011 +0100
-
-    configure.ac: Refactor Windows backend settings into one occurence
-    
-    The Windows backend is used both with MinGW and Cygwin, and since most
-    settings are identical they can be set in one place.
-
-commit 717f47621d18de16b87e237f3740299f43e4ca1c
-Author: Peter Stuge <peter@stuge.se>
-Date:   Mon Nov 15 19:58:51 2010 +0100
-
-    configure.ac: Rename AM_LDFLAGS to LTLDFLAGS and actually use them
-    
-    The new variable name tries to clarify that libtool is being used.
-    Linker flags must thus always be specified with -Wl.
-    
-    Factor out the libtool flag -no-undefined from host specific cases.
-    The flag is required to build a Windows DLL, but is correct also for
-    the other supported systems.
-    
-    Also, start actually using LTLDFLAGS in libusb/Makefile.am, so that
-    libtool will see the options set by configure.
-
-commit 3cbe5736469c1c52049752c137ae11387e9b079d
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sun Nov 21 23:38:46 2010 +0100
-
-    configure.ac: Clean up PC_LIBS_PRIVATE and AM_LDFLAGS
-    
-    Move linker options for when linking the library itself from
-    PC_LIBS_PRIVATE into AM_LDFLAGS. PC_LIBS_PRIVATE should only
-    contain flags needed to link applications statically against libusb.
-    Fixes #72.
-
-commit ef39d1510580b9fcbacf13443fa7a4e553a9a88e
-Author: Peter Stuge <peter@stuge.se>
-Date:   Fri Feb 25 02:33:29 2011 +0100
-
-    configure.ac: Call AC_CONFIG_FILES() for each output file
-    
-    This avoids a problem with Windows line endings.
-
-commit 6e52ea067711e6e7e1b2882757fb61b11b6f8feb
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sun Nov 21 23:37:27 2010 +0100
-
-    configure.ac: Whitespace changes and trivial reordering
-
-commit 44b85dabc3f4efe0918a598f981675aa3765cc26
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sun Nov 21 23:10:35 2010 +0100
-
-    configure.ac: Quote AC_COMPILE_IFELSE() input
-
-commit 19d5882c398e49a453ff78494db23b7f4d13c37c
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sun Nov 21 23:09:02 2010 +0100
-
-    configure.ac: Define booleans to 1 when set, instead of an empty string
-    
-    This makes the generated config.h look a lot nicer.
-
-commit c24649d796c8b5c97af79a41856422def2e593bc
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sat Oct 30 22:28:59 2010 +0200
-
-    configure.ac: Clean up redundancy and fix LIBS on Linux
-    
-    LIBS, AM_LDFLAGS, OS_ conditionals and THREADS_POSIX had a bit of
-    redundancy throughout the file, and on Linux LIBS ended up missing
-    the -pthread flag.
-
-commit 0bd4a4dd89ff64b99ab55bfc0c5782502c10c676
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sat Feb 26 04:08:38 2011 +0100
-
-    configure.ac: Touch up Darwin and Cygwin OS messages
-
-commit 16cf11a1213272afd616598fa3aba0941e66ec3c
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sat Oct 30 22:13:05 2010 +0200
-
-    configure.ac: Do not use -pthread on Darwin
-    
-    It's not needed because Darwin has POSIX Threads in libc. Fixes #96.
-
-commit a120747d561929682cd0276ea4c13fb22fad8554
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sat Oct 30 22:07:37 2010 +0200
-
-    configure.ac: Check for poll.h, and for nfds_t on Darwin
-    
-    On Linux, assume nfds_t is always available.
-    
-    On Darwin, fall back to unsigned int when poll() exists but there
-    is no nfds_t, such as on Mac OS X before 10.4.
-    
-    On Windows (both MinGW and Cygwin), always use unsigned int instead
-    of nfds_t, and don't check for poll.h because we use our own poll()
-    implementation.
-
-commit 21d03d12f92c0d9bd7990861ca0ebf5009f82799
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Tue Oct 5 20:08:08 2010 -0600
-
-    Darwin: Add support for control requests on endpoints other than 0
-    
-    Signed-off-by: Nathan Hjelm <hjelmn@me.com>
-
-commit 9bfacd760b40f1137a7835198c6028cbdaddeb18
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Tue Oct 5 23:11:50 2010 -0600
-
-    Darwin: Add more error checking for libusb_open()
-    
-    Now also check the CreateDeviceAsyncEventSource() return code for errors.
-    
-    Signed-off-by: Nathan Hjelm <hjelmn@me.com>
-
-commit 478cd4a30728595fd742aa192d8149ee4216d4bc
-Author: Peter Stuge <peter@stuge.se>
-Date:   Wed Nov 3 21:46:53 2010 +0100
-
-    Core: libusb_get_next_timeout() must consider all flying transfers
-    
-    If transfer->flags indicated that a transfer had a timeout, but no
-    timeout was actually set, then libusb_get_next_timeout() would look
-    no further for a timeout, ignoring any transfers later in the list
-    which had a timeout set.
-    
-    Since libusb has an internal 60 second timeout this bug could not
-    cause complete lockup, but it could cause a 60 second timeout even
-    when a transfer was submitted with a shorter timeout.
-
-commit 7802e4a3e38bcefccf96ae510ec2c6b7a959b8b5
-Author: Ludovic Rousseau <rousseau@debian.org>
-Date:   Mon Nov 15 14:55:51 2010 +0100
-
-    Linux: Correctly catch read() errors for sysfs config descriptors
-    
-    read(2) returns ssize_t (signed) and not size_t (unsigned) or int.
-    
-    Silence "warning: comparison of unsigned expression < 0 is always false"
-    and fix #75.
-
-commit 4c7f3c8c3012bddba058afd2abdda792944fcda1
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sun Jan 23 04:01:25 2011 +0100
-
-    Linux: Refactor cancellation into one function for all transfer types
-
-commit 011f1f297bc134188fab9960da1b1b9f0bd541aa
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sun Oct 17 08:19:56 2010 +0200
-
-    Linux: Refactor discarding of URBs into a function and return all errors
-    
-    The Linux backend did not always return errors according to the
-    libusb_cancel_transfer() documentation.
-
-commit 26246df19cb4d88954a5aa9ed5f6b859e451df85
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sun Jan 23 04:01:01 2011 +0100
-
-    Linux: Set private number of URBs also for control transfers
-
-commit 295c9d12e25bc2dbdd8b42bd67a1f7120f0631a1
-Author: Alan Stern <stern@rowland.harvard.edu>
-Date:   Sun Oct 17 06:57:06 2010 +0200
-
-    Linux: cancel URBs in reverse order
-    
-    In a multi-URB transfer, URBs should be cancelled in reverse order of
-    submission. This prevents races that might otherwise occur (after URB N
-    is cancelled, data may be transferred for URB N+1 before it too can be
-    cancelled). Fixes #8.
-
-commit 07df377a5df25e9c1811b554dc00eb8c40e5b995
-Author: Alan Stern <stern@rowland.harvard.edu>
-Date:   Sun Oct 17 04:17:32 2010 +0200
-
-    Linux: report correct value for urb->actual_length
-    
-    Transferred bytes are returned correctly by the kernel for every URB,
-    even when an error occurs.  Hence they should always be included in
-    the transfer statistics.  The same is true for isochronous packet
-    length and status.
-    
-    [stuge: set itransfer->transferred so data is stored at correct offset]
-
-commit b26db49208c7a6ef0a99645142af21ce80c57c22
-Author: Alan Stern <stern@rowland.harvard.edu>
-Date:   Fri Oct 22 11:13:34 2010 +0200
-
-    Linux: improve reporting of URB error status codes
-    
-    Fix the way overflow errors are handled (they can occur in any
-    transaction, not just the last one in a transfer) and add tests
-    for other commonly-occuring error statuses.
-
-commit efc29733ad31f81883a7ac51a6cc6cda9ad4feb9
-Author: Alan Stern <stern@rowland.harvard.edu>
-Date:   Tue Oct 5 11:08:40 2010 -0400
-
-    Linux: improve detection of BULK_CONTINUATION kernel support
-    
-    Clarify the comments describing the BULK_CONTINATION flag, and improve
-    the subroutine that checks whether the flag is supported by making it
-    "future-proof", i.e., by working properly with kernel version numbers
-    higher than 2.6.
-
-commit bd267cf92269e0c4cd8eef795b91eefb2c63452e
-Author: Peter Stuge <peter@stuge.se>
-Date:   Mon Nov 22 05:14:00 2010 +0100
-
-    README: Update webpage URL and add Peter's email address
-
-commit 845b715675703c5f1bc907f6302ece416c9f112c
-Author: Peter Stuge <peter@stuge.se>
-Date:   Wed Aug 4 07:30:22 2010 +0200
-
-    libusb is not just for Linux!
-
-commit 67d9ef7b6877e17f2deec81cd41dc0948f6bed4b
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Tue Oct 5 19:48:39 2010 -0600
-
-    Remove USBI_OS_HANDLES_TIMEOUT and fix int/isoc timeouts on Darwin
-    
-    Backends set USBI_TRANSFER_OS_HANDLES_TIMEOUT for transfers instead.
-    Darwin only handles timeouts for bulk and control transfers, so the
-    backend now sets that flag accordingly, making libusb core handle
-    timeouts for interrupt and isochronous transfers. Fixes #31.
-    
-    Signed-off-by: Nathan Hjelm <hjelmn@me.com>
-    
-    [stuge: rework libusb_get_next_timeout() and enum usbi_transfer_flags]
-    [stuge: fix typo; set USBI_TRANSFER_TIMED_OUT flag correctly]
-
-commit 370922dfbe0964c0b8a0c1974bb1d7b85ac10607
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sun Nov 14 03:14:00 2010 +0100
-
-    Silence "warning: suggest braces around empty body in an 'if' statement"
-
-commit 0f85015bdf87f3bca0d86ed87c9b976176640922
-Author: Konrad Rzepecki <hannibal@astral.lodz.pl>
-Date:   Sat Nov 13 14:09:22 2010 +0100
-
-    Disallow libusb_get_string_descriptor_ascii() with index 0
-    
-    String descriptor 0 is the list of supported language IDs in the device,
-    which can't have an ASCII representation. Calling the function with
-    index 0 is thus not really useful. Fixes #43.
-
-commit 3b41c31d3fa2c1f93649cc5fc0f59acbf3efd5a1
-Author: Ludovic Rousseau <rousseau@debian.org>
-Date:   Fri Mar 19 15:35:14 2010 +0100
-
-    Use const for the usbi_parse_descriptor() format string
-    
-    Constant strings should be "const char *" instead of "char *". Silence
-    "discards qualifiers from pointer target type" warnings. Fixes #61.
-
-commit 7f2e9f0776386997d2b4c4c47598ab88e3caeb7a
-Author: Hector Martin <hector@marcansoft.com>
-Date:   Wed Aug 25 03:21:57 2010 +0200
-
-    Linux: Fix usbfs/sysfs config descriptor handling on big-endian
-    
-    usbfs endian-swaps, sysfs doesn't, not the other way around. Fixes #51;
-    descriptor endian parsing is backwards using sysfs on big-endian hosts.
-    usbfs is untested.
-    
-    Signed-off-by: Hector Martin <hector@marcansoft.com>
-    
-    [stuge: checked against Documentation/usb/proc_usb_info.txt]
-
-commit 2aa8984e59cf0f492e7fbebb8924f54f6160cc5e
-Author: Ludovic Rousseau <rousseau@debian.org>
-Date:   Tue Aug 17 20:53:04 2010 +0200
-
-    examples: #include <libusb.h> without directory name
-    
-    The libusb-1.0 directory name belongs in the compile command, e.g.
-    via pkg-config --cflags. Fixes #58.
-
-commit 7da756e09fd97efad2b35b5cee0e2b2550aac2cb
-Author: Ludovic Rousseau <rousseau@debian.org>
-Date:   Thu Jun 24 10:14:24 2010 +0200
-
-    Add missing argument to libusb_wait_for_event() documentation, fix #55
-    
-    In the libusb_wait_for_event() sample code in the section "Letting other
-    threads do the work for you" the call to libusb_wait_for_event() was not
-    updated by commit 1df713d622ab4f0b03aad72d903ac7beb8fb3b90, which added
-    the libusb_context *ctx parameter to the function, so the sample code
-    was broken until now.
-
-commit 678c242705b29f9cb6cc421b5625a6485ae58047
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sat Oct 16 14:22:30 2010 +0200
-
-    examples: Silence warnings about return value of fwrite()
-
-commit 9cd9059bf9baac69a9d6c909f4c1e000592fa260
-Author: Peter Stuge <peter@stuge.se>
-Date:   Sat Oct 16 11:47:14 2010 +0200
-
-    Linux: Don't free() URBs prematurely on hardware error; fix #54
-    
-    When an URB in a multi-URB transfer had an error, handle_bulk_completion()
-    would free all URBs and segfault once the next one completed, instead of
-    cancelling the remaining URBs and cleaning up as usual.
-    
-    This is basically the patch from the ticket, plus some restructuring
-    for increased readability of the function.
-    
-    Many thanks to Brian Shirley and National Instruments for finding and
-    fixing this!
-
-commit 116d34f608b02f4e14668450b158acf5db726f95
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Tue Oct 5 12:43:41 2010 +0100
-
-    Windows: add support for filter drivers
-    
-    * precedence is driver > upper filter > lower filter, and defined
-      in struct driver_lookup lookup from set_device_paths()
-
-commit eb833fcd837e3aac2e497438b14c8612254c28ce
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Tue Oct 5 12:36:49 2010 +0100
-
-    Windows: fix errcode shadow warning, and string and DLL_DECLARE fixes
-    
-    * use FormatMessageA, and overall improvement of windows_error_str()
-    * use safe_strlen() always
-    * better typing/init default
-    * more explicit debug message for devices with no driver
-
-commit 1feadb5f78e1d2cdfd2aaf0011e041c2848bae37
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Tue Oct 5 12:29:32 2010 +0100
-
-    Windows: use IOCTLs for HID input, output and feature reports
-    
-    * fixes feature reports not providing actual read size
-      (reported by Axel Rohde http://marc.info/?m=127033070021994)
-    * removes the USE_HIDD_FOR_REPORTS macro
-    * IOCTL usage inspired from HIDAPI by Alan Ott
-
-commit d7c25451f4075d2a12eb5cbc91ff3de8c0292da0
-Author: Daniel Drake <dan@reactivated.net>
-Date:   Mon Oct 4 20:03:58 2010 +0100
-
-    Fix libtool version setting
-    
-    This was being set too early to take effect.
-
-commit a6fb54e2eef4e393bd06829bc3bdc746ea9d41a6
-Author: Mike Frysinger <vapier@gentoo.org>
-Date:   Mon Oct 4 20:01:07 2010 +0100
-
-    Populate the pkg-config Libs.private field
-
-commit a9b4065f048e750b7317f6434406fd528b69bf33
-Author: Mike Frysinger <vapier@gentoo.org>
-Date:   Fri Aug 20 00:09:46 2010 -0400
-
-    Linux: fix build failure when CLOCK_MONOTONIC does not exist
-    
-    This is not available on all platforms.
-
-commit d192c5bd32736fde0080d756de6221287af34891
-Author: Daniel Drake <dan@reactivated.net>
-Date:   Mon Oct 4 18:45:18 2010 +0100
-
-    Update libtool version info
-    
-    With input from various people on the mailing list, update the libtool
-    versioning info and start to update this on every release.
-    
-    The next libusb release will not need a change here. All following ones
-    will.
-
-commit e65f69a7ef3de357c867ddaac9598efe407078b6
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Thu Aug 5 16:40:09 2010 +0100
-
-    Updated documentation for unsupported Darwin/Windows calls
-
-commit c8bab4e19413d70c515a2eaf747a75b7f66fdc0b
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Sun Sep 19 14:24:25 2010 +0100
-
-    Windows: Make libusb_pollfd() return error
-    
-    Windows does not have numerical file descriptors but does have the
-    concept of event sources. Exposing these event sources will require
-    some careful thought and design, to be completed later.
-
-commit bd623f70d99fad8b975f8d4ee62ea4b1abf1272f
-Author: Daniel Drake <dan@reactivated.net>
-Date:   Sun Sep 19 14:21:01 2010 +0100
-
-    MinGW: Use --add-stdcall-alias linker option
-    
-    Naming of symbols inside the library is inconsistent on Windows:
-    http://wyw.dcweb.cn/stdcall.htm
-    
-    Use this linker option to add aliases which add compatibility with
-    the "MSVC DLL" platform when a DEF file is used. It also better matches
-    the appearance of the Windows API itself.
-
-commit 29f9f9e3af3340df6a955881a93caf9d2a6d08d6
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Fri Aug 13 11:59:49 2010 +0100
-
-    Introduced calling convention (for Windows)
-    
-    Under Windows, a variety of compilers and configurations are available,
-    meaning that the manner of parameter passing (e.g. registers vs stack)
-    can vary.
-    
-    Match the Windows API calling convention and document this appropriately.
-    This calling convention will be used regardless of the configuration of
-    the user's development platform.
-    
-    The only user-level complication is that all functions used as libusb
-    callbacks must use the same calling convention as libusb. The
-    LIBUSB_CALL macro is provided to make this easy.
-    
-    Signed-off-by: Michael Plante <michael.plante@gmail.com>
-    Signed-off-by: Pete Batard <pbatard@gmail.com>
-    [dsd: slight change of strategy, add documentation]
-
-commit be523f1fe7c136c3fca06ae9c96aff44a22482ba
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Fri Aug 6 21:56:04 2010 -0600
-
-    Windows: fix string copy in sanitize_path
-    
-    The NULL byte was not being copied.
-
-commit 7fd36af9f749ce8bf96f89cefd519a9f46825573
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Fri Jul 30 00:30:31 2010 +0100
-
-    Windows: DuplicateHandle failure is not a warning
-    
-    This is because WinUSB handles are not duplicable, and generate a
-    lot of these warnings.
-
-commit 33cd2f68b4d500e852e354e5acae3d9a96a8ec26
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Fri Jul 30 00:23:05 2010 +0100
-
-    removed trailing whitespaces
-
-commit e47849afe9381c864683220eac9ce7bcf43f7883
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Wed Aug 4 18:18:32 2010 -0600
-
-    Windows: Mark interfaces as unused when releasing
-    
-    Without this important cleanup, the autoclaim code could attempt to
-    reuse an unclaimed interface as if it were already claimed.
-
-commit b30ca141a0bdce26e7cfdd91d346e49051532ee7
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Wed Aug 4 18:15:59 2010 -0600
-
-    Windows: fix device path string duplication
-
-commit e8d7a89503d5655c4b04da718c6971e25ff48162
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Mon Aug 2 21:27:38 2010 -0600
-
-    Darwin: Cache device configuration value
-    
-    Cache device configuration value to bring the Darwin backend more in
-    line with the libusb spec. To handle buggy devices GetConfiguration is
-    not called unless the device has more than one configuration.
-
-commit fe5d1d2050f715ffa8cbd35a378ac969a1a01584
-Author: Xiaofan Chen <xiaofanc@gmail.com>
-Date:   Fri Jul 30 15:56:43 2010 +0100
-
-    Fix inconsistencies between prototypes and definitions
-    
-    This removes some warnings on cygwin regarding a name clash against
-    the standard library "index" function.
-
-commit 3b538c43e11b805a37d93b6283d270d5d5f0d1f5
-Author: Hoi-Ho Chan <hoiho.chan@gmail.com>
-Date:   Tue Jul 27 21:04:17 2010 -0600
-
-    Darwin: handle kIOReturnUnderrun
-    
-    This return code indicates that the device returned a data packet
-    less than the max packet size. In libusb backend terms, this is
-    a successful transfer.
-
-commit 9a4249f8a104b98a15a7e3ba7ecae9a385ed9027
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Sat Jul 10 17:51:13 2010 -0600
-
-    Add Windows support
-    
-    Via Cygwin/MinGW, libusb now has windows support.
-    Thanks to contributors: Michael Plante, Orin Eman, Peter Stuge,
-    Stephan Meyer, Xiaofan Chen.
-
-commit d38dd5e3d2a872f7064eea084ddea8c33811dd7d
-Author: Hoi-Ho Chan <hoiho.chan@gmail.com>
-Date:   Sat Jul 24 13:48:00 2010 -0600
-
-    Darwin: write iso transfer details into correct packets
-
-commit fbff5b4b665ff2ebc948162617cf7f4f5d2fabeb
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Sat Jul 24 13:42:57 2010 -0600
-
-    Darwin: fix interface object leak
-
-commit dffc09835d6860ae9b6a62c39af5be346188cb05
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Sat Jul 24 13:41:03 2010 -0600
-
-    Darwin: clean up some debug messages
-
-commit 946d1abbca397b8e88a1b0b4df176dcc5e3b7348
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Sat Jul 24 13:39:16 2010 -0600
-
-    Darwin: Don't open devices during scan unless we have to unsuspend
-
-commit 3b6d9ac82e2599cad7817d21e909a42275ddc4c4
-Author: Peter Stuge <peter@stuge.se>
-Date:   Fri Jun 25 08:08:13 2010 +0200
-
-    Linux: Handle early complete of multi-URB transfer
-
-commit a516fcb99376686d2d0028e5ac69950c57a55b9e
-Author: Daniel Drake <dan@reactivated.net>
-Date:   Wed Jul 21 17:49:21 2010 -0600
-
-    Only compile dpfp examples when sigaction is available
-    
-    It's not available on MinGW.
-
-commit a1d831ef82e1700f4ebb9df6ca5cef74be757c08
-Author: Aurelien Jarno <aurelien@aurel32.net>
-Date:   Tue May 25 09:32:19 2010 +0200
-
-    configure.ac: fix bashisms
-
-commit 7211aba6e290f9805e911959b2a43a4b3ec56d4f
-Author: Daniel Drake <dan@reactivated.net>
-Date:   Fri Jun 25 12:01:58 2010 -0500
-
-    Only include sys/time.h on appropriate platforms
-    
-    This header doesn't exist on windows.
-    For libusb, determine at configure-time if the header is available.
-    For libusb.h, use gcc predefined macros to only include the header
-    on platforms that need it.
-
-commit b33c3cb9651459de1f3d549677cbac67a017a295
-Author: Daniel Drake <dan@reactivated.net>
-Date:   Tue Jun 22 18:45:38 2010 -0500
-
-    Linux: Fix log message commit
-    
-    Forgot to test this.
-
-commit 139648d5723190734a51c1c66ddf41c3e87adf10
-Author: Ludovic Rousseau <rousseau@debian.org>
-Date:   Mon Jun 21 10:19:29 2010 +0200
-
-    Only initialize the default context when it is requested
-
-commit 22d61cd0891d8304dfc1a70579cf154fd8e6644a
-Author: Daniel Drake <dan@reactivated.net>
-Date:   Tue Jun 22 18:20:23 2010 -0500
-
-    Linux: fix log message that was being unconditionally sent to stderr (#44)
-    
-    This message was put in place to aid libusb-compat-0.1 users, who
-    may run into the change that libusb-0.1 allowed you to usb_open() a
-    device that you don't have write access to, but libusb-1.0 does not.
-    
-    As explained on the ticket this change is dangerous so it should go through
-    the usual logging mechanism. I also added a similar regular log message
-    to libusb-compat-0.1.
-
-commit 82065a2c5e9d5ad0b2bb28792d12462f2fa150f0
-Author: Ludovic Rousseau <rousseau@debian.org>
-Date:   Thu Jun 10 18:41:27 2010 +0200
-
-    Fix 2 documentation typos
-
-commit 351c062aacdde0b0fa7972ee9b7c6b355dcee110
-Author: Ludovic Rousseau <rousseau@debian.org>
-Date:   Wed Apr 21 16:49:33 2010 +0200
-
-    add AM_MAINTAINER_MODE
-
-commit a7c056c14867e1cc3ef83682f2706cdbdca7c4ce
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Thu Jun 10 17:00:25 2010 -0500
-
-    Factorize event handler interruption code
-    
-    This will be additionally used by the windows backend which modifies
-    the fd set frequently.
-
-commit fc0af8e3f76925ad09e0fbc6d233d500753ee375
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Sat Jun 5 12:14:19 2010 -0500
-
-    Abstract low-level event handler operations
-    
-    The Windows backend uses something other than UNIX file descriptors
-    for event handling. Abstract out the operations to allow for this.
-
-commit 64383fb5b55a74b706967836e81cef61e57df86a
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Tue Jun 1 11:38:14 2010 +0100
-
-    fixes the possibility of using a broken timercmp on Windows
-    
-    Microsoft's implementation of timercmp does not work for >= or <=.
-
-commit f6d60a9a8fcf06629812da886e3a5de592624b61
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Mon Feb 1 19:26:13 2010 +0000
-
-    Switched to standard int pointer type for windows 64-bit compat
-    
-    On 64-bit Windows a pointer is 64 bit, but long is still 32 bit for
-    backwards compatibility.
-    uintptr_t nicely hides this difference and also works on Linux.
-    
-    [dsd: add appropriate include]
-
-commit a2fa855ce3795e31905b255267874af0603168bc
-Author: Michael Plante <michael.plante@gmail.com>
-Date:   Tue Mar 9 16:39:46 2010 -0600
-
-    added doxygen, dpfp, msvc, and xusb stuff to gitignore
-
-commit 845d96a9c30b6f053208ed6b5b5d4ad1655e2026
-Author: Daniel Drake <dan@reactivated.net>
-Date:   Mon May 31 19:56:34 2010 -0500
-
-    Add reference counting to default context
-    
-    Michael Plante pointed out that if 2 users call libusb_init(NULL) within
-    a process, we end up creating 2 default contexts, one of which is lost.
-    
-    Add reference counting so that the default context is reused and
-    destroyed only after the last user.
-
-commit 0e77f017fd3d1bdec4aced0429a380d3e434081b
-Author: Daniel Drake <dan@reactivated.net>
-Date:   Thu May 27 19:24:49 2010 -0400
-
-    Fix libusb_init() error handling
-    
-    9996ccaed7 introduced a problem in that mutexes could be destroyed
-    in the error handling codepath before they had been created.
-    Pointed out by Michael Plante.
-
-commit b03de9d07bf9a6b0c4e6cba9ec06b5271a22e621
-Author: Michael Plante <michael.plante@gmail.com>
-Date:   Mon May 24 11:57:10 2010 -0300
-
-    Modify log functions to compile with MSVC6
-    
-    MSVC6 does not support variadics.
-
-commit aa77b02da65afb0332b9e6853dae9e4dcda00bfa
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Sun Feb 14 19:46:05 2010 -0600
-
-    Add type parameter to the list_for_each_entry() and _safe() macros
-    
-    typeof() is a GCC extension, not supported by target compilers such
-    as MSVC.
-
-commit b92b16f437079208c8dfb1dc2380893846a07ee9
-Author: Daniel Drake <dan@reactivated.net>
-Date:   Wed May 19 17:37:29 2010 -0300
-
-    Fix a usbi_pollfd leak in error path
-    
-    I accidently missed this when applying Pete Batard's earlier patch.
-    Pointed out by Michael Plante.
-
-commit 8aceb5c99056aaed6e6f2db1b303817e37e9fe8c
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Sun Feb 14 19:47:30 2010 -0600
-
-    Rename all interface parameters to usb_interface or interface_number
-    
-    Remove the use of the ambiguous "interface" where possible without
-    breaking the API.
-    'interface' is a preprocessor #define already associated with COM on Windows,
-    that can cause a conflict as soon as windows.h is included.
-    
-    There are a few more places where interface is still used, which should
-    be changed for libusb-2.0
-
-commit d7031ee8e1c449af23b2674fe18d9fc652c9bd80
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Mon May 17 19:30:27 2010 -0300
-
-    Stricter types and casts
-
-commit 9996ccaed740f8fcec4287a478ccaaa573f9865a
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Mon May 17 19:16:54 2010 -0300
-
-    Fixes to error handling and exit codepaths
-    
-    Various locks and things were being leaked/left open when handling
-    errors and during deinitialization.
-    
-    [dsd: small tweaks]
-
-commit 371ca4e440894bd1c845971418aa24c9d3919e63
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Thu May 13 19:38:05 2010 -0300
-
-    Darwin: Define IO_OBJECT_NULL if not already defined
-    
-    Needed on Mac OSX 10.3
-
-commit 7ba92cff94bbba19284749c614c26141d3023f37
-Author: Hans Ulrich Niedermann <hun@n-dimensional.de>
-Date:   Fri Jan 29 12:08:52 2010 +0100
-
-    libusb_cpu_to_le16: macro->static inline function
-    
-    The libusb_cpu_to_le16 macro was a ({ ... }) expression, which
-    generates the following compiler warning every time it is used,
-    (and that is several times for every #include <libusb.h>):
-    
-    libusb.h:880: warning: ISO C forbids braced-groups within expressions
-    
-    With this patch, #include <libusb.h> stops generating compiler
-    warnings on gcc 4.4.
-    
-    As libusb.h heavily relies on the use of static inline functions
-    those can be relied on to work properly, and there should not be
-    any significant difference in the code the compiler generates.
-
-commit 3473ac6c6fab32202d02d87679ebdb24e7d2df98
-Author: Francesco <francesco.montorsi@gmail.com>
-Date:   Tue Mar 9 16:35:35 2010 -0600
-
-    Add libusb_strerror() to get short error message in English from enum
-    
-    [dsd: small tweaks]
-
-commit 5b69f3b7b0610d5f518954792ddc93332a41d292
-Author: Michael Plante <michael.plante@gmail.com>
-Date:   Thu Feb 25 19:39:22 2010 -0600
-
-    Fix libusb_device::lock memory leak
-
-commit a636df4ca1b87ed3094a87828c022092a80ba613
-Author: Pete Batard <pbatard@gmail.com>
-Date:   Wed May 12 21:46:31 2010 -0300
-
-    Whitespace cleanup
-
-commit 23b5db8b3e353176dfa0635bfb6f0e2658f6e3de
-Author: Peter Stuge <peter@stuge.se>
-Date:   Tue May 11 00:51:43 2010 +0100
-
-    Add internal abstraction for POSIX Threads
-    
-    This prepares for a Windows backend without dependency on pthreads-w32.
-    
-    pthread_* is renamed to usbi_* and PTHREAD_* to USBI_*.
-    
-    A usbi_mutex_static_t and usbi_mutex_static_lock() and _unlock() are
-    introduced for statically initialized mutexes, since they may be
-    implemented using other types when pthreads mutexes aren't used.
-    
-    Move -pthread from libusb/Makefile.am to host-specific THREAD_CFLAGS in
-    configure.ac. This will enable optional use of -lpthread for cygwin.
-    
-    [dsd: minor tweaks, and roll in a change based on patches from Pete
-    Batard to only build dpfp_threaded example when we're using pthreads]
-
-commit a04cbb0095a78aeed3f65aaf06c46069d0ac184a
-Author: Daniel Drake <dan@reactivated.net>
-Date:   Tue May 4 19:01:59 2010 -0300
-
-    v1.0.8 release
-
-commit 53b47299531974fa8901b74a163f3c8ebae4eec9
-Author: Daniel Drake <dan@reactivated.net>
-Date:   Thu Apr 22 18:12:51 2010 -0300
-
-    Linux: don't set SHORT_NOT_OK on bulk out URBs (#20
-    
-    Setting this flag is illegal, and the behaviour we're looking for
-    is already in place for host-to-device transfers without this flag.
-
-commit 1519828b7ee1fce46d4c51fc097d52e01b8e0bb4
-Author: Daniel Drake <dan@reactivated.net>
-Date:   Tue Apr 20 20:14:09 2010 -0300
-
-    Linux: Handle failure to read active configuration during enumeration
-
-commit 45168627cc15aee3875192f34286110dbbd27095
-Author: Nathan Hjelm <hjelmn@me.com>
-Date:   Tue Apr 20 19:43:06 2010 -0300
-
-    Darwin: don't reuse cached descriptors during enumeration
-    
-    Descriptor reuse was causing scans to return invalid information when
-    the device at a location has changed.
-
-commit 3af329db6dcbfb96d24867c757f9e125e5b7b0e5
-Author: Daniel Drake <dan@reactivated.net>
-Date:   Mon Apr 19 19:36:55 2010 -0300
-
-    v1.0.7 release
-
-commit ceb8cacd6d2a4189de0db2ee46d45217511c69be
-Author: Daniel Drake <dan@reactivated.net>
-Date:   Mon Apr 19 19:31:12 2010 -0300
-
-    Document that fd set contents are an internal implementation detail (#36)
-
-commit 9bea500b5747bdeba7c8251d45608558e71a1db5
-Author: Martin Koegler <mkoegler@auto.tuwien.ac.at>
-Date:   Mon Apr 19 19:22:46 2010 -0300
-
-    Linux: correct config descriptor endianness fix
-    
-    The seek_to_next_config codepath deals with both sysfs and usbfs;
-    make sure we only convert values in the usbfs path.
-
-commit 02df59a309e813c50b8230de99e69fb4e1814279
-Author: Martin Koegler <mkoegler@auto.tuwien.ac.at>
-Date:   Mon Apr 5 17:11:32 2010 +0200
-
-    Linux: Fix endianness handling of usbfs config descriptors (#27)
-    
-    driver/usb/core/devio.c function usbdev_read translate the follwing files
-    to CPU endianess:
-    
-    le16_to_cpus(&temp_desc.bcdUSB);
-    le16_to_cpus(&temp_desc.idVendor);
-    le16_to_cpus(&temp_desc.idProduct);
-    le16_to_cpus(&temp_desc.bcdDevice);
-    
-    All other data is passed without any change.
-    
-    libusb/os/linux_usbfs.c calls usbi_parse_descriptor with host_endian=1
-    for config descriptors. According to the kernel code, they must be
-    processed with host_endian=0, as they are not translated by the kernel.
-    
-    Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
-
-commit ec303b01a5d4e51c000a283853af65059fa62285
-Author: Nathan Hjelm <hjelmn@mac.com>
-Date:   Tue Mar 23 16:22:08 2010 -0600
-
-    Darwin: fix enumeration of devices with non-consecutive addresses (#23)
-
-commit cd809e2f7cee3874b7ae16b2c482a8b63a90e4a5
-Author: Bastien Nocera <hadess@hadess.net>
-Date:   Mon Mar 8 10:50:51 2010 +0000
-
-    Add more interface classes
-    
-    As used in bluez.
-
-commit 1ce4aa67d849f5cad8a21072dc1c7b42158ce817
-Author: Nathan Hjelm <hjelmn@mac.com>
-Date:   Thu Mar 18 11:32:32 2010 -0600
-
-    Darwin: Cleanup async callback code, catch request timeouts
-
-commit 68af9f8d731f700267335941a8214d34ab518cc8
-Author: Nathan Hjelm <hjelmn@mac.com>
-Date:   Thu Mar 18 11:31:46 2010 -0600
-
-    Darwin: fix endianness of control setup packet
-    
-    IOUSBLib expects the control request to be in host byte order.
-    Swap the request into host byte order.
-
-commit cfce4d127184f4e4f334976151a0f80594bb5e22
-Author: Nathan Hjelm <hjelmn@mac.com>
-Date:   Mon Feb 15 14:10:08 2010 -0600
-
-    Darwin: fix memory leak in process_device
-    
-    Credit to Mike Colagrosso for finding this bug.
-
-commit 161893cfbefefe315f657677705abe090fc526f2
-Author: Nathan Hjelm <hjelmn@mac.com>
-Date:   Mon Feb 15 14:09:19 2010 -0600
-
-    Darwin: use logging functions
-    
-    Use usbi_warn, usbi_err, and usbi_info instead of _usbi_log.
-
-commit 2a72f38548208044dc3aa62681419d006c35732d
-Author: Nathan Hjelm <hjelmn@mac.com>
-Date:   Mon Feb 15 14:07:44 2010 -0600
-
-    Darwin: support multiple calls to libusb_init
-    
-    Credit to Orin Eman for finding this bug.
-
-commit a4186794d87124503db2f5f51f51ce90bb95daa7
-Author: Daniel Drake <dan@reactivated.net>
-Date:   Sun Nov 22 17:20:53 2009 +0000
-
-    v1.0.6 release
-
-commit 8392ff22136fccaf1e15d186157609b8dd127bc5
-Author: Ludovic Rousseau <rousseau@debian.org>
-Date:   Sun Oct 25 10:06:41 2009 +0100
-
-    lsusb example: make print_devs() static
-    
-    lsusb.c:26: warning: no previous prototype for ‘print_devs’
-
-commit 9cc6bfaa15239bb6db1c1570b9beb6df2f848951
-Author: Ludovic Rousseau <rousseau@debian.org>
-Date:   Sun Oct 25 10:05:10 2009 +0100
-
-    Darwin: fix warning in darwin_error_str()
-    
-    os/darwin_usb.c:63: warning: return discards qualifiers from pointer
-    target type
-
-commit 4c706d2fb6b2c43b10d72ac5dff51cac4d939f1a
-Author: Nathan Hjelm <hjelmn@mac.com>
-Date:   Sat Nov 21 17:06:43 2009 +0000
-
-    Darwin: allow devices to be opened multiple times
-    
-    Allows libusb applications to access multiple interfaces of the same
-    device in the same application.
-    
-    Also fixes a set alt interface bug.
-
-commit 0232fc559cdacb9561f982dd6d28feb4435b3e4e
-Author: Daniel Drake <dan@reactivated.net>
-Date:   Sat Nov 21 17:01:32 2009 +0000
-
-    Increase libusb_handle_events() timeout to 60 seconds
-    
-    The internal timing seems to be working, this will be a better test of
-    it before we make this timeout unlimited.
-
-commit 0bd7ef5d8697973a026c36c15d6276177b4ec4ea
-Author: Daniel Drake <dan@reactivated.net>
-Date:   Sat Nov 21 16:57:25 2009 +0000
-
-    Refine timerfd header check (#18)
-    
-    Require glibc-2.9 for the working timerfd support.
-
-commit 90d8fcab9018b8e6887a7e0592d1e5f692117234
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Nov 15 12:17:13 2009 +0000
-
-    v1.0.5 release
-
-commit 11d591058e3f105b0e90c23bbf58b18de691e690
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Nov 7 10:43:59 2009 +0000
-
-    Update documentation about early completion caveats
-
-commit f796c9528a71aa55326b6f0c9c7c5ec073d2bf92
-Author: Ludovic Rousseau <rousseau@debian.org>
-Date:   Sun Oct 25 09:59:51 2009 +0100
-
-    Add libusb_get_max_iso_packet_size() to libusb.h
-    
-    core.c:777: warning: no previous prototype for 'libusb_get_max_iso_packet_size'
-
-commit 4783008b7e711de9cb31631e60dda995f44068de
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Wed Oct 28 20:33:49 2009 +0545
-
-    Use timerfd for timeout handling
-    
-    Use a new file descriptor from the timerfd system calls to handle
-    timeouts. On supported systems, this means that there is less hassle
-    figuring out when the poll() timeout should be, since
-    libusb_get_next_timeout() will always return 0 and the timeout events will
-    be triggered as regular activity on the file descriptor set.
-    
-    Add API function libusb_pollfds_handle_timeouts() to detect whether
-    you're on a platform with the timing headache, and flesh out the
-    surrounding documentation.
-
-commit 9b120c2b3735566533c179aa8ca758fe45899a38
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Nov 7 10:03:07 2009 +0000
-
-    Use AM_SILENT_RULES for building
-
-commit ef6ea6c3ae38e4524f10e16e8cb88177d39c4826
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri Nov 6 21:54:08 2009 +0000
-
-    v1.0.4 release
-
-commit 217f57617e0cff0d1bd6d726b243f04c6b179773
-Author: David Moore <dcm@acm.org>
-Date:   Fri Nov 6 21:37:25 2009 +0000
-
-    Linux: Add support for the new URB_BULK_CONTINUATION flag
-    
-    Add support for the new USBDEVFS_URB_BULK_CONTINUATION flag to libusb.
-    
-    This flag, which is expected to be available in usbfs starting with
-    kernel 2.6.32, allows the kernel to cancel multiple URBs upon receipt
-    of a short packet.  This capability allows libusb to preserve data
-    integrity of large bulk transfers that are split into multiple URBs.
-    Without this support, these URBs must be canceled in userspace upon
-    receipt of a short packet, a race condition against future transfers
-    which might partially fill these canceled URBs.
-    
-    This patch automatically detects whether a supported kernel is present
-    and enables the use of the flag when possible.
-    
-    [dsd: tweaks to supported kernel detection, and some inline
-     documentation of this mechanism]
-
-commit 69830057547396f893f0d7b3125a05d016313b10
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Wed Oct 28 15:13:22 2009 +0545
-
-    Transfer locking
-    
-    At least on Linux, there were some possible races that could occur if
-    a transfer is cancelled from one thread while another thread is handling
-    an event for that transfer, or for if a transfer completes while it is
-    still being submitted from another thread, etc.
-    
-    On the global level, transfers could be submitted and cancelled at the
-    same time.
-    
-    Fix those issues with transfer-level locks.
-
-commit 98f1b30d24359cb3185051b8df9ebb663cc10369
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon Sep 14 08:01:24 2009 +0100
-
-    Clarify that timeout 0 means unlimited timeout
-
-commit 858684f0dd25921e09565034a88709dbf6f6c61b
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri Sep 11 22:09:12 2009 +0100
-
-    Linux: more flexibility with monotonic clock
-    
-    Some users have reported that CLOCK_MONOTONIC does not work on their
-    systems - I suspect it is available on x86 but perhaps not some
-    of the more uncommon architectures. We should fall back on
-    CLOCK_REALTIME in these cases.
-    
-    Also, CLOCK_MONOTONIC_RAW seems even more monotonic, so we should use
-    that if it is available.
-    
-    We now test different clock IDs during initialization to find the
-    best one that works.
-
-commit fe0d8dce1ed704915d501e7da700440c78144211
-Author: Nathan Hjelm <hjelmn@mac.com>
-Date:   Fri Sep 11 18:00:29 2009 +0100
-
-    Darwin: handle overflows
-
-commit f46716f42040986203fa6e873bfdabe1be2900ec
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Thu Aug 27 21:14:54 2009 +0545
-
-    v1.0.3 release
-
-commit 5b489b8b2a5aba7b8b804e5af6d2628735548238
-Author: Toby Peterson <toby@macports.org>
-Date:   Sun Aug 23 10:04:59 2009 +0545
-
-    Darwin: 64-bit type fixes
-
-commit ad8ae04d0b52009af0b1180e005f7554d2bbb26c
-Author: Nathan Hjelm <hjelmn@mac.com>
-Date:   Sun Aug 23 10:02:55 2009 +0545
-
-    Darwin: fix crash when reading descriptors after close
-    
-    Fix a crash which occurs if the user does the following sequence on a
-    device: open, close, get_configuration_descriptor.
-
-commit 45ae2aecf5512dcff059b2a416534e81c6a00c88
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Aug 1 13:55:15 2009 +0545
-
-    move bug info to bug tracker
-    
-    Protection needed: http://www.libusb.org/ticket/4
-    Losing data: fixed in previous commit
-
-commit 126129e174062c2a27423817a459e5113f777789
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Thu Jul 9 22:09:04 2009 +0100
-
-    Linux: try harder not to lose any data
-    
-    We would previously lose any data that was present on a cancelled URB.
-    Work harder to make sure this doesn't happen.
-
-commit 0334ee642b47dfe1ca9db64b22e7702ea14b3f09
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Jun 28 19:49:10 2009 +0100
-
-    Add libusb_get_max_iso_packet_size()
-    
-    As pointed out by Dennis Muhlestein, libusb_get_max_packet_size()
-    doesn't really do what the documentation might suggest because it
-    does not consider the number of transaction opportunities per
-    microframe.
-    
-    Add a new function to do what is useful for isochronous I/O.
-
-commit 615f18e64e96ae4ecc8e43d0de00933059a5209a
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Jun 20 22:33:21 2009 +0100
-
-    Linux: fix sending of zero length bulk packets
-    
-    Note that there are is a kernel bug preventing this from working
-    properly at the moment, even after this fix.
-
-commit 86f79fbf61c2018bdf009c7ebf92b38f3a16fd0c
-Author: Nathan Hjelm <hjelmn@mac.com>
-Date:   Fri Jun 19 22:18:44 2009 +0100
-
-    Darwin: Don't cancel transfers on timeout
-    
-    ...because the OS does this for us.
-
-commit d4bd9ed4de19a9c766f7a23eea8c852cdd61c18f
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Jun 14 19:23:21 2009 +0100
-
-    Don't terminate enums with commas
-    
-    g++ -pedantic doesn't like this
-    Reported by Eberhard Mattes
-
-commit 8be256082eb9bd8e243d89529f742926bb29a21b
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Jun 13 17:19:07 2009 +0100
-
-    v1.0.2 release
-
-commit 060e006e663fd59c281be29b71eb197e02b210e8
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Wed Jun 10 21:42:05 2009 +0100
-
-    Linux: fix config descriptor parsing on big-endian systems
-    
-    Multi-byte fields in the configuration descriptors that come back from
-    usbfs are always in bus endian format.
-    
-    Thanks to Joe Jezak for help investigating and fixing this.
-
-commit c4a905022f684da9a4a853eb9232a81a53df2652
-Author: Nathan Hjelm <hjelmn@mac.com>
-Date:   Sun Jun 7 22:29:35 2009 +0100
-
-    Darwin: improve handling of disconnected devices
-
-commit 6b69f54451762ef590b9c938ab000c07cf9099a3
-Author: Nathan Hjelm <hjelmn@mac.com>
-Date:   Sun Jun 7 22:26:37 2009 +0100
-
-    Darwin: fix parsing of config descriptors
-    
-    This was a confusion between configuration numbers and zero-based
-    configuration indexes.
-
-commit 2b3a9ffa776b383cb2dbc3c55e490e32e4c3c22b
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Jun 7 22:19:53 2009 +0100
-
-    Eliminate -Wsign-compare compiler warnings
-    
-    This was due to an API inconsistency which can be safely worked around.
-    Hopefully we'll remember to fix the API next time we come to break
-    things.
-
-commit cad5cb55c37137e94e35c74fdabfe42a5cbd229b
-Author: David Moore <dcm@acm.org>
-Date:   Wed May 27 23:15:54 2009 -0700
-
-    Make synchronous transfer APIs robust against signal interruption
-    
-    libusb_control_transfer and libusb_bulk_transfer are designed to be
-    synchronous such that control is not returned until the transfer
-    definitively succeeds or fails.  That assumption is violated if a signal
-    interrupts these functions because there is no way for the application
-    to continue waiting for the transfer without resubmitting it.  This
-    patch changes these synchronous APIs so they do not abort in the case of
-    a signal interruption.
-    
-    Signed-off-by: David Moore <dcm@acm.org>
-
-commit b501795985a23109f176d296e7b544b4c6354528
-Author: Alex Vatchenko <alex@fabulatech.com>
-Date:   Thu May 28 15:58:50 2009 -0400
-
-    pre-gcc-3.4 compatibility
-    
-    The -fvisibility and -Wno-pointer-sign options are not available on
-    old GCC versions.
-
-commit 00bb2805e994887f0a754a825c3ce03d22393386
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Tue May 26 15:53:26 2009 -0400
-
-    Fix memory leak in config descriptor parsing
-    
-    Pointed out by Martin Koegler.
-
-commit 068ff5b8a83fec0a9a91c80535a25b89a9ae64e8
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Tue May 12 19:20:51 2009 -0400
-
-    Update AUTHORS
-
-commit aa24c04e4043e39674b59ff0d302b2365cd0078f
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Tue May 12 19:03:37 2009 -0400
-
-    v1.0.1 release
-
-commit 44767677447fae4267131f99c591b14117486cac
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Tue May 12 19:01:44 2009 -0400
-
-    Add BUGS file
-    
-    Probably missed a couple of outstanding issues
-
-commit e0365a6f22e0e7f330ac931df031cf6f17f453d1
-Author: Nathan Hjelm <hjelmn@mac.com>
-Date:   Sun Mar 22 21:13:29 2009 -0400
-
-    Darwin: get_config_descriptor bugfixes
-
-commit 5fd0e8478240fece646a58a3c6114001a73be99f
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Wed Feb 25 12:33:33 2009 -0300
-
-    Fix compilation of Darwin backend
-    
-    My fault. Reported by ihryamzik@gmail.com
-
-commit b49f6bf5c910d0fd694ecf165d7927673707bff9
-Author: Nathan Hjelm <hjelmn@mac.com>
-Date:   Mon Feb 16 21:39:29 2009 -0300
-
-    Darwin backend
-
-commit d859158581e9a3250f36cdeeb8ea67cda04053bd
-Author: Nathan Hjelm <hjelmn@mac.com>
-Date:   Mon Feb 16 21:30:49 2009 -0300
-
-    Make endianness macros endian-independent
-    
-    Implementation suggested by David Moore. Needed for proper universal
-    code support on Darwin.
-
-commit 9196f58bdc8b9e967261df39865215faa5d39cfa
-Author: Nathan Hjelm <hjelmn@mac.com>
-Date:   Mon Feb 16 21:25:18 2009 -0300
-
-    Abstract clock reading into OS layer
-    
-    This will differ on Linux and Darwin, at least.
-    
-    [dsd: minor style tweaks]
-
-commit e91207860cac09b3afaafc4c14221b78d585c59a
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon Feb 16 21:20:28 2009 -0300
-
-    Fix endianness in device descriptors
-    
-    Pointed out by Nathan Hjelm.
-
-commit ccf6d3d2f6acf9b9a1cb5e1f1b03f382ae509b17
-Author: Nathan Hjelm <hjelmn@mac.com>
-Date:   Mon Feb 16 21:13:52 2009 -0300
-
-    Only link with librt on Linux
-    
-    [dsd: tweak configure.ac change]
-
-commit 894539931e4b4bd85708fe98b956049243cd6fb0
-Author: Hans Ulrich Niedermann <hun@n-dimensional.de>
-Date:   Mon Jan 26 00:31:48 2009 +0100
-
-    API docs: describe libusb_transfer_cb_fn type
-    
-    Add some text describing the libusb_transfer_cb_fn function type
-    with the semantics I have gathered from reading other parts of
-    the API docs, referring to the proper section for more details.
-    
-    [dsd: tweaked the description slightly]
-
-commit abe34a2656f8f9f21e53603796c536585e6233ef
-Author: Hans Ulrich Niedermann <hun@n-dimensional.de>
-Date:   Sun Jan 25 18:21:59 2009 +0100
-
-    Make empty array in struct compatible with C99
-    
-    If the compiler is known to be running in C99 mode,
-    use "flexible array members" ("foo[]").
-    
-    If the compiler is running in any other mode, continue
-    using the non-standard but widely common "foo[0]" syntax.
-
-commit 620075c7400764d9bb539b5c02065c45c2e8251e
-Author: Hans Ulrich Niedermann <hun@n-dimensional.de>
-Date:   Sun Jan 25 18:20:45 2009 +0100
-
-    Avoid signedness errors in API docs example code
-
-commit c754ae294cfe96ec4738d6641137c9e6c56330c7
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Jan 17 00:25:40 2009 +0000
-
-    Decrement poll() result when internal pipe has been handled
-    
-    When we receive data on the internal control pipe, we need to correctly
-    decrement the number of ready file descriptors before passing on the
-    remaining work to the OS implementation.
-
-commit b9ca960f2ba271d2b1a58e22b7c70464d69f6c8a
-Author: David Moore <dcm@acm.org>
-Date:   Sun Jan 11 21:46:17 2009 -0800
-
-    Prevent transfer from being submitted twice or improperly canceled
-    
-    This ensures that tpriv->urbs and tpriv->iso_urbs are always set to NULL
-    whenever a transfer is not submitted.  In this way, submit_*_transfer()
-    and cancel_*_transfer() can error check to ensure that the transfer is
-    in the correct state to be either submitted or canceled, preventing
-    potential memory leaks or double frees.
-    
-    Signed-off-by: David Moore <dcm@acm.org>
-
-commit d2a8ec2da8abcd8f4648ed118da16191011982dd
-Author: David Moore <dcm@acm.org>
-Date:   Wed Jan 7 22:31:09 2009 -0800
-
-    Linux: Fix race condition in cancel_bulk_transfer()
-    
-    This fixes a race condition in cancel_bulk_transfer().  In the old
-    version, awaiting_reap and awaiting_discard are incremented in
-    cancel_bulk_transfer() and decremented in handle_bulk_completion().
-    However, since these events may take place in two different threads,
-    these variables may reach zero before all URBs have been canceled,
-    triggered spurious callbacks and duplicate frees.
-    
-    This changes the logic to use a single variable "num_retired" to replace
-    both awaiting_reap and awaiting_discard.  num_retired is incremented
-    only in handle_bulk_completion() and thus there is no race.  The handler
-    will know that all URBs have been canceled when num_retired becomes
-    equal to num_urbs.
-    
-    This change also simplifies a great deal of the logic in both functions
-    and is a net reduction in the amount of code.
-    
-    Note that some variables such as "reap_action" probably need to still be
-    protected by a mutex, and this patch does not address that issue.
-    
-    Signed-off-by: David Moore <dcm@acm.org>
-
-commit 34b9eebe35d8167d43cffb6ad6175f6b2251b572
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Dec 13 20:06:49 2008 +0000
-
-    v1.0.0 release
-    
-    It's here!
-
-commit b1d636dde418dc8fe6a8f037dea0d800e57c6b94
-Author: Mikhail Gusarov <dottedmag@dottedmag.ent>
-Date:   Wed Dec 10 15:24:05 2008 +0600
-
-    EOL-whitespace fixes
-    
-    Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.ent>
-
-commit 4a9ac382ba5149ae5b3d0962d6a840b5e0dc13aa
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Tue Dec 9 21:43:37 2008 +0000
-
-    Linux: fix reading of active configuration
-    
-    Shannon Chuang pointed out that we only read 1 byte into an
-    uninitialized integer, and then return the whole thing.
-
-commit 81a7310d92461ba7b1d98aeff7c4c007fab07120
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Tue Dec 9 21:39:11 2008 +0000
-
-    Fix double free in descriptor parsing error path
-    
-    Pointed out by Shannon Chuang.
-
-commit 9b4b53453db56ba9c1d707a645bbe6c7a02a3c81
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri Nov 21 13:28:32 2008 +0000
-
-    Improvements to multi-threaded I/O system
-    
-    Documentation brushed up, and I realised that another function is
-    needed for tight event handling loops -- they must be able to check
-    if an open/close operation is trying to interrupt it.
-
-commit 0e5b0fcb77a90b8bd95ad23669da472af31ef069
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri Nov 21 11:00:47 2008 +0000
-
-    SourceForge website upload system changed
-
-commit a133875e6e2f52eff53ac03f505d59cbdd33e178
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri Nov 21 10:54:57 2008 +0000
-
-    v0.9.4 release
-
-commit c32aa662769b676ff3247778664fccc71fc427ec
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Thu Nov 20 15:31:10 2008 +0000
-
-    Pause event handling while opening and closing devices
-    
-    Ludovic Rousseau found that crashes often occur if you close a device
-    while another thread is doing event handling.
-    
-    Fix this by adding an internal control pipe, which the close routines
-    use to interrupt the event handler and obtain the event handling lock,
-    ensuring that no other thread is handling events while the device is
-    closed. After the close completes, it signals all the event handlers
-    to start up again using the usual mechanism.
-    
-    Also modified libusb_open() to do a similar thing, so that event
-    handlers are interrupted in order to realise that a new poll fd has
-    appeared.
-
-commit 1d7cf3d0fa8698eae25097cbda1870be90ff6f5e
-Author: Bastien Nocera <hadess@hadess.net>
-Date:   Thu Oct 30 14:35:23 2008 +0000
-
-    Add libusb_attach_kernel_driver()
-    
-    Add support for re-attaching a driver to a device under Linux.
-    
-    [dsd: fixed handling of return value, and added LIBUSB_ERROR_BUSY case]
-
-commit 914a4e70657c86b5094770aa2d898c978b1cdf41
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Nov 2 21:45:54 2008 +0000
-
-    Linux: handle low-level transfer errors
-    
-    Handle more URB error status codes, thanks to Lou and Alan Stern.
-
-commit d25b566b3b8febafdda4211de724b4727dd4b7e0
-Author: Aurelien Jarno <aurelien@aurel32.net>
-Date:   Thu Sep 4 13:50:49 2008 +0200
-
-    Support for out-of-tree building
-    
-    Contrary to libusb 0.1, libusb 1.0 does not support out-of-tree building
-    for the documentation part. This patch fixes that by using a
-    doxygen.cfg.in file, which contains @top_srcdir@ to refer to the
-    location of the libusb source code.
-
-commit 8674c67ef78e1cf89db1fa584a4304f7c5ddcc5f
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Nov 2 15:00:39 2008 +0000
-
-    Document the logging style
-    
-    Suggested by Lou.
-
-commit 94936cbcfe3f02eb65c8b91e29896604316259d8
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Wed Aug 27 22:44:24 2008 -0500
-
-    Async I/O documentation touchups
-
-commit 2f8f1b1a900f5b9828e5e2ff93c2b26a44fd9de2
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Wed Aug 27 21:23:10 2008 -0500
-
-    Doc: fix typo in events lock section
-
-commit 046e681e4ac6b697e40458ee0f5baf3cd8763bb0
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Aug 23 01:00:21 2008 -0500
-
-    v0.9.3 release
-
-commit fec6eaa4eecdf7e0b8299157a5dabef94417f193
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Aug 23 00:57:44 2008 -0500
-
-    Reset internal transfer flags on submit
-    
-    This fixes a problem pointed out by Lou, where resubmitting a transfer
-    that previously timed out never timed out again, as if the timeout had
-    been set to 0.
-
-commit 81627bd38900ec9701ab69c141aa51a9abea1f60
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Aug 10 17:09:48 2008 -0500
-
-    Add libusb_get_configuration prototype
-    
-    Pointed out by Lou
-
-commit 1631eaefcc7cdf7047c6b9225618a9aa1b3d87d1
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Jul 19 17:51:28 2008 -0500
-
-    v0.9.2 release
-
-commit 0d9c40d7f3eee15ada624b5caab2cfb912144fdc
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Wed Jul 16 09:22:12 2008 -0500
-
-    Linux: fix sysfs directory handling
-    
-    The length of the directory name varies, e.g. when you have nested hubs.
-    Use dynamic allocation to be able to deal with any length of name.
-
-commit 66c9847ad54b126ccafd4877292454ab57d0c115
-Author: David Engraf <dogge2k@gmx.de>
-Date:   Wed Jul 16 09:16:38 2008 -0500
-
-    Linux: correct usage of MAX_PATH
-    
-    Thanks to clarification from Artem Egorkine, MAX_PATH already includes
-    space for the trailing NULL.
-
-commit 6494f07a6d1b73ce786ae581c4ff691e39e61d19
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Tue Jul 8 21:15:54 2008 -0500
-
-    Linux: fix bulk/iso transfer double-cancellation
-    
-    Reset counters to 0 so that it's possible to cancel a transfer twice
-    without breaking things. Not sure that I want to support this properly,
-    but this makes it work at least.
-
-commit 9140f5b414e37a3714cde9c6d6c87c963338a83a
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Jun 28 21:28:44 2008 -0500
-
-    v0.9.1 release
-
-commit 83a029062c1d2bfb584d7a6ee94915583d37464c
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Jun 28 21:24:49 2008 -0500
-
-    Add missing GET_CONTEXT()
-
-commit fbad9a5426f0369394c88987355a8fb06a741ca1
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Jun 28 21:18:41 2008 -0500
-
-    Linux: Compatibility with new sysfs descriptors file
-    
-    As of 2.6.26, the descriptors file now includes all descriptors, not
-    just the active one.
-
-commit 819e65f880ca43526036e56c65c415042c91f58f
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Thu Jun 26 22:47:05 2008 -0500
-
-    Allow user data pointer to be passed through pollfd notification API
-
-commit 1df713d622ab4f0b03aad72d903ac7beb8fb3b90
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Tue Jun 24 23:01:51 2008 -0500
-
-    Introduce contexts to the API
-    
-    Suggested by David Zeuthen. This allows multiple libraries in the same
-    process to independently use libusb without interfering.
-
-commit 9818151c60a85aea6af24cb0996a92c3726c9864
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Tue Jun 24 21:31:13 2008 -0500
-
-    Revert "Temporary workaround for event handling serialization issue"
-    
-    This reverts commit 2d3a1111caff40ebb87983c861ff548cdc9e5946.
-    This was based on the assumption that dying threads would automatically
-    release mutexes, which is not the case.
-
-commit d5f82893fab3f1c13b1af4ba17aac72479bad7d5
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri Jun 20 23:04:53 2008 -0500
-
-    Overflow handling
-
-commit 546dee211eefbdd280fd1fc9dee84a9b52105078
-Author: Artem Egorkine <arteme@gmail.com>
-Date:   Tue Jun 17 18:27:38 2008 -0500
-
-    a fix for SIGSEGV in handle_bulk_completion()
-    
-    We cannot dereference tpriv after calling
-    usbi_handle_transfer_cancellation() because that function may invoke
-    the user-supplied callback which may free the transfer.
-
-commit 947ba8056456a5215724fb502e3e09d50016f699
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon Jun 16 22:50:50 2008 -0500
-
-    Refine configuration selection again
-    
-    At Alan Stern's suggestion, just offer the bare "set configuration" and
-    "get configuration" functionality, and let applications worry about the
-    specific race conditions and unusual situations.
-
-commit e7a7a49d0331ee0e14145f6e7ec39763b36314ac
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Jun 15 15:29:38 2008 -0500
-
-    docs update
-    
-    Add a THANKS file, make copyright notices easily accessible, update TODO
-
-commit 217534e4b396081e038ee5f94c813d1668963673
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Jun 15 15:23:29 2008 -0500
-
-    round up poll timeout
-    
-    Pointed out by Richard Röjfors, otherwise we end up busy-looping with
-    a poll() timeout of 0.
-
-commit 5ad79b324bc5e11a75a585398a1e81c26f05e758
-Author: Felipe Balbi <me@felipebalbi.com>
-Date:   Sun Jun 8 12:34:48 2008 +0300
-
-    fix doc about libusb_open()
-    
-    libusb_open() returns int instead of libusb_device_handle.
-    
-    Signed-off-by: Felipe Balbi <me@felipebalbi.com>
-    [dsd: small correction]
-
-commit 2d3a1111caff40ebb87983c861ff548cdc9e5946
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Thu May 29 17:26:26 2008 +0100
-
-    Temporary workaround for event handling serialization issue
-    
-    Ludovic Rousseau pointed out that libusb_unlock_events() is not called
-    when a thread gets terminated with a signal, meaning that event waiters
-    will not be woken up in this case.
-    
-    Add a temporary hack to libusb_event_handler_active() so that at least
-    the other threads will realise on the next iteration of their event
-    handling loop.
-    
-    The real fix will likely involve reworking most of this.
-
-commit 514bb8790cfe8b93ccfff82bc17081b1030acce0
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Thu May 29 12:35:01 2008 +0100
-
-    Refine libusb_set_configuration() semantics
-    
-    Applications will generally want to set a configuration before claiming
-    interfaces. The problem is that the interface may already be set, and
-    someone else may have claimed an interface (meaning that all calls to
-    set_configuration will fail, even if it's for the same configuration).
-    
-    There are now 2 options:
-    1. Use the new libusb_get_configuration() to determine active
-       configuration before calling libusb_set_configuration()
-    2. Or just call libusb_set_configuration() as usual, which will do
-       nothing if that configuration is already active.
-
-commit d1292f8e7300051239a7ed2769d221dc7a6f9fca
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun May 25 23:42:42 2008 +0100
-
-    v0.9.0 release
-    
-    First libusb-1.0 beta release
-
-commit 4cd249388e4ed2ca03f1263984ab67df5030bb65
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun May 25 22:59:09 2008 +0100
-
-    Take lock before raising event waiters condition
-    
-    This avoids a race between the user checking for active event handler
-    and then blocking on the condition variable
-
-commit 7c525480ab3c4db9205bfe30bb0d2bef9096c444
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri May 23 15:57:07 2008 +0100
-
-    Implement serialization of event handlers
-    
-    Now offers a mechanism to wait for events while another thread is
-    doing the event handling. Complicates things for MT async apps, but
-    then again it's a bit of a tricky combination to start with.
-
-commit ff0660a415ecfd0879600eaad1c5899b6d93a30a
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat May 24 21:28:31 2008 +0100
-
-    allow LIBUSB_DEBUG env var to control message verbosity at runtime
-    
-    Based on ideas from Ludovic Rousseau
-
-commit 4d788967e3f8d75eaf3a1ac1ee8e2e8bed0601c1
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri May 23 15:58:11 2008 +0100
-
-    don't print messages by default
-    
-    Add libusb_set_debug() API to set message verbosity.
-    
-    Ludovic Rousseau pointed out that applications may close stdout/stderr
-    descriptors, which might then be reused.
-
-commit bef33bb9eba0da04ee7488d9cd5e6ab12bc61c0c
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon May 19 15:43:27 2008 +0100
-
-    Fix memory leak in libusb_control_transfer
-    
-    Pointed out by David Engraf: we weren't freeing the transfer buffer
-
-commit a345bacb6f07ebb2122402041a9e8092d4a20a4d
-Author: David Engraf <david.engraf@netcom.eu>
-Date:   Mon May 19 15:16:32 2008 +0100
-
-    Linux: fix handling of ioctl failure
-    
-    The return value of some ioctl commands in linux_usbfs.c are not
-    handeled correct. The ioctl function returns != 0 and errno is set with
-    the error code.
-
-commit e44396a458ecea9e5edd9a7577e617571c76860d
-Author: David Engraf <david.engraf@netcom.eu>
-Date:   Mon May 19 15:13:38 2008 +0100
-
-    critical memory leak in handle_events
-    
-    This patch closes a critical memory leak in handle_events. The fds
-    variable is malloced but never freed. When I'm calling
-    handle_events with a timeout of 0, my system runs out of memory after a
-    few seconds.
-
-commit eb25630f52bc9848b444e439632c899977d887b0
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri May 16 23:50:20 2008 +0100
-
-    More informative libusb_open() return code
-    
-    Hopefully one of the last API tweaks...
-
-commit 2b2e9c40b195261b09ac52ebdb93eef25c79de90
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri May 16 22:37:56 2008 +0100
-
-    Fix endianness with descriptor handling
-    
-    Alan Stern pointed out that usbfs gives host-endian data, but sysfs gives
-    bus-endian.
-
-commit 1298c51f516a7bf04ca9add1b7db14417cdc66f3
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon May 12 18:46:37 2008 +0100
-
-    Backend documentation for porting efforts
-    
-    Hopefully comprehensive enough for people to get started.
-
-commit ade26afc42c34ceb1c45afcadd2ea5e8240eaca4
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon May 12 15:43:30 2008 +0100
-
-    Linux: fix caching of guessed configuration
-    
-    Reported and tested by Xiaofan Chen
-
-commit e25d590a9198995b4f0b6afeb41ecae318715e7e
-Author: Rob Walker <rob@tenfoot.org.uk>
-Date:   Sun May 11 21:14:18 2008 +0100
-
-    Linux: fix bulk transfer early completion
-    
-    We were forgetting about the remaining urbs when a non-final urb
-    completed early.
-    
-    [dsd: some touchups and a warning message for a corner case that we don't handle]
-
-commit fec7c84163e25b8f811632828334d75da82bcb16
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun May 11 20:31:58 2008 +0100
-
-    Handle hot-unplugging
-    
-    This involved moving from select() to poll() because there is no way to
-    distinguish usbfs's POLLERR condition with select().
-
-commit aeb905fa5d78cdbba80a680aa7a2bb7338f27f65
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun May 11 16:04:35 2008 +0100
-
-    Documentation work
-
-commit ba5d9a45c06311204f51faef41d1ee215bb5b823
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun May 11 15:36:24 2008 +0100
-
-    Endianness of control setup packets
-    
-    Document behaviour where host-endian and bus-endian (little) should be
-    used respectively.
-    
-    Also remove packed attribute from libusb_control_setup as all fields
-    are naturally aligned.
-
-commit 7bedc3b2683f35ee1dd39a2ebe0ec05be0019f38
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun May 11 15:11:59 2008 +0100
-
-    Document that releasing interface causes SET_INTERFACE control request
-
-commit f2ede9876cd4f5cfa7751b975670fa449187fe3d
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat May 10 21:45:42 2008 +0100
-
-    Support unconfigured devices
-
-commit 8ebb4ccdfaf5f095a1c38787d909d280ea64405c
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat May 10 20:56:44 2008 +0100
-
-    Linux: fix caching of active configuration for non-sysfs
-
-commit c3844f7aeb2176636ce6e6ef697659fdb0b30048
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat May 10 14:42:43 2008 +0100
-
-    Fetch configurations by index (not value)
-    
-    Otherwise there is no way to know which values to look for.
-
-commit d77052c0d630e33737c38d601fd633155f6b2229
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat May 10 00:12:53 2008 +0100
-
-    Linux: comprehensive sysfs vs usbfs access
-    
-    Be more flexible when certain parts of sysfs are not available.
-
-commit 74bc842bac1a32a26323da6c3e8af2f66e1b5cfa
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri May 9 19:38:13 2008 +0100
-
-    Linux: no need to store usbfs node path
-    
-    This can be computed from bus number and device address
-
-commit fe4adcc99e30115204ab832ad3e0170c9aca7629
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri May 9 14:34:31 2008 +0100
-
-    Rework configuration handling
-    
-    libusb no longer caches descriptors in libusb_device but backends are
-    intended to be able to provide copies from memory. In the common linux
-    case we can use sysfs.
-
-commit 5741bfe01a2481b8c3830c80edc3637bf62a7e16
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri May 9 14:36:14 2008 +0100
-
-    libusb_get_device_list() can return negative error code
-
-commit 45413101b78298e9332b22a34bc6bc159000ad8a
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Thu May 8 23:09:21 2008 +0100
-
-    Linux: fix clear_halt implementation
-    
-    The ioctl expects an integer.
-    Bug found with the assistance of Soumen Mondal
-
-commit 10d4e427cc171dfd6ad7f43a33ce3cfebcd7aa04
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Thu May 8 23:04:52 2008 +0100
-
-    Documentation work
-    
-    Partially based on some libusb-devel discussions
-
-commit ded0a249322571a075e3ed3528021864247dfa55
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon May 5 22:57:48 2008 +0100
-
-    Linux: enumerate devices and descriptors from sysfs
-    
-    Suggested by Alan Stern. This avoids waking up any suspended USB devices.
-    sysfs is not available on all systems, so the usbfs mechanism is still
-    in place as a fallback.
-
-commit 885c2a5de69d6b7d8902bb55d6d83680a5a1a6e5
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon May 5 21:34:31 2008 +0100
-
-    documentation touchups
-
-commit 59c205d542b43d79fe28622dbe8f03a3a3300b6f
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon May 5 21:17:03 2008 +0100
-
-    more error code sanitization
-
-commit 88055d4b5913102a90ff666f75fd922c74860dc5
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon May 5 20:57:43 2008 +0100
-
-    Isochronous transfer helper functions
-
-commit a95c943ed301dcd20e92b0b3b255568899a4c42e
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon May 5 17:54:33 2008 +0100
-
-    free open devices on exit
-
-commit b27fff633843824744df7d334cb89ece329cafa6
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon May 5 17:47:49 2008 +0100
-
-    move descriptor parsing into main library
-    
-    OS modules now provide functionality for fetching device/config
-    descriptors
-
-commit a304eca71f22c6df7d70a901483b30f1b8e93378
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon May 5 16:22:33 2008 +0100
-
-    Detect endpoint halts and unsupported control requests
-
-commit 7da521954ba661d3f537440c31a84b66e974d56b
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon May 5 01:00:31 2008 +0100
-
-    Linux: fix logical URB allocation
-    
-    We were allocating the wrong number of URBs for transfers of size
-    multiples of 16k.
-
-commit 470b1bc42bf53373ce678fc76bab9160a54d6881
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun May 4 16:51:23 2008 +0100
-
-    add functionality for querying and detaching kernel driver
-
-commit 17ecfb0ecc833596c43755c80d461cddb9b3b0d7
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun May 4 16:20:46 2008 +0100
-
-    Descriptor reading functionality
-
-commit bdce367d1bd8691465844b2411c85215498f517d
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun May 4 14:22:16 2008 +0100
-
-    sanitized error returns from synchronous I/O functions
-
-commit bfe74e9cd9c17a40fff042ea0647326f51cfecae
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun May 4 14:10:19 2008 +0100
-
-    implement libusb_reset_device()
-
-commit c01f744ce07bbeccbe353e956479f0cc5a811a6f
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun May 4 13:46:41 2008 +0100
-
-    Add functionality to clear endpoint halt conditions
-
-commit 5878daa85e3364bb3885190425d4f9deaa2d8c36
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun May 4 00:51:59 2008 +0100
-
-    Fix libusb_get_device_list return value
-    
-    It was documented to return the list length, but was returning 0.
-
-commit a74106a9b48b88bae0e099be34a18d653a8f1238
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat May 3 16:50:58 2008 +0100
-
-    Well-defined error codes for some operations
-    
-    Also renamed set_interface_altsetting to set_interface_alt_setting for
-    better consistency
-
-commit 0f463fe671455670efcf4a93e526b2a9082b0afe
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat May 3 16:24:11 2008 +0100
-
-    Add libusb_set_configuration()
-
-commit e65608994f795f97e4d6adac20329ca08709db2d
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat May 3 15:40:23 2008 +0100
-
-    rename LIBUSB_ERROR_NOMEM to LIBUSB_ERROR_NO_MEM
-    improves consistency
-
-commit 5384bbf300779e7936eac9ebd33ee38f5b533f8e
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat May 3 14:34:54 2008 +0100
-
-    Linux: better EACCES handling
-
-commit 1936eeeba3f933a078df1005cc7c1533a8ec2bac
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat May 3 14:26:56 2008 +0100
-
-    Rename reference counting API
-    
-    This improves consistency with the naming style of other functions
-
-commit e2f822b4f17342f614ab2455179a80975fca6cb0
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat May 3 14:24:40 2008 +0100
-
-    Linux: use read-only access to enumerate devices and descriptors
-    
-    Write access is not needed until later.
-    Also fix handling of open() error code.
-
-commit 81204eed3d0a7744b89b68bd90d567b68d191a91
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri May 2 17:45:23 2008 +0100
-
-    document pollfd notifiers
-
-commit e20f8281fb7da32587f81b5eea5818af1eab0fe0
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri May 2 17:33:52 2008 +0100
-
-    Allow multiple interfaces to be claimed
-
-commit 66685ff25d81a1f1a2a3dbda882d407638d00672
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri May 2 16:55:36 2008 +0100
-
-    Documentation improvements
-
-commit 55bce39cbe0c9746a428b66751d1afe551d86381
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri May 2 12:55:34 2008 +0100
-
-    detect short descriptor reads
-
-commit f3f17846dcced6b2dc40f899ed6a2aba151c264b
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri May 2 12:32:46 2008 +0100
-
-    remove "references" and "referenced by" listings in documentation
-
-commit fbb017dd9a26ce449578482b95157b3c850fa446
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri May 2 12:32:08 2008 +0100
-
-    Use typedef ptr types in parameters and return types
-    
-    This is passed through to the docs
-
-commit 3675e978fb7a1042f8601931255658bcd14a2298
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri May 2 12:28:31 2008 +0100
-
-    Expose bus number and device address
-
-commit 2012898ffc492317cb428d97077bf5ee0e98e1da
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Tue Apr 29 15:26:46 2008 +0100
-
-    standardised error codes
-
-commit 0269c75ae3de7acb2dc555e45928750e35fdb320
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Tue Apr 29 13:34:26 2008 +0100
-
-    Fix descriptor handling memory leaks
-
-commit d3ab4e3bd4068cba41c1e12c4b175018dc3cb343
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Apr 27 23:50:01 2008 +0100
-
-    Rename endpoint_type to transfer_type
-    
-    Matches the USB specs more closely
-
-commit 379e90e0fdcef6f4db1849fa0a7fd524407cf564
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Apr 27 23:41:24 2008 +0100
-
-    Remove a FIXME comment
-    
-    it can't.
-
-commit 2ddf81420557d016bbcbf28dda0d8d1c64d16264
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Apr 27 23:30:34 2008 +0100
-
-    Fix unlocked flying_transfers list access
-
-commit 7ac0a405b4c57db42e88cbcba5f135697f03b646
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Apr 27 23:27:04 2008 +0100
-
-    Remove libusb_cancel_transfer_sync
-    
-    This wasn't a particularly nice API. Cancellation should be handled by
-    the completion handler.
-
-commit a5006fd7b9dae6f1db7969c8744086ba3a7c027b
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Apr 27 19:56:02 2008 +0100
-
-    remove extra timeout check
-    
-    If select() didn't timeout then don't check for more timeouts
-
-commit 3bdafaa359d9c65e1af360b5338e1f25528a8066
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Apr 27 19:53:51 2008 +0100
-
-    Documentation touchups
-    
-    Detail that interrupt polling interval is fixed to endpoint bInterval,
-    and that data may be transferred even on a timeout condition.
-
-commit e12618c79d520955b1abf80a277e881d91907162
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Apr 19 16:17:53 2008 +0100
-
-    add threaded example program
-
-commit 1fcdb0678b759569db7cd530457dbc0a5f86fb1d
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri Apr 18 23:58:54 2008 +0100
-
-    libusb_device mutex protection
-
-commit 0efd2efa65d5513e5754d717d522b2c5c45332e2
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri Apr 18 23:42:40 2008 +0100
-
-    mutex protection for device and handle lists
-
-commit d2ff2b14a15e5099ff0214502944de30f141a39c
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri Apr 18 20:00:31 2008 +0100
-
-    lock flying_transfers during transfer removal
-
-commit 2569980762cb66804da31e54bef243702da8dfe9
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri Apr 18 19:59:56 2008 +0100
-
-    pollfds mutex protection
-
-commit f5a33e08ec0da51ccb5e95a5adec50c5211a9bf5
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Thu Apr 17 18:24:54 2008 +0100
-
-    flying_transfers mutex protection
-    
-    This marks the beginnings of thread safety
-
-commit 85e1994123545125ce0653415d122f9790f8d041
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Thu Apr 17 17:44:28 2008 +0100
-
-    Linux: fix control transfer cancellation
-
-commit cf9b831f7bfd97ba88721c1d934aeda522f3692c
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon Apr 14 20:03:27 2008 +0100
-
-    set correct endpoint type for isochronous transfers
-    
-    Pointed out by Felix Domke
-
-commit ad6e2b712c5b54af44424e58a2776686314e26b7
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri Apr 11 21:40:07 2008 +0100
-
-    Linux: fire multiple URBs at once for split transfers
-    
-    This results in a significant performance increase for bulk transfers
-    larger than 16kb, and fixes a bug where data would be spliced and mixed
-    between two simultaneously submitted transfers to the same endpoint.
-    
-    It also allows isochronous transfers larger than 16kb to be submitted.
-    
-    This commit also improves cancellation - the library now understands
-    what is going on.
-
-commit d9b2ce2894ed43d34de6850f2dac50ccabf1db55
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Tue Apr 1 23:28:32 2008 +0100
-
-    Constify some return data
-    
-    Make it clear that apps should not mess with these structures
-
-commit 8d809854e2b19c2b7c27ab05e5d76b34e2a5cead
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Mar 30 22:19:00 2008 +0100
-
-    Rename libusb_poll() to libusb_handle_events()
-
-commit 211f80c9f2a4a58cd2bbf5b7751f45089c8961e7
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Tue Mar 25 16:24:30 2008 +0000
-
-    Isochronous endpoint I/O
-    
-    Due to variable-sized structures, this involved changing allocation
-    mechanism. All transfers must now be allocated and freed through
-    libusb.
-    
-    A synchronous function is missing, and I could do with writing a few
-    more helper functions to simplify things.
-
-commit b1ade6fca668d8aa156d5b5bf3a933f116144dc2
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Mar 23 21:17:32 2008 +0000
-
-    distcheck fix for docs
-
-commit 62077b7fa5b222e1bb9dea3467585aed69d596e2
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Mar 23 21:13:14 2008 +0000
-
-    Support for changing altsetting
-    
-    Will probably be suject to later consideration w.r.t. claiming of endpoints
-
-commit 0499e9f418607b5786ac0c3e97bc46737a609ca3
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Thu Mar 20 21:10:01 2008 +0000
-
-    it's called bmRequestType
-
-commit 88884ae4bbe721dac117d5190303cb67852fa5d3
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Thu Mar 20 21:07:00 2008 +0000
-
-    Save transfer flags before invoking callback
-    
-    The callback may free the transfer, in which case we can't read the flags
-    after it has returned.
-
-commit ead09cde6895df0034a685516987ce253575e9a7
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Mar 15 16:35:12 2008 +0000
-
-    API documentation
-    
-    Hopefully mostly complete. Some constants were renamed and move into
-    enums.
-
-commit 285724cc14ea5f993e2c4c92fe0aaf6c335bc139
-Author: Vasily Khoruzhick <anarsoul@gmail.com>
-Date:   Sat Mar 15 13:50:53 2008 +0200
-
-    Fix get_device_list for realloc case
-    
-    get_device_list can modify pointer passed to it with realloc, but this
-    case wasn't handled and caused crash on my machine. Fixed
-    
-    Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
-
-commit c0c9432d38b22784070dce3a7874c62c31786a27
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Thu Mar 13 12:36:56 2008 +0000
-
-    Beginnings of cross-platform abstraction
-    
-    This also includes a libusb_get_pollfds API change
-
-commit de4c5341d168697baa4c0901c406deb47e78aae7
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon Mar 10 18:38:15 2008 +0000
-
-    Add transfer flags
-
-commit aae05f688dc26a013166ab9436fd25018b49d76a
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon Mar 10 11:32:15 2008 +0000
-
-    Simplify libusb_fill_control_transfer()
-    
-    Transfer length can be inferred from the setup packet.
-
-commit 7c5ea95297c2f3f6afc42f60c1bf1bef777bb1fb
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon Mar 10 11:29:24 2008 +0000
-
-    get_device fixup
-    
-    Rename API away from "devh" and fix implementation to match header
-
-commit 9e89d1aa82cbe7e21672ee3e2e545238fffc5318
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Mar 9 16:27:06 2008 +0000
-
-    Rename descriptor-getting functions
-    
-    Based on feedback from Tim Roberts
-
-commit 283ae96c3ccbcee1c3950fce18ae47093ae8200e
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Mar 9 16:15:02 2008 +0000
-
-    Simplify cancellation API
-    
-    No need to provide the device here.
-
-commit ebad1c79688ba603ad017ed0fe2f3c0dc8edd1ad
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Mar 9 16:12:08 2008 +0000
-
-    Rename libusb_dev_handle to libusb_device_handle
-
-commit 1ac0a7d88f282b6f293c456fac8edb143cbaca3d
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Mar 9 01:01:57 2008 +0000
-
-    Move synchronous I/O implementation to its own file
-
-commit 66348c90ea4570bf999ac301089e006d0cce1926
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Mar 9 00:58:09 2008 +0000
-
-    Separate transfer allocation and submission
-    
-    Leads to some hefty API changes. Now we're much more similar to the
-    Linux kernel model.
-    
-    Problems with dealing with asynchronous control transfers are passed
-    on to the user, basically you must allocate a buffer, start with the
-    setup, and put the data after. This won't make much sense until
-    documented (soon...)
-
-commit d21ebe47ce578c93cd8969be1c933d503e32e5d4
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Mar 8 12:48:35 2008 +0000
-
-    Rework URB API naming
-    
-    Now refer to everything as "transfers" as consistent with the USB spec
-    libusb_transfer is now a kind of transfer handle. To reduce confusion
-    with libusb_bulk_transfer and libusb_control_transfer, those have been
-    renamed to libusb_{control,bulk}_transfer_request.
-
-commit fd6fb3cc093ad47271353a0e468d16547f991382
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Mar 8 11:53:33 2008 +0000
-
-    Add fallback on /proc/bus/usb
-    
-    /dev/bus/usb is a relatively new thing probably not present on every
-    system
-
-commit f3fdf447916289cd92b7190377681894e8ab611a
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Mar 8 00:10:16 2008 +0000
-
-    Persistent libusb_device storage
-    
-    Devices are now assigned a session ID (currently busnum:devaddr) which
-    is used to distinguish unique devices.
-    
-    Now multiple callers of libusb_get_device_list will get the same
-    libusb_device structure instances.
-
-commit 23f8fb8bafeeda93ce234cb40eb7219d2e36c19c
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Thu Mar 6 23:43:57 2008 +0000
-
-    Add convenience function to find and open a device by USB VID+PID
-    
-    Lots of libusb apps I write are simple test apps not intended to be real
-    apps. Having a function available to quickly locate my device will be
-    handy in such situations.
-
-commit 9cfdb494fccac53a4277da7c8b6d15f1a72a4959
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Thu Mar 6 23:25:20 2008 +0000
-
-    Rework device discovery API
-    
-    libusb_find_devices and libusb_get_devices are no more
-    
-    libusb_get_device_list obtains a list of libusb_device structures for all
-    known devices in the system.
-    
-    Each libusb_device now has a reference count, defaulting to 1 on
-    instantiation. The reference count of 1 refers to the fact that it is
-    present in the list in this scenario.
-    
-    Opening a device adds a pointer to the libusb_device structure in the
-    handle, so that also adds a reference. Closing the device removes that
-    reference.
-    
-    The function to free the device list can optionally unref all the devices
-    inside.
-    
-    In future we will make the libusb_device instances all "global" so that if
-    the app calls get_device_list twice it actually gets the same libusb_device
-    structure references back. This way we can start to track disconnects, and
-    we can investigate adding a unique "session ID" to each libusb_device, an
-    identifier guaranteed to be unique to that device until reboot.
-
-commit 77cea822788e024c848c7f554915f771a2dc1e0f
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Thu Mar 6 17:05:04 2008 +0000
-
-    Remove ctrl debug code
-    
-    This was unintentionally committed
-
-commit b873521a6f575628d535f89278bb67888004d0ca
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Tue Feb 26 22:11:34 2008 +0000
-
-    Notifications for changes to the fd set
-    
-    Applications can now be notified when they should start and stop polling
-    new file descriptors.
-
-commit ca66e16a370c828d08a5bc3f9f203db145c81a4c
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri Feb 1 12:20:20 2008 +0000
-
-    Fix header installation path
-
-commit e583100a4086c411093eef5c450880b965df6b1b
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Wed Jan 30 13:24:54 2008 +0000
-
-    TODO update
-
-commit 637a8d7ff8a11a23588925d9d3003a609bda8075
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Wed Jan 30 13:19:10 2008 +0000
-
-    Remove timers and signalfd
-    
-    Instead of timers, add a mechanism for informing the parent app when the
-    next timeout is due to happen, so that it can call us at that time.
-    
-    As we no longer use signals, signalfd has also been removed.
-
-commit 8c56abe2e13ed4dd8c15737c21be7b6b1e5cf2ac
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Jan 26 18:16:56 2008 +0000
-
-    Poll usbfs descriptors directly
-    
-    We don't need to use signalfd for this functionality because we can poll
-    the file descriptors for write events.
-
-commit e3ce855acec33d37dd833bca5dad5e8c3773003a
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Jan 26 17:26:40 2008 +0000
-
-    Fix dpfp example compilation
-
-commit 1d41a5cda2fefe826877ee4445199af30aa188b7
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Jan 26 17:22:53 2008 +0000
-
-    C++ header safety
-    
-    Pointed out by JF
-
-commit 37b7f9a112eb1441d352467f661205b8872d0553
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Jan 26 14:03:43 2008 +0000
-
-    Only use -fgnu89-inline when supported
-    
-    J F pointed out that this option only works on gcc 4.3 and newer.
-
-commit e3a09ca0b9cb6f46d54a0130f678c6097240a2bd
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sat Jan 5 21:59:40 2008 +0000
-
-    Remove more fpusb remnants
-
-commit dcd5e0075fa84601d997d29bb60bc8370b97a375
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri Jan 4 01:19:07 2008 +0000
-
-    TODO update
-    
-    Start listing the things I want to discuss/reconsider before 1.0 API
-    is final.
-
-commit de53d972ed9c1f21f86ffd585560520e986f212c
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri Jan 4 01:17:06 2008 +0000
-
-    Rename some _devh_ functions
-    
-    Decided against naming functions in this style based on advice from
-    Tim Roberts. Still not really sure about devh naming in general.
-
-commit 132d84bf8ae34bd0892b3d8207a53d87cc0a9cba
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri Jan 4 01:13:25 2008 +0000
-
-    Use "transfer" instead of "msg"
-    
-    Based on a discussion with Tim Roberts.
-
-commit ea6af58a8643137eb01eeb7d2f65404e390feb1b
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri Jan 4 00:57:00 2008 +0000
-
-    Plural of bus is busses
-    
-    SF #1633043
-
-commit dbb3fd871e3972b4e670f3161e7cd2f58f357600
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri Jan 4 00:54:57 2008 +0000
-
-    API renaming: remove fpi and usb_ stuff
-    
-    fpi changed to usbi.
-    
-    We should not expose structures with prefix "usb_" in the public
-    namespace as it is quite likely there will be some conflict somewhere.
-    Instead, using "libusb_" should be safer.
-
-commit e9364d72151ae1de9cce4175f330fe1529f02511
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Fri Jan 4 00:40:49 2008 +0000
-
-    Rename to libusb-1.0
-    
-    I've taken over the libusb project, and what was previously known as fpusb
-    will eventually be released as libusb-1.0.
-
-commit f4ed0b6a3e0a20555fdfc9e9b8be7e8a2c8ae192
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Dec 30 22:09:50 2007 +0000
-
-    Compiler flags update
-    
-    Also fix some warnings
-
-commit d3d671efe27491baf1d2ceadbfeeb4e7428d6f9a
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Dec 30 22:05:17 2007 +0000
-
-    Fix signalfd structure size on x86
-    
-    ptr is a 64-bit value
-
-commit dfac6756faad76071a92945e3e3a16b8a841a7ea
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Wed Dec 12 23:32:54 2007 +0000
-
-    Don't pass ctrl_msg/bulk_msg structures through async paths
-    
-    These are easiest to construct on the stack, but in the async case it is
-    likely that the submitting function returns (hence stack is destroyed)
-    before URB completion.
-
-commit a8d2881eb7c273892acf2ff6e1f3f552631d1d11
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon Dec 3 23:29:22 2007 +0000
-
-    Add functionality to access device descriptors
-
-commit b5a7a411087b37a6bf56b4688a9e3290daaed153
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Mon Dec 3 22:27:21 2007 +0000
-
-    Rename fpusb_device_handle functions to devh
-    
-    Prevents confusion with functions that work on fpusb_dev structures.
-
-commit eacf4505a473df0f521d1b69d5b45448f0709e2d
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Sun Dec 2 23:16:57 2007 +0000
-
-    Add API to access poll fd
-    
-    Almost forgot... :)
-
-commit 852bba4754ec57679c823f33e8feba6e4a564cbe
-Author: Daniel Drake <dsd@gentoo.org>
-Date:   Wed Nov 28 13:48:45 2007 +0000
-
-    Initial commit
-    
-    Basic library structure which supports enumerating detected USB devices
diff --git a/compat/libusb-1.0/msvc/ddk_build.cmd b/compat/libusb-1.0/msvc/ddk_build.cmd
deleted file mode 100644
index ed9b8a8..0000000
--- a/compat/libusb-1.0/msvc/ddk_build.cmd
+++ /dev/null
@@ -1,106 +0,0 @@
-@rem default builds static library.
-@rem you can pass the following arguments (case insensitive):
-@rem - "DLL" to build a DLL instead of a static library
-@rem - "/MT" to build a static library compatible with MSVC's /MT option (LIBCMT vs MSVCRT)
-@echo off
-
-if Test%BUILD_ALT_DIR%==Test goto usage
-
-rem process commandline parameters
-set TARGET=LIBRARY
-set STATIC_LIBC=
-set version=1.0
-
-if "%1" == "" goto no_more_args
-rem /I for case insensitive
-if /I Test%1==TestDLL set TARGET=DYNLINK
-if /I Test%1==Test/MT set STATIC_LIBC=1
-:no_more_args
-
-cd ..\libusb\os
-echo TARGETTYPE=%TARGET% > target
-copy target+..\..\msvc\libusb_sources sources >NUL 2>&1
-del target
-@echo on
-build -cwgZ
-@echo off
-if errorlevel 1 goto builderror
-cd ..\..
-
-set cpudir=i386
-set destType=Win32
-if %_BUILDARCH%==x86 goto isI386
-set cpudir=amd64
-set destType=x64
-:isI386
-
-set srcPath=libusb\os\obj%BUILD_ALT_DIR%\%cpudir%
-
-set dstPath=%destType%\Debug
-if %DDKBUILDENV%==chk goto isDebug
-set dstPath=%destType%\Release
-:isDebug
-
-if exist %destType% goto md2
-mkdir %destType%
-:md2
-if exist %dstPath% goto md3
-mkdir %dstPath%
-:md3
-if exist %dstPath%\dll goto md4
-mkdir %dstPath%\dll
-:md4
-if exist %dstPath%\lib goto md5
-md %dstPath%\lib
-:md5
-if exist %dstPath%\examples goto md6
-md %dstPath%\examples
-:md6
-@echo on
-
-@if /I NOT Test%1==TestDLL goto copylib
-copy %srcPath%\libusb-%version%.dll %dstPath%\dll
-copy %srcPath%\libusb-%version%.pdb %dstPath%\dll
-:copylib
-copy %srcPath%\libusb-%version%.lib %dstPath%\lib
-
-@echo off
-
-if exist examples\listdevs_ddkbuild goto md7
-md examples\listdevs_ddkbuild
-:md7
-
-cd examples\listdevs_ddkbuild
-copy ..\..\msvc\listdevs_sources sources >NUL 2>&1
-@echo on
-build -cwgZ
-@echo off
-if errorlevel 1 goto buildlistdevserror
-cd ..\..
-
-set srcPath=examples\listdevs_ddkbuild\obj%BUILD_ALT_DIR%\%cpudir%
-@echo on
-
-copy %srcPath%\listdevs.exe %dstPath%\examples
-copy %srcPath%\listdevs.pdb %dstPath%\examples
-
-cd msvc
-goto done
-
-
-:builderror
-cd ..\..\msvc
-echo Build failed
-goto done
-
-:buildlistdevserror
-cd ..\..\msvc
-echo listdevs build failed
-goto done
-
-:usage
-echo ddk_build must be run in a WDK build environment
-pause
-goto done
-
-:done
diff --git a/compat/libusb-1.0/msvc/ddk_build.cmd.orig b/compat/libusb-1.0/msvc/ddk_build.cmd.orig
deleted file mode 100644
index e37b9c2..0000000
--- a/compat/libusb-1.0/msvc/ddk_build.cmd.orig
+++ /dev/null
@@ -1,142 +0,0 @@
-@rem default builds static library.
-@rem you can pass the following arguments (case insensitive):
-@rem - "DLL" to build a DLL instead of a static library
-@rem - "/MT" to build a static library compatible with MSVC's /MT option (LIBCMT vs MSVCRT)
-@echo off
-
-if Test%BUILD_ALT_DIR%==Test goto usage
-
-rem process commandline parameters
-set TARGET=LIBRARY
-set STATIC_LIBC=
-set version=1.0
-
-if "%1" == "" goto no_more_args
-rem /I for case insensitive
-if /I Test%1==TestDLL set TARGET=DYNLINK
-if /I Test%1==Test/MT set STATIC_LIBC=1
-:no_more_args
-
-cd ..\libusb\os
-echo TARGETTYPE=%TARGET% > target
-copy target+..\..\msvc\libusb_sources sources >NUL 2>&1
-del target
-@echo on
-build -cwgZ
-@echo off
-if errorlevel 1 goto builderror
-cd ..\..
-
-set cpudir=i386
-set destType=Win32
-if %_BUILDARCH%==x86 goto isI386
-set cpudir=amd64
-set destType=x64
-:isI386
-
-set srcPath=libusb\os\obj%BUILD_ALT_DIR%\%cpudir%
-
-set dstPath=%destType%\Debug
-if %DDKBUILDENV%==chk goto isDebug
-set dstPath=%destType%\Release
-:isDebug
-
-if exist %destType% goto md2
-mkdir %destType%
-:md2
-if exist %dstPath% goto md3
-mkdir %dstPath%
-:md3
-if exist %dstPath%\dll goto md4
-mkdir %dstPath%\dll
-:md4
-if exist %dstPath%\lib goto md5
-md %dstPath%\lib
-:md5
-if exist %dstPath%\examples goto md6
-md %dstPath%\examples
-:md6
-@echo on
-
-@if /I NOT Test%1==TestDLL goto copylib
-copy %srcPath%\libusb-%version%.dll %dstPath%\dll
-copy %srcPath%\libusb-%version%.pdb %dstPath%\dll
-:copylib
-copy %srcPath%\libusb-%version%.lib %dstPath%\lib
-
-@echo off
-
-if exist examples\listdevs_ddkbuild goto md7
-md examples\listdevs_ddkbuild
-:md7
-
-cd examples\listdevs_ddkbuild
-copy ..\..\msvc\listdevs_sources sources >NUL 2>&1
-@echo on
-build -cwgZ
-@echo off
-if errorlevel 1 goto buildlistdevserror
-cd ..\..
-
-set srcPath=examples\listdevs_ddkbuild\obj%BUILD_ALT_DIR%\%cpudir%
-@echo on
-
-copy %srcPath%\listdevs.exe %dstPath%\examples
-copy %srcPath%\listdevs.pdb %dstPath%\examples
-
-cd msvc
-goto done
-
-
-:builderror
-cd ..\..\msvc
-echo Build failed
-goto done
-
-<<<<<<< HEAD
-:buildlistdevserror
-cd ..\..\msvc
-echo listdevs build failed
-=======
-if exist examples\getopt\getopt_ddkbuild goto md9
-md examples\getopt\getopt_ddkbuild
-:md9
-
-cd examples\getopt\getopt_ddkbuild
-copy ..\..\..\msvc\getopt_sources sources >NUL 2>&1
-@echo on
-%BUILD_CMD%
-@echo off
-if errorlevel 1 goto builderror
-cd ..\..\..
-
-if exist examples\fxload_ddkbuild goto md8
-md examples\fxload_ddkbuild
-:md8
-
-cd examples\fxload_ddkbuild
-copy ..\..\msvc\fxload_sources sources >NUL 2>&1
-@echo on
-%BUILD_CMD%
-@echo off
-if errorlevel 1 goto builderror
-cd ..\..
-
-set srcPath=examples\fxload_ddkbuild\obj%BUILD_ALT_DIR%\%cpudir%
-@echo on
-
-copy %srcPath%\fxload.exe %dstPath%\examples
-copy %srcPath%\fxload.pdb %dstPath%\examples
-
-@echo off
-
-cd msvc
->>>>>>> 0597533... Samples: Add fxload sample for Cypress EZ-USB chips
-goto done
-
-:usage
-echo ddk_build must be run in a WDK build environment
-pause
-goto done
-
-:done
diff --git a/compat/libusb-1.0/msvc/libusb.dsw b/compat/libusb-1.0/msvc/libusb.dsw
deleted file mode 100644
index 8926e67..0000000
--- a/compat/libusb-1.0/msvc/libusb.dsw
+++ /dev/null
@@ -1,56 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "libusb_dll"=".\libusb_dll.dsp" - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "libusb_static"=".\libusb_static.dsp" - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "listdevs"=".\listdevs.dsp" - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-    Begin Project Dependency
-    Project_Dep_Name libusb_static
-    End Project Dependency
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/compat/libusb-1.0/msvc/libusb_dll.dsp b/compat/libusb-1.0/msvc/libusb_dll.dsp
deleted file mode 100644
index 96a011e..0000000
--- a/compat/libusb-1.0/msvc/libusb_dll.dsp
+++ /dev/null
@@ -1,190 +0,0 @@
-# Microsoft Developer Studio Project File - Name="libusb_dll" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
-
-CFG=libusb_dll - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE 
-!MESSAGE NMAKE /f "libusb_dll.mak".
-!MESSAGE 
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE 
-!MESSAGE NMAKE /f "libusb_dll.mak" CFG="libusb_dll - Win32 Debug"
-!MESSAGE 
-!MESSAGE Possible choices for configuration are:
-!MESSAGE 
-!MESSAGE "libusb_dll - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "libusb_dll - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE 
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF  "$(CFG)" == "libusb_dll - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "../Win32/Release/dll"
-# PROP Intermediate_Dir "../Win32/Release/dll"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "LIBUSB_DLL_EXPORTS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I "../libusb" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /U "_MBCS" /D "_USRDLL" /FR /FD /EHsc /c
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib shell32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib shell32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 /out:"Win32/Release/dll/libusb-1.0.dll"
-
-!ELSEIF  "$(CFG)" == "libusb_dll - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "../Win32/Debug/dll"
-# PROP Intermediate_Dir "../Win32/Debug/dll"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "LIBUSB_DLL_EXPORTS" /YX /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "." /I "../libusb" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /U "_MBCS" /D "_USRDLL" /FR /FD /EHsc /c
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo /n
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib shell32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib shell32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /out:"Win32/Debug/dll/libusb-1.0.dll"
-# SUBTRACT LINK32 /pdb:none /incremental:no
-
-!ENDIF 
-
-# Begin Target
-
-# Name "libusb_dll - Win32 Release"
-# Name "libusb_dll - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=..\libusb\core.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\darwin_usb.c
-# PROP Exclude_From_Build 1
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\descriptor.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\io.c
-# End Source File
-# Begin Source File
-
-SOURCE="..\libusb\libusb-1.0.rc"
-# End Source File
-# Begin Source File
-
-SOURCE="..\libusb\libusb-1.0.def"
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\linux_usbfs.c
-# PROP Exclude_From_Build 1
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\poll_windows.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\sync.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\threads_windows.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\windows_usb.c
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=.\config.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\darwin_usb.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\libusb.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\libusbi.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\linux_usbfs.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\poll_posix.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\poll_windows.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\threads_posix.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\threads_windows.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\windows_usb.h
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# End Target
-# End Project
diff --git a/compat/libusb-1.0/msvc/libusb_dll.vcproj b/compat/libusb-1.0/msvc/libusb_dll.vcproj
deleted file mode 100644
index 242898b..0000000
--- a/compat/libusb-1.0/msvc/libusb_dll.vcproj
+++ /dev/null
@@ -1,421 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
-	ProjectType="Visual C++"
-	Version="8.00"
-	Name="libusb-1.0 (dll)"
-	ProjectGUID="{8224C054-5968-4238-832C-167155E7ECC3}"
-	RootNamespace="libusbdll"
-	Keyword="Win32Proj"
-	>
-	<Platforms>
-		<Platform
-			Name="Win32"
-		/>
-		<Platform
-			Name="x64"
-		/>
-	</Platforms>
-	<ToolFiles>
-	</ToolFiles>
-	<Configurations>
-		<Configuration
-			Name="Debug|Win32"
-			OutputDirectory="..\$(PlatformName)\$(ConfigurationName)\dll"
-			IntermediateDirectory="..\$(PlatformName)\$(ConfigurationName)\dll\libusb-1.0"
-			ConfigurationType="2"
-			CharacterSet="1"
-			>
-			<Tool
-				Name="VCPreBuildEventTool"
-			/>
-			<Tool
-				Name="VCCustomBuildTool"
-			/>
-			<Tool
-				Name="VCXMLDataGeneratorTool"
-			/>
-			<Tool
-				Name="VCWebServiceProxyGeneratorTool"
-			/>
-			<Tool
-				Name="VCMIDLTool"
-			/>
-			<Tool
-				Name="VCCLCompilerTool"
-				Optimization="0"
-				AdditionalIncludeDirectories=".;..\libusb"
-				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS"
-				MinimalRebuild="true"
-				BasicRuntimeChecks="3"
-				RuntimeLibrary="3"
-				UsePrecompiledHeader="0"
-				WarningLevel="3"
-				Detect64BitPortabilityProblems="false"
-				DebugInformationFormat="4"
-			/>
-			<Tool
-				Name="VCManagedResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCPreLinkEventTool"
-			/>
-			<Tool
-				Name="VCLinkerTool"
-				OutputFile="$(OutDir)\libusb-1.0.dll"
-				LinkIncremental="2"
-				ModuleDefinitionFile="..\libusb\libusb-1.0.def"
-				GenerateDebugInformation="true"
-				SubSystem="2"
-				TargetMachine="1"
-			/>
-			<Tool
-				Name="VCALinkTool"
-			/>
-			<Tool
-				Name="VCManifestTool"
-			/>
-			<Tool
-				Name="VCXDCMakeTool"
-			/>
-			<Tool
-				Name="VCBscMakeTool"
-			/>
-			<Tool
-				Name="VCFxCopTool"
-			/>
-			<Tool
-				Name="VCAppVerifierTool"
-			/>
-			<Tool
-				Name="VCWebDeploymentTool"
-			/>
-			<Tool
-				Name="VCPostBuildEventTool"
-			/>
-		</Configuration>
-		<Configuration
-			Name="Release|Win32"
-			OutputDirectory="..\$(PlatformName)\$(ConfigurationName)\dll"
-			IntermediateDirectory="..\$(PlatformName)\$(ConfigurationName)\dll\libusb-1.0"
-			ConfigurationType="2"
-			CharacterSet="1"
-			WholeProgramOptimization="1"
-			>
-			<Tool
-				Name="VCPreBuildEventTool"
-			/>
-			<Tool
-				Name="VCCustomBuildTool"
-			/>
-			<Tool
-				Name="VCXMLDataGeneratorTool"
-			/>
-			<Tool
-				Name="VCWebServiceProxyGeneratorTool"
-			/>
-			<Tool
-				Name="VCMIDLTool"
-			/>
-			<Tool
-				Name="VCCLCompilerTool"
-				AdditionalIncludeDirectories=".;..\libusb"
-				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS"
-				RuntimeLibrary="2"
-				UsePrecompiledHeader="0"
-				WarningLevel="3"
-				Detect64BitPortabilityProblems="false"
-				DebugInformationFormat="3"
-			/>
-			<Tool
-				Name="VCManagedResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCPreLinkEventTool"
-			/>
-			<Tool
-				Name="VCLinkerTool"
-				OutputFile="$(OutDir)\libusb-1.0.dll"
-				LinkIncremental="1"
-				ModuleDefinitionFile="..\libusb\libusb-1.0.def"
-				GenerateDebugInformation="true"
-				SubSystem="2"
-				OptimizeReferences="2"
-				EnableCOMDATFolding="2"
-				TargetMachine="1"
-			/>
-			<Tool
-				Name="VCALinkTool"
-			/>
-			<Tool
-				Name="VCManifestTool"
-			/>
-			<Tool
-				Name="VCXDCMakeTool"
-			/>
-			<Tool
-				Name="VCBscMakeTool"
-			/>
-			<Tool
-				Name="VCFxCopTool"
-			/>
-			<Tool
-				Name="VCAppVerifierTool"
-			/>
-			<Tool
-				Name="VCWebDeploymentTool"
-			/>
-			<Tool
-				Name="VCPostBuildEventTool"
-			/>
-		</Configuration>
-		<Configuration
-			Name="Debug|x64"
-			OutputDirectory="..\$(PlatformName)\$(ConfigurationName)\dll"
-			IntermediateDirectory="..\$(PlatformName)\$(ConfigurationName)\dll\libusb-1.0"
-			ConfigurationType="2"
-			CharacterSet="1"
-			>
-			<Tool
-				Name="VCPreBuildEventTool"
-			/>
-			<Tool
-				Name="VCCustomBuildTool"
-			/>
-			<Tool
-				Name="VCXMLDataGeneratorTool"
-			/>
-			<Tool
-				Name="VCWebServiceProxyGeneratorTool"
-			/>
-			<Tool
-				Name="VCMIDLTool"
-				TargetEnvironment="3"
-			/>
-			<Tool
-				Name="VCCLCompilerTool"
-				Optimization="0"
-				AdditionalIncludeDirectories=".;..\libusb"
-				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS"
-				MinimalRebuild="true"
-				BasicRuntimeChecks="3"
-				RuntimeLibrary="3"
-				UsePrecompiledHeader="0"
-				WarningLevel="3"
-				Detect64BitPortabilityProblems="false"
-				DebugInformationFormat="3"
-			/>
-			<Tool
-				Name="VCManagedResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCPreLinkEventTool"
-			/>
-			<Tool
-				Name="VCLinkerTool"
-				OutputFile="$(OutDir)\libusb-1.0.dll"
-				LinkIncremental="2"
-				ModuleDefinitionFile="..\libusb\libusb-1.0.def"
-				GenerateDebugInformation="true"
-				SubSystem="2"
-				TargetMachine="17"
-			/>
-			<Tool
-				Name="VCALinkTool"
-			/>
-			<Tool
-				Name="VCManifestTool"
-			/>
-			<Tool
-				Name="VCXDCMakeTool"
-			/>
-			<Tool
-				Name="VCBscMakeTool"
-			/>
-			<Tool
-				Name="VCFxCopTool"
-			/>
-			<Tool
-				Name="VCAppVerifierTool"
-			/>
-			<Tool
-				Name="VCWebDeploymentTool"
-			/>
-			<Tool
-				Name="VCPostBuildEventTool"
-			/>
-		</Configuration>
-		<Configuration
-			Name="Release|x64"
-			OutputDirectory="..\$(PlatformName)\$(ConfigurationName)\dll"
-			IntermediateDirectory="..\$(PlatformName)\$(ConfigurationName)\dll\libusb-1.0"
-			ConfigurationType="2"
-			CharacterSet="1"
-			WholeProgramOptimization="1"
-			>
-			<Tool
-				Name="VCPreBuildEventTool"
-			/>
-			<Tool
-				Name="VCCustomBuildTool"
-			/>
-			<Tool
-				Name="VCXMLDataGeneratorTool"
-			/>
-			<Tool
-				Name="VCWebServiceProxyGeneratorTool"
-			/>
-			<Tool
-				Name="VCMIDLTool"
-				TargetEnvironment="3"
-			/>
-			<Tool
-				Name="VCCLCompilerTool"
-				AdditionalIncludeDirectories=".;..\libusb"
-				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS"
-				RuntimeLibrary="2"
-				UsePrecompiledHeader="0"
-				WarningLevel="3"
-				Detect64BitPortabilityProblems="false"
-				DebugInformationFormat="3"
-			/>
-			<Tool
-				Name="VCManagedResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCPreLinkEventTool"
-			/>
-			<Tool
-				Name="VCLinkerTool"
-				OutputFile="$(OutDir)\libusb-1.0.dll"
-				LinkIncremental="1"
-				ModuleDefinitionFile="..\libusb\libusb-1.0.def"
-				GenerateDebugInformation="true"
-				SubSystem="2"
-				OptimizeReferences="2"
-				EnableCOMDATFolding="2"
-				TargetMachine="17"
-			/>
-			<Tool
-				Name="VCALinkTool"
-			/>
-			<Tool
-				Name="VCManifestTool"
-			/>
-			<Tool
-				Name="VCXDCMakeTool"
-			/>
-			<Tool
-				Name="VCBscMakeTool"
-			/>
-			<Tool
-				Name="VCFxCopTool"
-			/>
-			<Tool
-				Name="VCAppVerifierTool"
-			/>
-			<Tool
-				Name="VCWebDeploymentTool"
-			/>
-			<Tool
-				Name="VCPostBuildEventTool"
-			/>
-		</Configuration>
-	</Configurations>
-	<References>
-	</References>
-	<Files>
-		<Filter
-			Name="Source Files"
-			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
-			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
-			>
-			<File
-				RelativePath="..\libusb\core.c"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\descriptor.c"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\io.c"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\libusb-1.0.def"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\sync.c"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\os\threads_windows.c"
-				>
-			</File>
-
-			<File
-				RelativePath="..\libusb\os\poll_windows.c"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\os\windows_usb.c"
-				>
-			</File>
-		</Filter>
-		<Filter
-			Name="Header Files"
-			Filter="h;hpp;hxx;hm;inl;inc;xsd"
-			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
-			>
-			<File
-				RelativePath=".\config.h"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\libusb.h"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\libusbi.h"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\os\threads_windows.h"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\os\poll_windows.h"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\os\windows_usb.h"
-				>
-			</File>
-		</Filter>
-		<Filter
-			Name="Resource Files"
-			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
-			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
-			>
-			<File
-				RelativePath="..\libusb\libusb-1.0.rc"
-				>
-			</File>
-		</Filter>
-	</Files>
-	<Globals>
-	</Globals>
-</VisualStudioProject>
diff --git a/compat/libusb-1.0/msvc/libusb_dll.vcxproj b/compat/libusb-1.0/msvc/libusb_dll.vcxproj
deleted file mode 100644
index fe02056..0000000
--- a/compat/libusb-1.0/msvc/libusb_dll.vcxproj
+++ /dev/null
@@ -1,166 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup Label="ProjectConfigurations">
-    <ProjectConfiguration Include="Debug|Win32">
-      <Configuration>Debug</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Debug|x64">
-      <Configuration>Debug</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|Win32">
-      <Configuration>Release</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|x64">
-      <Configuration>Release</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-  </ItemGroup>
-  <PropertyGroup Label="Globals">
-    <ProjectName>libusb-1.0 (dll)</ProjectName>
-    <ProjectGuid>{349EE8FA-7D25-4909-AAF5-FF3FADE72187}</ProjectGuid>
-    <RootNamespace>libusbdll</RootNamespace>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
-    <ConfigurationType>DynamicLibrary</ConfigurationType>
-    <CharacterSet>Unicode</CharacterSet>
-    <WholeProgramOptimization>true</WholeProgramOptimization>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
-    <ConfigurationType>DynamicLibrary</ConfigurationType>
-    <CharacterSet>Unicode</CharacterSet>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
-    <ConfigurationType>DynamicLibrary</ConfigurationType>
-    <CharacterSet>Unicode</CharacterSet>
-    <WholeProgramOptimization>true</WholeProgramOptimization>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
-    <ConfigurationType>DynamicLibrary</ConfigurationType>
-    <CharacterSet>Unicode</CharacterSet>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
-  <ImportGroup Label="ExtensionSettings">
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <PropertyGroup Label="UserMacros" />
-  <PropertyGroup>
-    <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)..\$(Platform)\$(Configuration)\dll\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)..\$(Platform)\$(Configuration)\dll\libusb-1.0\</IntDir>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)..\$(Platform)\$(Configuration)\dll\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)..\$(Platform)\$(Configuration)\dll\libusb-1.0\</IntDir>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)..\$(Platform)\$(Configuration)\dll\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)..\$(Platform)\$(Configuration)\dll\libusb-1.0\</IntDir>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)..\$(Platform)\$(Configuration)\dll\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)..\$(Platform)\$(Configuration)\dll\libusb-1.0\</IntDir>
-    <TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">libusb-1.0</TargetName>
-    <TargetName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">libusb-1.0</TargetName>
-    <TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">libusb-1.0</TargetName>
-    <TargetName Condition="'$(Configuration)|$(Platform)'=='Release|x64'">libusb-1.0</TargetName>
-  </PropertyGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>.;..\libusb;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
-      <WarningLevel>Level3</WarningLevel>
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
-    </ClCompile>
-    <Link>
-      <OutputFile>$(OutDir)libusb-1.0.dll</OutputFile>
-      <ModuleDefinitionFile>..\libusb\libusb-1.0.def</ModuleDefinitionFile>
-      <EmbedManagedResourceFile>libusb-1.0.rc;%(EmbedManagedResourceFile)</EmbedManagedResourceFile>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
-    <Midl>
-      <TargetEnvironment>X64</TargetEnvironment>
-    </Midl>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>.;..\libusb;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_WIN32;_WIN64;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
-      <WarningLevel>Level3</WarningLevel>
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
-    </ClCompile>
-    <Link>
-      <OutputFile>$(OutDir)libusb-1.0.dll</OutputFile>
-      <ModuleDefinitionFile>..\libusb\libusb-1.0.def</ModuleDefinitionFile>
-      <EmbedManagedResourceFile>libusb-1.0.rc;%(EmbedManagedResourceFile)</EmbedManagedResourceFile>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <ClCompile>
-      <AdditionalIncludeDirectories>.;..\libusb;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_WIN32;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <WarningLevel>Level3</WarningLevel>
-    </ClCompile>
-    <Link>
-      <OutputFile>$(OutDir)libusb-1.0.dll</OutputFile>
-      <ModuleDefinitionFile>..\libusb\libusb-1.0.def</ModuleDefinitionFile>
-      <EmbedManagedResourceFile>libusb-1.0.rc;%(EmbedManagedResourceFile)</EmbedManagedResourceFile>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
-    <Midl>
-      <TargetEnvironment>X64</TargetEnvironment>
-    </Midl>
-    <ClCompile>
-      <AdditionalIncludeDirectories>.;..\libusb;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_WIN32;_WIN64;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <WarningLevel>Level3</WarningLevel>
-    </ClCompile>
-    <Link>
-      <OutputFile>$(OutDir)libusb-1.0.dll</OutputFile>
-      <ModuleDefinitionFile>..\libusb\libusb-1.0.def</ModuleDefinitionFile>
-      <EmbedManagedResourceFile>libusb-1.0.rc;%(EmbedManagedResourceFile)</EmbedManagedResourceFile>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemGroup>
-    <ClCompile Include="..\libusb\core.c" />
-    <ClCompile Include="..\libusb\descriptor.c" />
-    <ClCompile Include="..\libusb\io.c" />
-    <ClCompile Include="..\libusb\os\poll_windows.c" />
-    <ClCompile Include="..\libusb\sync.c" />
-    <ClCompile Include="..\libusb\os\threads_windows.c" />
-    <ClCompile Include="..\libusb\os\windows_usb.c" />
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include=".\config.h" />
-    <ClInclude Include="..\libusb\libusb.h" />
-    <ClInclude Include="..\libusb\libusbi.h" />
-    <ClInclude Include="..\libusb\os\poll_windows.h" />
-    <ClInclude Include="..\libusb\os\threads_windows.h" />
-    <ClInclude Include="..\libusb\os\windows_usb.h" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="..\libusb\libusb-1.0.def" />
-  </ItemGroup>
-  <ItemGroup>
-    <ResourceCompile Include="..\libusb\libusb-1.0.rc" />
-  </ItemGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
-  <ImportGroup Label="ExtensionTargets">
-  </ImportGroup>
-</Project>
diff --git a/compat/libusb-1.0/msvc/libusb_dll.vcxproj.filters b/compat/libusb-1.0/msvc/libusb_dll.vcxproj.filters
deleted file mode 100644
index 1078ae1..0000000
--- a/compat/libusb-1.0/msvc/libusb_dll.vcxproj.filters
+++ /dev/null
@@ -1,69 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup>
-    <Filter Include="Source Files">
-      <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
-      <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
-    </Filter>
-    <Filter Include="Header Files">
-      <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
-      <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
-    </Filter>
-    <Filter Include="Resource Files">
-      <UniqueIdentifier>{d81e81ca-b13e-4a15-b54b-b12b41361e6b}</UniqueIdentifier>
-    </Filter>
-  </ItemGroup>
-  <ItemGroup>
-    <ClCompile Include="..\libusb\core.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\libusb\descriptor.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\libusb\io.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\libusb\os\poll_windows.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\libusb\sync.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\libusb\os\threads_windows.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\libusb\os\windows_usb.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include=".\config.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\libusb\libusb.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\libusb\libusbi.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\libusb\os\poll_windows.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\libusb\os\threads_windows.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\libusb\os\windows_usb.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="..\libusb\libusb-1.0.def">
-      <Filter>Resource Files</Filter>
-    </None>
-  </ItemGroup>
-  <ItemGroup>
-    <ResourceCompile Include="..\libusb\libusb-1.0.rc">
-      <Filter>Resource Files</Filter>
-    </ResourceCompile>
-  </ItemGroup>
-</Project>
diff --git a/compat/libusb-1.0/msvc/libusb_sources b/compat/libusb-1.0/msvc/libusb_sources
deleted file mode 100644
index 8e8e65c..0000000
--- a/compat/libusb-1.0/msvc/libusb_sources
+++ /dev/null
@@ -1,36 +0,0 @@
-#TARGETTYPE is not defined, to allow selection between static lib or DLL with ddk_build
-TARGETNAME=libusb-1.0
-DLLDEF=..\libusb-1.0.def
-
-!IFNDEF MSC_WARNING_LEVEL
-MSC_WARNING_LEVEL=/W3
-!ENDIF
-
-!IFDEF STATIC_LIBC
-USE_LIBCMT=1
-!ELSE
-USE_MSVCRT=1
-!ENDIF
-
-INCLUDES=..;..\..\msvc;$(DDK_INC_PATH)
-C_DEFINES= $(C_DEFINES) $(LIBUSB_DEFINES) /DDDKBUILD
-
-# http://jpassing.com/2009/10/21/ltcg-issues-with-the-win7amd64-environment-of-wdk-7600/
-# prevents the following error when using the 64 bit static lib with Visual Studio 2010:
-# "fatal error C1001: An internal error has occurred in the compiler.
-# (compiler file 'f:\dd\vctools\compiler\utc\src\p2\p2symtab.c', line 1823)"
-# and the following with Visual Studio 2010:
-# "fatal error C1047: The object or library file 'libusb-1.0.lib' was created with
-#  an older compiler than other objects; rebuild old objects and libraries"
-USER_C_FLAGS=/GL-
-
-TARGETLIBS=$(SDK_LIB_PATH)\kernel32.lib
-
-SOURCES=..\core.c \
-	..\descriptor.c \
-	..\io.c \
-	..\sync.c \
-	threads_windows.c \
-	poll_windows.c \
-	windows_usb.c \
-	..\libusb-1.0.rc
diff --git a/compat/libusb-1.0/msvc/libusb_static.dsp b/compat/libusb-1.0/msvc/libusb_static.dsp
deleted file mode 100644
index 007fcc7..0000000
--- a/compat/libusb-1.0/msvc/libusb_static.dsp
+++ /dev/null
@@ -1,170 +0,0 @@
-# Microsoft Developer Studio Project File - Name="libusb_static" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Static Library" 0x0104
-
-CFG=libusb_static - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE 
-!MESSAGE NMAKE /f "libusb_static.mak".
-!MESSAGE 
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE 
-!MESSAGE NMAKE /f "libusb_static.mak" CFG="libusb_static - Win32 Debug"
-!MESSAGE 
-!MESSAGE Possible choices for configuration are:
-!MESSAGE 
-!MESSAGE "libusb_static - Win32 Release" (based on "Win32 (x86) Static Library")
-!MESSAGE "libusb_static - Win32 Debug" (based on "Win32 (x86) Static Library")
-!MESSAGE 
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF  "$(CFG)" == "libusb_static - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "../Win32/Release/lib"
-# PROP Intermediate_Dir "../Win32/Release/lib"
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_LIB" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I "../libusb" /D "WIN32" /D "NDEBUG" /D "_UNICODE" /D "UNICODE" /U "_MBCS" /D "_LIB" /FR /FD /EHsc /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LIB32=link.exe -lib
-# ADD BASE LIB32 /nologo
-# ADD LIB32 /nologo /out:"../Win32/Release/lib/libusb-1.0.lib"
-
-!ELSEIF  "$(CFG)" == "libusb_static - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "../Win32/Debug/lib"
-# PROP Intermediate_Dir "../Win32/Debug/lib"
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_LIB" /YX /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "." /I "../libusb" /D "WIN32" /D "_DEBUG" /D "_UNICODE" /D "UNICODE" /U "_MBCS" /D "_LIB" /FR /FD /GZ /EHsc /c
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo /n
-LIB32=link.exe -lib
-# ADD BASE LIB32 /nologo
-# ADD LIB32 /nologo /out:"../Win32/Debug/lib/libusb-1.0.lib"
-
-!ENDIF 
-
-# Begin Target
-
-# Name "libusb_static - Win32 Release"
-# Name "libusb_static - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=..\libusb\core.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\darwin_usb.c
-# PROP Exclude_From_Build 1
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\descriptor.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\io.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\linux_usbfs.c
-# PROP Exclude_From_Build 1
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\poll_windows.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\sync.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\threads_windows.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\windows_usb.c
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=.\config.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\darwin_usb.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\libusb.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\libusbi.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\linux_usbfs.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\poll_posix.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\poll_windows.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\threads_posix.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\threads_windows.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\libusb\os\windows_usb.h
-# End Source File
-# End Group
-# End Target
-# End Project
diff --git a/compat/libusb-1.0/msvc/libusb_static.vcproj b/compat/libusb-1.0/msvc/libusb_static.vcproj
deleted file mode 100644
index bd0ca52..0000000
--- a/compat/libusb-1.0/msvc/libusb_static.vcproj
+++ /dev/null
@@ -1,346 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
-	ProjectType="Visual C++"
-	Version="8.00"
-	Name="libusb-1.0 (static)"
-	ProjectGUID="{5AB6B770-1925-48D5-ABC2-930F3259C020}"
-	RootNamespace="libusb"
-	Keyword="Win32Proj"
-	>
-	<Platforms>
-		<Platform
-			Name="Win32"
-		/>
-		<Platform
-			Name="x64"
-		/>
-	</Platforms>
-	<ToolFiles>
-	</ToolFiles>
-	<Configurations>
-		<Configuration
-			Name="Debug|Win32"
-			OutputDirectory="..\$(PlatformName)\$(ConfigurationName)\lib"
-			IntermediateDirectory="..\$(PlatformName)\$(ConfigurationName)\lib\libusb-1.0"
-			ConfigurationType="4"
-			CharacterSet="1"
-			>
-			<Tool
-				Name="VCPreBuildEventTool"
-			/>
-			<Tool
-				Name="VCCustomBuildTool"
-			/>
-			<Tool
-				Name="VCXMLDataGeneratorTool"
-			/>
-			<Tool
-				Name="VCWebServiceProxyGeneratorTool"
-			/>
-			<Tool
-				Name="VCMIDLTool"
-			/>
-			<Tool
-				Name="VCCLCompilerTool"
-				Optimization="0"
-				AdditionalIncludeDirectories=".;..\libusb"
-				PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
-				MinimalRebuild="true"
-				BasicRuntimeChecks="3"
-				RuntimeLibrary="3"
-				UsePrecompiledHeader="0"
-				WarningLevel="3"
-				Detect64BitPortabilityProblems="false"
-				DebugInformationFormat="4"
-			/>
-			<Tool
-				Name="VCManagedResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCPreLinkEventTool"
-			/>
-			<Tool
-				Name="VCLibrarianTool"
-				OutputFile="$(OutDir)\libusb-1.0.lib"
-			/>
-			<Tool
-				Name="VCALinkTool"
-			/>
-			<Tool
-				Name="VCXDCMakeTool"
-			/>
-			<Tool
-				Name="VCBscMakeTool"
-			/>
-			<Tool
-				Name="VCFxCopTool"
-			/>
-			<Tool
-				Name="VCPostBuildEventTool"
-			/>
-		</Configuration>
-		<Configuration
-			Name="Release|Win32"
-			OutputDirectory="..\$(PlatformName)\$(ConfigurationName)\lib"
-			IntermediateDirectory="..\$(PlatformName)\$(ConfigurationName)\lib\libusb-1.0"
-			ConfigurationType="4"
-			CharacterSet="1"
-			WholeProgramOptimization="1"
-			>
-			<Tool
-				Name="VCPreBuildEventTool"
-			/>
-			<Tool
-				Name="VCCustomBuildTool"
-			/>
-			<Tool
-				Name="VCXMLDataGeneratorTool"
-			/>
-			<Tool
-				Name="VCWebServiceProxyGeneratorTool"
-			/>
-			<Tool
-				Name="VCMIDLTool"
-			/>
-			<Tool
-				Name="VCCLCompilerTool"
-				AdditionalIncludeDirectories=".;..\libusb"
-				PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
-				RuntimeLibrary="2"
-				UsePrecompiledHeader="0"
-				WarningLevel="3"
-				Detect64BitPortabilityProblems="false"
-				DebugInformationFormat="3"
-			/>
-			<Tool
-				Name="VCManagedResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCPreLinkEventTool"
-			/>
-			<Tool
-				Name="VCLibrarianTool"
-				OutputFile="$(OutDir)\libusb-1.0.lib"
-			/>
-			<Tool
-				Name="VCALinkTool"
-			/>
-			<Tool
-				Name="VCXDCMakeTool"
-			/>
-			<Tool
-				Name="VCBscMakeTool"
-			/>
-			<Tool
-				Name="VCFxCopTool"
-			/>
-			<Tool
-				Name="VCPostBuildEventTool"
-			/>
-		</Configuration>
-		<Configuration
-			Name="Debug|x64"
-			OutputDirectory="..\$(PlatformName)\$(ConfigurationName)\lib"
-			IntermediateDirectory="..\$(PlatformName)\$(ConfigurationName)\lib\libusb-1.0"
-			ConfigurationType="4"
-			CharacterSet="1"
-			>
-			<Tool
-				Name="VCPreBuildEventTool"
-			/>
-			<Tool
-				Name="VCCustomBuildTool"
-			/>
-			<Tool
-				Name="VCXMLDataGeneratorTool"
-			/>
-			<Tool
-				Name="VCWebServiceProxyGeneratorTool"
-			/>
-			<Tool
-				Name="VCMIDLTool"
-				TargetEnvironment="3"
-			/>
-			<Tool
-				Name="VCCLCompilerTool"
-				Optimization="0"
-				AdditionalIncludeDirectories=".;..\libusb"
-				PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
-				MinimalRebuild="true"
-				BasicRuntimeChecks="3"
-				RuntimeLibrary="3"
-				UsePrecompiledHeader="0"
-				WarningLevel="3"
-				Detect64BitPortabilityProblems="false"
-				DebugInformationFormat="3"
-			/>
-			<Tool
-				Name="VCManagedResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCPreLinkEventTool"
-			/>
-			<Tool
-				Name="VCLibrarianTool"
-				OutputFile="$(OutDir)\libusb-1.0.lib"
-			/>
-			<Tool
-				Name="VCALinkTool"
-			/>
-			<Tool
-				Name="VCXDCMakeTool"
-			/>
-			<Tool
-				Name="VCBscMakeTool"
-			/>
-			<Tool
-				Name="VCFxCopTool"
-			/>
-			<Tool
-				Name="VCPostBuildEventTool"
-			/>
-		</Configuration>
-		<Configuration
-			Name="Release|x64"
-			OutputDirectory="..\$(PlatformName)\$(ConfigurationName)\lib"
-			IntermediateDirectory="..\$(PlatformName)\$(ConfigurationName)\lib\libusb-1.0"
-			ConfigurationType="4"
-			CharacterSet="1"
-			WholeProgramOptimization="1"
-			>
-			<Tool
-				Name="VCPreBuildEventTool"
-			/>
-			<Tool
-				Name="VCCustomBuildTool"
-			/>
-			<Tool
-				Name="VCXMLDataGeneratorTool"
-			/>
-			<Tool
-				Name="VCWebServiceProxyGeneratorTool"
-			/>
-			<Tool
-				Name="VCMIDLTool"
-				TargetEnvironment="3"
-			/>
-			<Tool
-				Name="VCCLCompilerTool"
-				AdditionalIncludeDirectories=".;..\libusb"
-				PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS"
-				RuntimeLibrary="2"
-				UsePrecompiledHeader="0"
-				WarningLevel="3"
-				Detect64BitPortabilityProblems="false"
-				DebugInformationFormat="3"
-			/>
-			<Tool
-				Name="VCManagedResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCPreLinkEventTool"
-			/>
-			<Tool
-				Name="VCLibrarianTool"
-				OutputFile="$(OutDir)\libusb-1.0.lib"
-			/>
-			<Tool
-				Name="VCALinkTool"
-			/>
-			<Tool
-				Name="VCXDCMakeTool"
-			/>
-			<Tool
-				Name="VCBscMakeTool"
-			/>
-			<Tool
-				Name="VCFxCopTool"
-			/>
-			<Tool
-				Name="VCPostBuildEventTool"
-			/>
-		</Configuration>
-	</Configurations>
-	<References>
-	</References>
-	<Files>
-		<Filter
-			Name="Source Files"
-			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
-			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
-			>
-			<File
-				RelativePath="..\libusb\core.c"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\descriptor.c"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\io.c"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\sync.c"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\os\threads_windows.c"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\os\poll_windows.c"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\os\windows_usb.c"
-				>
-			</File>
-		</Filter>
-		<Filter
-			Name="Header Files"
-			Filter="h;hpp;hxx;hm;inl;inc;xsd"
-			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
-			>
-			<File
-				RelativePath=".\config.h"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\libusb.h"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\libusbi.h"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\os\threads_windows.h"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\os\poll_windows.h"
-				>
-			</File>
-			<File
-				RelativePath="..\libusb\os\windows_usb.h"
-				>
-			</File>
-		</Filter>
-	</Files>
-	<Globals>
-	</Globals>
-</VisualStudioProject>
diff --git a/compat/libusb-1.0/msvc/libusb_static.vcxproj b/compat/libusb-1.0/msvc/libusb_static.vcxproj
deleted file mode 100644
index 63fb20b..0000000
--- a/compat/libusb-1.0/msvc/libusb_static.vcxproj
+++ /dev/null
@@ -1,150 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup Label="ProjectConfigurations">
-    <ProjectConfiguration Include="Debug|Win32">
-      <Configuration>Debug</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Debug|x64">
-      <Configuration>Debug</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|Win32">
-      <Configuration>Release</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|x64">
-      <Configuration>Release</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-  </ItemGroup>
-  <PropertyGroup Label="Globals">
-    <ProjectName>libusb-1.0 (static)</ProjectName>
-    <ProjectGuid>{349EE8F9-7D25-4909-AAF5-FF3FADE72187}</ProjectGuid>
-    <RootNamespace>libusb</RootNamespace>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
-    <ConfigurationType>StaticLibrary</ConfigurationType>
-    <CharacterSet>Unicode</CharacterSet>
-    <WholeProgramOptimization>true</WholeProgramOptimization>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
-    <ConfigurationType>StaticLibrary</ConfigurationType>
-    <CharacterSet>Unicode</CharacterSet>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
-    <ConfigurationType>StaticLibrary</ConfigurationType>
-    <CharacterSet>Unicode</CharacterSet>
-    <WholeProgramOptimization>true</WholeProgramOptimization>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
-    <ConfigurationType>StaticLibrary</ConfigurationType>
-    <CharacterSet>Unicode</CharacterSet>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
-  <ImportGroup Label="ExtensionSettings">
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <PropertyGroup Label="UserMacros" />
-  <PropertyGroup>
-    <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)..\$(Platform)\$(Configuration)\lib\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)..\$(Platform)\$(Configuration)\lib\libusb-1.0\</IntDir>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)..\$(Platform)\$(Configuration)\lib\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)..\$(Platform)\$(Configuration)\lib\libusb-1.0\</IntDir>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)..\$(Platform)\$(Configuration)\lib\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)..\$(Platform)\$(Configuration)\lib\libusb-1.0\</IntDir>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)..\$(Platform)\$(Configuration)\lib\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)..\$(Platform)\$(Configuration)\lib\libusb-1.0\</IntDir>
-    <TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">libusb-1.0</TargetName>
-    <TargetName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">libusb-1.0</TargetName>
-    <TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">libusb-1.0</TargetName>
-    <TargetName Condition="'$(Configuration)|$(Platform)'=='Release|x64'">libusb-1.0</TargetName>
-  </PropertyGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>.;..\libusb;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
-      <WarningLevel>Level3</WarningLevel>
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
-    </ClCompile>
-    <Lib>
-      <OutputFile>$(OutDir)libusb-1.0.lib</OutputFile>
-    </Lib>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
-    <Midl>
-      <TargetEnvironment>X64</TargetEnvironment>
-    </Midl>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>.;..\libusb;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_WIN32;_WIN64;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
-      <WarningLevel>Level3</WarningLevel>
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
-    </ClCompile>
-    <Lib>
-      <OutputFile>$(OutDir)libusb-1.0.lib</OutputFile>
-    </Lib>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <ClCompile>
-      <AdditionalIncludeDirectories>.;..\libusb;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_WIN32;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
-      <WarningLevel>Level3</WarningLevel>
-    </ClCompile>
-    <Lib>
-      <OutputFile>$(OutDir)libusb-1.0.lib</OutputFile>
-    </Lib>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
-    <Midl>
-      <TargetEnvironment>X64</TargetEnvironment>
-    </Midl>
-    <ClCompile>
-      <AdditionalIncludeDirectories>.;..\libusb;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_WIN32;_WIN64;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
-      <WarningLevel>Level3</WarningLevel>
-    </ClCompile>
-    <Lib>
-      <OutputFile>$(OutDir)libusb-1.0.lib</OutputFile>
-    </Lib>
-  </ItemDefinitionGroup>
-  <ItemGroup>
-    <ClCompile Include="..\libusb\core.c" />
-    <ClCompile Include="..\libusb\descriptor.c" />
-    <ClCompile Include="..\libusb\io.c" />
-    <ClCompile Include="..\libusb\os\poll_windows.c" />
-    <ClCompile Include="..\libusb\sync.c" />
-    <ClCompile Include="..\libusb\os\threads_windows.c" />
-    <ClCompile Include="..\libusb\os\windows_usb.c" />
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include=".\config.h" />
-    <ClInclude Include="..\libusb\libusb.h" />
-    <ClInclude Include="..\libusb\libusbi.h" />
-    <ClInclude Include="..\libusb\os\poll_windows.h" />
-    <ClInclude Include="..\libusb\os\threads_windows.h" />
-    <ClInclude Include="..\libusb\os\windows_usb.h" />
-  </ItemGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
-  <ImportGroup Label="ExtensionTargets">
-  </ImportGroup>
-</Project>
diff --git a/compat/libusb-1.0/msvc/libusb_static.vcxproj.filters b/compat/libusb-1.0/msvc/libusb_static.vcxproj.filters
deleted file mode 100644
index 11fe1fb..0000000
--- a/compat/libusb-1.0/msvc/libusb_static.vcxproj.filters
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup>
-    <Filter Include="Source Files">
-      <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
-      <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
-    </Filter>
-    <Filter Include="Header Files">
-      <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
-      <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
-    </Filter>
-  </ItemGroup>
-  <ItemGroup>
-    <ClCompile Include="..\libusb\core.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\libusb\descriptor.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\libusb\io.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\libusb\os\poll_windows.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\libusb\sync.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\libusb\os\threads_windows.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\libusb\os\windows_usb.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include=".\config.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\libusb\libusb.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\libusb\libusbi.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\libusb\os\poll_windows.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\libusb\os\threads_windows.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\libusb\os\windows_usb.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-  </ItemGroup>
-</Project>
diff --git a/compat/libusb-1.0/msvc/libusb_vs2005.sln b/compat/libusb-1.0/msvc/libusb_vs2005.sln
deleted file mode 100644
index 6ebb5e6..0000000
--- a/compat/libusb-1.0/msvc/libusb_vs2005.sln
+++ /dev/null
@@ -1,61 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 9.00
-# Visual Studio 2005
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libusb-1.0 (static)", "libusb_static.vcproj", "{5AB6B770-1925-48D5-ABC2-930F3259C020}"
-	ProjectSection(WebsiteProperties) = preProject
-		Debug.AspNetCompiler.Debug = "True"
-		Release.AspNetCompiler.Debug = "False"
-	EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libusb-1.0 (dll)", "libusb_dll.vcproj", "{8224C054-5968-4238-832C-167155E7ECC3}"
-	ProjectSection(WebsiteProperties) = preProject
-		Debug.AspNetCompiler.Debug = "True"
-		Release.AspNetCompiler.Debug = "False"
-	EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "listdevs", "listdevs.vcproj", "{98CFD8FA-EE20-40D5-AF13-F8C4856D6CA5}"
-	ProjectSection(WebsiteProperties) = preProject
-		Debug.AspNetCompiler.Debug = "True"
-		Release.AspNetCompiler.Debug = "False"
-	EndProjectSection
-	ProjectSection(ProjectDependencies) = postProject
-		{5AB6B770-1925-48D5-ABC2-930F3259C020} = {5AB6B770-1925-48D5-ABC2-930F3259C020}
-	EndProjectSection
-EndProject
-Global
-	GlobalSection(SolutionConfigurationPlatforms) = preSolution
-		Debug|Win32 = Debug|Win32
-		Debug|x64 = Debug|x64
-		Release|Win32 = Release|Win32
-		Release|x64 = Release|x64
-	EndGlobalSection
-	GlobalSection(ProjectConfigurationPlatforms) = postSolution
-		{5AB6B770-1925-48D5-ABC2-930F3259C020}.Debug|Win32.ActiveCfg = Debug|Win32
-		{5AB6B770-1925-48D5-ABC2-930F3259C020}.Debug|Win32.Build.0 = Debug|Win32
-		{5AB6B770-1925-48D5-ABC2-930F3259C020}.Debug|x64.ActiveCfg = Debug|x64
-		{5AB6B770-1925-48D5-ABC2-930F3259C020}.Debug|x64.Build.0 = Debug|x64
-		{5AB6B770-1925-48D5-ABC2-930F3259C020}.Release|Win32.ActiveCfg = Release|Win32
-		{5AB6B770-1925-48D5-ABC2-930F3259C020}.Release|Win32.Build.0 = Release|Win32
-		{5AB6B770-1925-48D5-ABC2-930F3259C020}.Release|x64.ActiveCfg = Release|x64
-		{5AB6B770-1925-48D5-ABC2-930F3259C020}.Release|x64.Build.0 = Release|x64
-		{8224C054-5968-4238-832C-167155E7ECC3}.Debug|Win32.ActiveCfg = Debug|Win32
-		{8224C054-5968-4238-832C-167155E7ECC3}.Debug|Win32.Build.0 = Debug|Win32
-		{8224C054-5968-4238-832C-167155E7ECC3}.Debug|x64.ActiveCfg = Debug|x64
-		{8224C054-5968-4238-832C-167155E7ECC3}.Debug|x64.Build.0 = Debug|x64
-		{8224C054-5968-4238-832C-167155E7ECC3}.Release|Win32.ActiveCfg = Release|Win32
-		{8224C054-5968-4238-832C-167155E7ECC3}.Release|Win32.Build.0 = Release|Win32
-		{8224C054-5968-4238-832C-167155E7ECC3}.Release|x64.ActiveCfg = Release|x64
-		{8224C054-5968-4238-832C-167155E7ECC3}.Release|x64.Build.0 = Release|x64
-		{98CFD8FA-EE20-40D5-AF13-F8C4856D6CA5}.Debug|Win32.ActiveCfg = Debug|Win32
-		{98CFD8FA-EE20-40D5-AF13-F8C4856D6CA5}.Debug|Win32.Build.0 = Debug|Win32
-		{98CFD8FA-EE20-40D5-AF13-F8C4856D6CA5}.Debug|x64.ActiveCfg = Debug|x64
-		{98CFD8FA-EE20-40D5-AF13-F8C4856D6CA5}.Debug|x64.Build.0 = Debug|x64
-		{98CFD8FA-EE20-40D5-AF13-F8C4856D6CA5}.Release|Win32.ActiveCfg = Release|Win32
-		{98CFD8FA-EE20-40D5-AF13-F8C4856D6CA5}.Release|Win32.Build.0 = Release|Win32
-		{98CFD8FA-EE20-40D5-AF13-F8C4856D6CA5}.Release|x64.ActiveCfg = Release|x64
-		{98CFD8FA-EE20-40D5-AF13-F8C4856D6CA5}.Release|x64.Build.0 = Release|x64
-	EndGlobalSection
-	GlobalSection(SolutionProperties) = preSolution
-		HideSolutionNode = FALSE
-	EndGlobalSection
-EndGlobal
diff --git a/compat/libusb-1.0/msvc/libusb_vs2010.sln b/compat/libusb-1.0/msvc/libusb_vs2010.sln
deleted file mode 100644
index 1160f52..0000000
--- a/compat/libusb-1.0/msvc/libusb_vs2010.sln
+++ /dev/null
@@ -1,49 +0,0 @@
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libusb-1.0 (static)", "libusb_static.vcxproj", "{349EE8F9-7D25-4909-AAF5-FF3FADE72187}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libusb-1.0 (dll)", "libusb_dll.vcxproj", "{349EE8FA-7D25-4909-AAF5-FF3FADE72187}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "listdevs", "listdevs.vcxproj", "{F4938DB0-3DE7-4737-9C5A-EAD1BE819F87}"
-EndProject
-Global
-	GlobalSection(SolutionConfigurationPlatforms) = preSolution
-		Debug|Win32 = Debug|Win32
-		Debug|x64 = Debug|x64
-		Release|Win32 = Release|Win32
-		Release|x64 = Release|x64
-	EndGlobalSection
-	GlobalSection(ProjectConfigurationPlatforms) = postSolution
-		{349EE8F9-7D25-4909-AAF5-FF3FADE72187}.Debug|Win32.ActiveCfg = Debug|Win32
-		{349EE8F9-7D25-4909-AAF5-FF3FADE72187}.Debug|Win32.Build.0 = Debug|Win32
-		{349EE8F9-7D25-4909-AAF5-FF3FADE72187}.Debug|x64.ActiveCfg = Debug|x64
-		{349EE8F9-7D25-4909-AAF5-FF3FADE72187}.Debug|x64.Build.0 = Debug|x64
-		{349EE8F9-7D25-4909-AAF5-FF3FADE72187}.Release|Win32.ActiveCfg = Release|Win32
-		{349EE8F9-7D25-4909-AAF5-FF3FADE72187}.Release|Win32.Build.0 = Release|Win32
-		{349EE8F9-7D25-4909-AAF5-FF3FADE72187}.Release|x64.ActiveCfg = Release|x64
-		{349EE8F9-7D25-4909-AAF5-FF3FADE72187}.Release|x64.Build.0 = Release|x64
-		{349EE8FA-7D25-4909-AAF5-FF3FADE72187}.Debug|Win32.ActiveCfg = Debug|Win32
-		{349EE8FA-7D25-4909-AAF5-FF3FADE72187}.Debug|x64.ActiveCfg = Debug|x64
-		{349EE8FA-7D25-4909-AAF5-FF3FADE72187}.Release|Win32.ActiveCfg = Release|Win32
-		{349EE8FA-7D25-4909-AAF5-FF3FADE72187}.Release|x64.ActiveCfg = Release|x64
-		{F4938DB0-3DE7-4737-9C5A-EAD1BE819F87}.Debug|Win32.ActiveCfg = Debug|Win32
-		{F4938DB0-3DE7-4737-9C5A-EAD1BE819F87}.Debug|Win32.Build.0 = Debug|Win32
-		{F4938DB0-3DE7-4737-9C5A-EAD1BE819F87}.Debug|x64.ActiveCfg = Debug|x64
-		{F4938DB0-3DE7-4737-9C5A-EAD1BE819F87}.Debug|x64.Build.0 = Debug|x64
-		{F4938DB0-3DE7-4737-9C5A-EAD1BE819F87}.Release|Win32.ActiveCfg = Release|Win32
-		{F4938DB0-3DE7-4737-9C5A-EAD1BE819F87}.Release|Win32.Build.0 = Release|Win32
-		{F4938DB0-3DE7-4737-9C5A-EAD1BE819F87}.Release|x64.ActiveCfg = Release|x64
-		{F4938DB0-3DE7-4737-9C5A-EAD1BE819F87}.Release|x64.Build.0 = Release|x64
-		{3F3138D0-7AB7-4268-9BF3-1A3EA5503A11}.Debug|Win32.ActiveCfg = Debug|Win32
-		{3F3138D0-7AB7-4268-9BF3-1A3EA5503A11}.Debug|Win32.Build.0 = Debug|Win32
-		{3F3138D0-7AB7-4268-9BF3-1A3EA5503A11}.Debug|x64.ActiveCfg = Debug|x64
-		{3F3138D0-7AB7-4268-9BF3-1A3EA5503A11}.Debug|x64.Build.0 = Debug|x64
-		{3F3138D0-7AB7-4268-9BF3-1A3EA5503A11}.Release|Win32.ActiveCfg = Release|Win32
-		{3F3138D0-7AB7-4268-9BF3-1A3EA5503A11}.Release|Win32.Build.0 = Release|Win32
-		{3F3138D0-7AB7-4268-9BF3-1A3EA5503A11}.Release|x64.ActiveCfg = Release|x64
-		{3F3138D0-7AB7-4268-9BF3-1A3EA5503A11}.Release|x64.Build.0 = Release|x64
-	EndGlobalSection
-	GlobalSection(SolutionProperties) = preSolution
-		HideSolutionNode = FALSE
-	EndGlobalSection
-EndGlobal
diff --git a/compat/libusb-1.0/msvc/libusb_vs2010.sln.orig b/compat/libusb-1.0/msvc/libusb_vs2010.sln.orig
deleted file mode 100644
index ac9d011..0000000
--- a/compat/libusb-1.0/msvc/libusb_vs2010.sln.orig
+++ /dev/null
@@ -1,77 +0,0 @@
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libusb-1.0 (static)", "libusb_static.vcxproj", "{349EE8F9-7D25-4909-AAF5-FF3FADE72187}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libusb-1.0 (dll)", "libusb_dll.vcxproj", "{349EE8FA-7D25-4909-AAF5-FF3FADE72187}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "listdevs", "listdevs.vcxproj", "{F4938DB0-3DE7-4737-9C5A-EAD1BE819F87}"
-EndProject
-<<<<<<< HEAD:msvc/libusb_vs2010.sln
-=======
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xusb", "xusb.vcxproj", "{3F3138D0-7AB7-4268-9BF3-1A3EA5503A11}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fxload", "fxload.vcxproj", "{9E166F7A-A793-9FB6-0A67-F0AED8AE8C88}"
-	ProjectSection(ProjectDependencies) = postProject
-		{AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E} = {AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}
-	EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "getopt", "getopt.vcxproj", "{AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}"
-EndProject
->>>>>>> 0597533... Samples: Add fxload sample for Cypress EZ-USB chips:msvc/libusb_2010.sln
-Global
-	GlobalSection(SolutionConfigurationPlatforms) = preSolution
-		Debug|Win32 = Debug|Win32
-		Debug|x64 = Debug|x64
-		Release|Win32 = Release|Win32
-		Release|x64 = Release|x64
-	EndGlobalSection
-	GlobalSection(ProjectConfigurationPlatforms) = postSolution
-		{349EE8F9-7D25-4909-AAF5-FF3FADE72187}.Debug|Win32.ActiveCfg = Debug|Win32
-		{349EE8F9-7D25-4909-AAF5-FF3FADE72187}.Debug|Win32.Build.0 = Debug|Win32
-		{349EE8F9-7D25-4909-AAF5-FF3FADE72187}.Debug|x64.ActiveCfg = Debug|x64
-		{349EE8F9-7D25-4909-AAF5-FF3FADE72187}.Debug|x64.Build.0 = Debug|x64
-		{349EE8F9-7D25-4909-AAF5-FF3FADE72187}.Release|Win32.ActiveCfg = Release|Win32
-		{349EE8F9-7D25-4909-AAF5-FF3FADE72187}.Release|Win32.Build.0 = Release|Win32
-		{349EE8F9-7D25-4909-AAF5-FF3FADE72187}.Release|x64.ActiveCfg = Release|x64
-		{349EE8F9-7D25-4909-AAF5-FF3FADE72187}.Release|x64.Build.0 = Release|x64
-		{349EE8FA-7D25-4909-AAF5-FF3FADE72187}.Debug|Win32.ActiveCfg = Debug|Win32
-		{349EE8FA-7D25-4909-AAF5-FF3FADE72187}.Debug|x64.ActiveCfg = Debug|x64
-		{349EE8FA-7D25-4909-AAF5-FF3FADE72187}.Release|Win32.ActiveCfg = Release|Win32
-		{349EE8FA-7D25-4909-AAF5-FF3FADE72187}.Release|x64.ActiveCfg = Release|x64
-		{F4938DB0-3DE7-4737-9C5A-EAD1BE819F87}.Debug|Win32.ActiveCfg = Debug|Win32
-		{F4938DB0-3DE7-4737-9C5A-EAD1BE819F87}.Debug|Win32.Build.0 = Debug|Win32
-		{F4938DB0-3DE7-4737-9C5A-EAD1BE819F87}.Debug|x64.ActiveCfg = Debug|x64
-		{F4938DB0-3DE7-4737-9C5A-EAD1BE819F87}.Debug|x64.Build.0 = Debug|x64
-		{F4938DB0-3DE7-4737-9C5A-EAD1BE819F87}.Release|Win32.ActiveCfg = Release|Win32
-		{F4938DB0-3DE7-4737-9C5A-EAD1BE819F87}.Release|Win32.Build.0 = Release|Win32
-		{F4938DB0-3DE7-4737-9C5A-EAD1BE819F87}.Release|x64.ActiveCfg = Release|x64
-		{F4938DB0-3DE7-4737-9C5A-EAD1BE819F87}.Release|x64.Build.0 = Release|x64
-		{3F3138D0-7AB7-4268-9BF3-1A3EA5503A11}.Debug|Win32.ActiveCfg = Debug|Win32
-		{3F3138D0-7AB7-4268-9BF3-1A3EA5503A11}.Debug|Win32.Build.0 = Debug|Win32
-		{3F3138D0-7AB7-4268-9BF3-1A3EA5503A11}.Debug|x64.ActiveCfg = Debug|x64
-		{3F3138D0-7AB7-4268-9BF3-1A3EA5503A11}.Debug|x64.Build.0 = Debug|x64
-		{3F3138D0-7AB7-4268-9BF3-1A3EA5503A11}.Release|Win32.ActiveCfg = Release|Win32
-		{3F3138D0-7AB7-4268-9BF3-1A3EA5503A11}.Release|Win32.Build.0 = Release|Win32
-		{3F3138D0-7AB7-4268-9BF3-1A3EA5503A11}.Release|x64.ActiveCfg = Release|x64
-		{3F3138D0-7AB7-4268-9BF3-1A3EA5503A11}.Release|x64.Build.0 = Release|x64
-		{9E166F7A-A793-9FB6-0A67-F0AED8AE8C88}.Debug|Win32.ActiveCfg = Debug|Win32
-		{9E166F7A-A793-9FB6-0A67-F0AED8AE8C88}.Debug|Win32.Build.0 = Debug|Win32
-		{9E166F7A-A793-9FB6-0A67-F0AED8AE8C88}.Debug|x64.ActiveCfg = Debug|x64
-		{9E166F7A-A793-9FB6-0A67-F0AED8AE8C88}.Debug|x64.Build.0 = Debug|x64
-		{9E166F7A-A793-9FB6-0A67-F0AED8AE8C88}.Release|Win32.ActiveCfg = Release|Win32
-		{9E166F7A-A793-9FB6-0A67-F0AED8AE8C88}.Release|Win32.Build.0 = Release|Win32
-		{9E166F7A-A793-9FB6-0A67-F0AED8AE8C88}.Release|x64.ActiveCfg = Release|x64
-		{9E166F7A-A793-9FB6-0A67-F0AED8AE8C88}.Release|x64.Build.0 = Release|x64
-		{AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}.Debug|Win32.ActiveCfg = Debug|Win32
-		{AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}.Debug|Win32.Build.0 = Debug|Win32
-		{AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}.Debug|x64.ActiveCfg = Debug|x64
-		{AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}.Debug|x64.Build.0 = Debug|x64
-		{AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}.Release|Win32.ActiveCfg = Release|Win32
-		{AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}.Release|Win32.Build.0 = Release|Win32
-		{AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}.Release|x64.ActiveCfg = Release|x64
-		{AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}.Release|x64.Build.0 = Release|x64
-	EndGlobalSection
-	GlobalSection(SolutionProperties) = preSolution
-		HideSolutionNode = FALSE
-	EndGlobalSection
-EndGlobal
diff --git a/compat/libusb-1.0/msvc/listdevs.dsp b/compat/libusb-1.0/msvc/listdevs.dsp
deleted file mode 100644
index 2ed8aec..0000000
--- a/compat/libusb-1.0/msvc/listdevs.dsp
+++ /dev/null
@@ -1,103 +0,0 @@
-# Microsoft Developer Studio Project File - Name="listdevs" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=listdevs - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE 
-!MESSAGE NMAKE /f "listdevs.mak".
-!MESSAGE 
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE 
-!MESSAGE NMAKE /f "listdevs.mak" CFG="listdevs - Win32 Debug"
-!MESSAGE 
-!MESSAGE Possible choices for configuration are:
-!MESSAGE 
-!MESSAGE "listdevs - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "listdevs - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE 
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF  "$(CFG)" == "listdevs - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "../Win32/Release/examples"
-# PROP Intermediate_Dir "../Win32/Release/examples/listdevs"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "../libusb" /I "." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /U "_MBCS" /FR /FD /EHsc /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib shell32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib shell32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib shell32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-
-!ELSEIF  "$(CFG)" == "listdevs - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "../Win32/Debug/examples"
-# PROP Intermediate_Dir "../Win32/Debug/examples/listdevs"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../libusb" /I "." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /U "_MBCS" /FR /FD /GZ /EHsc /c
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo /n "../Win32/Debug/dll/core.sbr" "../Win32/Debug/dll/descriptor.sbr" "../Win32/Debug/dll/io.sbr" "../Win32/Debug/dll/sync.sbr" "../Win32/Debug/dll/poll_windows.sbr" "../Win32/Debug/dll/threads_windows.sbr" "../Win32/Debug/dll/windows_usb.sbr"
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib shell32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib shell32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib shell32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386
-# SUBTRACT LINK32 /pdb:none
-
-!ENDIF 
-
-# Begin Target
-
-# Name "listdevs - Win32 Release"
-# Name "listdevs - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=..\examples\listdevs.c
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# End Target
-# End Project
diff --git a/compat/libusb-1.0/msvc/listdevs.vcproj b/compat/libusb-1.0/msvc/listdevs.vcproj
deleted file mode 100644
index cff754e..0000000
--- a/compat/libusb-1.0/msvc/listdevs.vcproj
+++ /dev/null
@@ -1,360 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
-	ProjectType="Visual C++"
-	Version="8.00"
-	Name="listdevs"
-	ProjectGUID="{98CFD8FA-EE20-40D5-AF13-F8C4856D6CA5}"
-	RootNamespace="examples"
-	Keyword="Win32Proj"
-	>
-	<Platforms>
-		<Platform
-			Name="Win32"
-		/>
-		<Platform
-			Name="x64"
-		/>
-	</Platforms>
-	<ToolFiles>
-	</ToolFiles>
-	<Configurations>
-		<Configuration
-			Name="Debug|Win32"
-			OutputDirectory="..\$(PlatformName)\$(ConfigurationName)\examples"
-			IntermediateDirectory="..\$(PlatformName)\$(ConfigurationName)\examples\$(ProjectName)"
-			ConfigurationType="1"
-			CharacterSet="1"
-			>
-			<Tool
-				Name="VCPreBuildEventTool"
-			/>
-			<Tool
-				Name="VCCustomBuildTool"
-			/>
-			<Tool
-				Name="VCXMLDataGeneratorTool"
-			/>
-			<Tool
-				Name="VCWebServiceProxyGeneratorTool"
-			/>
-			<Tool
-				Name="VCMIDLTool"
-			/>
-			<Tool
-				Name="VCCLCompilerTool"
-				Optimization="0"
-				AdditionalIncludeDirectories="..\libusb"
-				PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
-				MinimalRebuild="true"
-				BasicRuntimeChecks="3"
-				RuntimeLibrary="3"
-				UsePrecompiledHeader="0"
-				WarningLevel="3"
-				Detect64BitPortabilityProblems="false"
-				DebugInformationFormat="4"
-			/>
-			<Tool
-				Name="VCManagedResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCPreLinkEventTool"
-			/>
-			<Tool
-				Name="VCLinkerTool"
-				LinkIncremental="2"
-				GenerateDebugInformation="true"
-				SubSystem="1"
-				TargetMachine="1"
-			/>
-			<Tool
-				Name="VCALinkTool"
-			/>
-			<Tool
-				Name="VCManifestTool"
-			/>
-			<Tool
-				Name="VCXDCMakeTool"
-			/>
-			<Tool
-				Name="VCBscMakeTool"
-			/>
-			<Tool
-				Name="VCFxCopTool"
-			/>
-			<Tool
-				Name="VCAppVerifierTool"
-			/>
-			<Tool
-				Name="VCWebDeploymentTool"
-			/>
-			<Tool
-				Name="VCPostBuildEventTool"
-			/>
-		</Configuration>
-		<Configuration
-			Name="Release|Win32"
-			OutputDirectory="..\$(PlatformName)\$(ConfigurationName)\examples"
-			IntermediateDirectory="..\$(PlatformName)\$(ConfigurationName)\examples\$(ProjectName)"
-			ConfigurationType="1"
-			CharacterSet="1"
-			WholeProgramOptimization="1"
-			>
-			<Tool
-				Name="VCPreBuildEventTool"
-			/>
-			<Tool
-				Name="VCCustomBuildTool"
-			/>
-			<Tool
-				Name="VCXMLDataGeneratorTool"
-			/>
-			<Tool
-				Name="VCWebServiceProxyGeneratorTool"
-			/>
-			<Tool
-				Name="VCMIDLTool"
-			/>
-			<Tool
-				Name="VCCLCompilerTool"
-				AdditionalIncludeDirectories="..\libusb"
-				PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
-				RuntimeLibrary="2"
-				UsePrecompiledHeader="0"
-				WarningLevel="3"
-				Detect64BitPortabilityProblems="false"
-				DebugInformationFormat="3"
-			/>
-			<Tool
-				Name="VCManagedResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCPreLinkEventTool"
-			/>
-			<Tool
-				Name="VCLinkerTool"
-				LinkIncremental="1"
-				GenerateDebugInformation="true"
-				SubSystem="1"
-				OptimizeReferences="2"
-				EnableCOMDATFolding="2"
-				TargetMachine="1"
-			/>
-			<Tool
-				Name="VCALinkTool"
-			/>
-			<Tool
-				Name="VCManifestTool"
-			/>
-			<Tool
-				Name="VCXDCMakeTool"
-			/>
-			<Tool
-				Name="VCBscMakeTool"
-			/>
-			<Tool
-				Name="VCFxCopTool"
-			/>
-			<Tool
-				Name="VCAppVerifierTool"
-			/>
-			<Tool
-				Name="VCWebDeploymentTool"
-			/>
-			<Tool
-				Name="VCPostBuildEventTool"
-			/>
-		</Configuration>
-		<Configuration
-			Name="Debug|x64"
-			OutputDirectory="..\$(PlatformName)\$(ConfigurationName)\examples"
-			IntermediateDirectory="..\$(PlatformName)\$(ConfigurationName)\examples\$(ProjectName)"
-			ConfigurationType="1"
-			CharacterSet="1"
-			>
-			<Tool
-				Name="VCPreBuildEventTool"
-			/>
-			<Tool
-				Name="VCCustomBuildTool"
-			/>
-			<Tool
-				Name="VCXMLDataGeneratorTool"
-			/>
-			<Tool
-				Name="VCWebServiceProxyGeneratorTool"
-			/>
-			<Tool
-				Name="VCMIDLTool"
-				TargetEnvironment="3"
-			/>
-			<Tool
-				Name="VCCLCompilerTool"
-				Optimization="0"
-				AdditionalIncludeDirectories="..\libusb"
-				PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
-				MinimalRebuild="true"
-				BasicRuntimeChecks="3"
-				RuntimeLibrary="3"
-				UsePrecompiledHeader="0"
-				WarningLevel="3"
-				Detect64BitPortabilityProblems="false"
-				DebugInformationFormat="3"
-			/>
-			<Tool
-				Name="VCManagedResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCPreLinkEventTool"
-			/>
-			<Tool
-				Name="VCLinkerTool"
-				LinkIncremental="2"
-				GenerateDebugInformation="true"
-				SubSystem="1"
-				TargetMachine="17"
-			/>
-			<Tool
-				Name="VCALinkTool"
-			/>
-			<Tool
-				Name="VCManifestTool"
-			/>
-			<Tool
-				Name="VCXDCMakeTool"
-			/>
-			<Tool
-				Name="VCBscMakeTool"
-			/>
-			<Tool
-				Name="VCFxCopTool"
-			/>
-			<Tool
-				Name="VCAppVerifierTool"
-			/>
-			<Tool
-				Name="VCWebDeploymentTool"
-			/>
-			<Tool
-				Name="VCPostBuildEventTool"
-			/>
-		</Configuration>
-		<Configuration
-			Name="Release|x64"
-			OutputDirectory="..\$(PlatformName)\$(ConfigurationName)\examples"
-			IntermediateDirectory="..\$(PlatformName)\$(ConfigurationName)\examples\$(ProjectName)"
-			ConfigurationType="1"
-			CharacterSet="1"
-			WholeProgramOptimization="1"
-			>
-			<Tool
-				Name="VCPreBuildEventTool"
-			/>
-			<Tool
-				Name="VCCustomBuildTool"
-			/>
-			<Tool
-				Name="VCXMLDataGeneratorTool"
-			/>
-			<Tool
-				Name="VCWebServiceProxyGeneratorTool"
-			/>
-			<Tool
-				Name="VCMIDLTool"
-				TargetEnvironment="3"
-			/>
-			<Tool
-				Name="VCCLCompilerTool"
-				AdditionalIncludeDirectories="..\libusb"
-				PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
-				RuntimeLibrary="2"
-				UsePrecompiledHeader="0"
-				WarningLevel="3"
-				Detect64BitPortabilityProblems="false"
-				DebugInformationFormat="3"
-			/>
-			<Tool
-				Name="VCManagedResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCResourceCompilerTool"
-			/>
-			<Tool
-				Name="VCPreLinkEventTool"
-			/>
-			<Tool
-				Name="VCLinkerTool"
-				LinkIncremental="1"
-				GenerateDebugInformation="true"
-				SubSystem="1"
-				OptimizeReferences="2"
-				EnableCOMDATFolding="2"
-				TargetMachine="17"
-			/>
-			<Tool
-				Name="VCALinkTool"
-			/>
-			<Tool
-				Name="VCManifestTool"
-			/>
-			<Tool
-				Name="VCXDCMakeTool"
-			/>
-			<Tool
-				Name="VCBscMakeTool"
-			/>
-			<Tool
-				Name="VCFxCopTool"
-			/>
-			<Tool
-				Name="VCAppVerifierTool"
-			/>
-			<Tool
-				Name="VCWebDeploymentTool"
-			/>
-			<Tool
-				Name="VCPostBuildEventTool"
-			/>
-		</Configuration>
-	</Configurations>
-	<References>
-	</References>
-	<Files>
-		<Filter
-			Name="Source Files"
-			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
-			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
-			>
-			<File
-				RelativePath="..\examples\listdevs.c"
-				>
-				<FileConfiguration
-					Name="Release|Win32"
-					>
-					<Tool
-						Name="VCCLCompilerTool"
-						Detect64BitPortabilityProblems="false"
-					/>
-				</FileConfiguration>
-				<FileConfiguration
-					Name="Release|x64"
-					>
-					<Tool
-						Name="VCCLCompilerTool"
-						Detect64BitPortabilityProblems="false"
-					/>
-				</FileConfiguration>
-			</File>
-		</Filter>
-	</Files>
-	<Globals>
-	</Globals>
-</VisualStudioProject>
diff --git a/compat/libusb-1.0/msvc/listdevs.vcxproj b/compat/libusb-1.0/msvc/listdevs.vcxproj
deleted file mode 100644
index b0164bb..0000000
--- a/compat/libusb-1.0/msvc/listdevs.vcxproj
+++ /dev/null
@@ -1,165 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup Label="ProjectConfigurations">
-    <ProjectConfiguration Include="Debug|Win32">
-      <Configuration>Debug</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Debug|x64">
-      <Configuration>Debug</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|Win32">
-      <Configuration>Release</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|x64">
-      <Configuration>Release</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-  </ItemGroup>
-  <PropertyGroup Label="Globals">
-    <ProjectName>listdevs</ProjectName>
-    <ProjectGuid>{F4938DB0-3DE7-4737-9C5A-EAD1BE819F87}</ProjectGuid>
-    <RootNamespace>examples</RootNamespace>
-    <Keyword>Win32Proj</Keyword>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <CharacterSet>Unicode</CharacterSet>
-    <WholeProgramOptimization>true</WholeProgramOptimization>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <CharacterSet>Unicode</CharacterSet>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <CharacterSet>Unicode</CharacterSet>
-    <WholeProgramOptimization>true</WholeProgramOptimization>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <CharacterSet>Unicode</CharacterSet>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
-  <ImportGroup Label="ExtensionSettings">
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-  </ImportGroup>
-  <PropertyGroup Label="UserMacros" />
-  <PropertyGroup>
-    <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)..\$(Platform)\$(Configuration)\examples\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)..\$(Platform)\$(Configuration)\examples\$(ProjectName)\</IntDir>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)..\$(Platform)\$(Configuration)\examples\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)..\$(Platform)\$(Configuration)\examples\$(ProjectName)\</IntDir>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)..\$(Platform)\$(Configuration)\examples\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)..\$(Platform)\$(Configuration)\examples\$(ProjectName)\</IntDir>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)..\$(Platform)\$(Configuration)\examples\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)..\$(Platform)\$(Configuration)\examples\$(ProjectName)\</IntDir>
-  </PropertyGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <BuildLog>
-      <Path>$(IntDir)$(ProjectName).htm</Path>
-    </BuildLog>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>..\libusb;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
-      <WarningLevel>Level3</WarningLevel>
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
-    </ClCompile>
-    <Link>
-      <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <ProgramDatabaseFile>$(TargetDir)$(ProjectName).pdb</ProgramDatabaseFile>
-      <SubSystem>Console</SubSystem>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
-    <BuildLog>
-      <Path>$(IntDir)$(ProjectName).htm</Path>
-    </BuildLog>
-    <Midl>
-      <TargetEnvironment>X64</TargetEnvironment>
-    </Midl>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>..\libusb;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
-      <WarningLevel>Level3</WarningLevel>
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
-    </ClCompile>
-    <Link>
-      <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <ProgramDatabaseFile>$(TargetDir)$(ProjectName).pdb</ProgramDatabaseFile>
-      <SubSystem>Console</SubSystem>
-      <TargetMachine>MachineX64</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <BuildLog>
-      <Path>$(IntDir)$(ProjectName).htm</Path>
-    </BuildLog>
-    <ClCompile>
-      <AdditionalIncludeDirectories>..\libusb;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
-      <WarningLevel>Level3</WarningLevel>
-    </ClCompile>
-    <Link>
-      <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ProgramDatabaseFile>$(TargetDir)$(ProjectName).pdb</ProgramDatabaseFile>
-      <SubSystem>Console</SubSystem>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
-    <BuildLog>
-      <Path>$(IntDir)$(ProjectName).htm</Path>
-    </BuildLog>
-    <Midl>
-      <TargetEnvironment>X64</TargetEnvironment>
-    </Midl>
-    <ClCompile>
-      <AdditionalIncludeDirectories>..\libusb;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
-      <WarningLevel>Level3</WarningLevel>
-    </ClCompile>
-    <Link>
-      <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ProgramDatabaseFile>$(TargetDir)$(ProjectName).pdb</ProgramDatabaseFile>
-      <SubSystem>Console</SubSystem>
-      <TargetMachine>MachineX64</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemGroup>
-    <ClCompile Include="..\examples\listdevs.c" />
-  </ItemGroup>
-  <ItemGroup>
-    <ProjectReference Include=".\libusb_static.vcxproj">
-      <Project>{349ee8f9-7d25-4909-aaf5-ff3fade72187}</Project>
-      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
-    </ProjectReference>
-  </ItemGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
-  <ImportGroup Label="ExtensionTargets">
-  </ImportGroup>
-</Project>
diff --git a/compat/libusb-1.0/msvc/listdevs.vcxproj.filters b/compat/libusb-1.0/msvc/listdevs.vcxproj.filters
deleted file mode 100644
index 856fc1c..0000000
--- a/compat/libusb-1.0/msvc/listdevs.vcxproj.filters
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup>
-    <Filter Include="Source Files">
-      <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
-      <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
-    </Filter>
-  </ItemGroup>
-  <ItemGroup>
-    <ClCompile Include="..\examples\listdevs.c">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-  </ItemGroup>
-</Project>
diff --git a/compat/libusb-1.0/msvc/listdevs_sources b/compat/libusb-1.0/msvc/listdevs_sources
deleted file mode 100644
index 97a5723..0000000
--- a/compat/libusb-1.0/msvc/listdevs_sources
+++ /dev/null
@@ -1,19 +0,0 @@
-TARGETNAME=listdevs
-TARGETTYPE=PROGRAM
-386_STDCALL=0
-
-_NT_TARGET_VERSION= $(_NT_TARGET_VERSION_WINXP)
-!IFNDEF MSC_WARNING_LEVEL
-MSC_WARNING_LEVEL=/W3
-!ENDIF
-
-!IFDEF STATIC_LIBC
-USE_LIBCMT=1
-!ELSE
-USE_MSVCRT=1
-!ENDIF
-
-UMTYPE=console
-INCLUDES=..\..\libusb;$(DDK_INC_PATH)
-UMLIBS=..\..\libusb\os\obj$(BUILD_ALT_DIR)\*\libusb-1.0.lib
-SOURCES=..\listdevs.c
diff --git a/compat/libusb-1.0/msvc/stdint.h b/compat/libusb-1.0/msvc/stdint.h
deleted file mode 100644
index 00988d9..0000000
--- a/compat/libusb-1.0/msvc/stdint.h
+++ /dev/null
@@ -1,256 +0,0 @@
-/**
- * This file has no copyright assigned and is placed in the Public Domain.
- * This file was originally part of the w64 mingw-runtime package.
- */
-
-/* ISO C9x  7.18  Integer types <stdint.h>
- * Based on ISO/IEC SC22/WG14 9899 Committee draft (SC22 N2794)
- *
- *  THIS SOFTWARE IS NOT COPYRIGHTED
- *
- *  Contributor: Danny Smith <danny_r_smith_2001@yahoo.co.nz>
- *  Modified for libusb/MSVC: Pete Batard <pbatard@gmail.com>
- *
- *  This source code is offered for use in the public domain. You may
- *  use, modify or distribute it freely.
- *
- *  This code is distributed in the hope that it will be useful but
- *  WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
- *  DISCLAIMED. This includes but is not limited to warranties of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- *  Date: 2010-04-02
- */
-
-#ifndef _MSC_VER
-#error This header should only be used with Microsoft compilers
-#endif
-
-#ifndef _STDINT_H
-#define _STDINT_H
-
-#ifndef _INTPTR_T_DEFINED
-#define _INTPTR_T_DEFINED
-#ifndef __intptr_t_defined
-#define __intptr_t_defined
-#undef intptr_t
-#ifdef _WIN64
-  typedef __int64 intptr_t;
-#else
-  typedef int intptr_t;
-#endif /* _WIN64 */
-#endif /* __intptr_t_defined */
-#endif /* _INTPTR_T_DEFINED */
-
-#ifndef _UINTPTR_T_DEFINED
-#define _UINTPTR_T_DEFINED
-#ifndef __uintptr_t_defined
-#define __uintptr_t_defined
-#undef uintptr_t
-#ifdef _WIN64
-  typedef unsigned __int64 uintptr_t;
-#else
-  typedef unsigned int uintptr_t;
-#endif /* _WIN64 */
-#endif /* __uintptr_t_defined */
-#endif /* _UINTPTR_T_DEFINED */
-
-#ifndef _PTRDIFF_T_DEFINED
-#define _PTRDIFF_T_DEFINED
-#ifndef _PTRDIFF_T_
-#define _PTRDIFF_T_
-#undef ptrdiff_t
-#ifdef _WIN64
-  typedef __int64 ptrdiff_t;
-#else
-  typedef int ptrdiff_t;
-#endif /* _WIN64 */
-#endif /* _PTRDIFF_T_ */
-#endif /* _PTRDIFF_T_DEFINED */
-
-#ifndef _WCHAR_T_DEFINED
-#define _WCHAR_T_DEFINED
-#ifndef __cplusplus
-  typedef unsigned short wchar_t;
-#endif /* C++ */
-#endif /* _WCHAR_T_DEFINED */
-
-#ifndef _WCTYPE_T_DEFINED
-#define _WCTYPE_T_DEFINED
-#ifndef _WINT_T
-#define _WINT_T
-  typedef unsigned short wint_t;
-  typedef unsigned short wctype_t;
-#endif /* _WINT_T */
-#endif /* _WCTYPE_T_DEFINED */
-
-/* 7.18.1.1  Exact-width integer types */
-typedef __int8 int8_t;
-typedef unsigned __int8   uint8_t;
-typedef __int16  int16_t;
-typedef unsigned __int16  uint16_t;
-typedef __int32  int32_t;
-typedef unsigned __int32  uint32_t;
-typedef __int64  int64_t;
-typedef unsigned __int64   uint64_t;
-
-/* 7.18.1.2  Minimum-width integer types */
-typedef signed char int_least8_t;
-typedef unsigned char   uint_least8_t;
-typedef short  int_least16_t;
-typedef unsigned short  uint_least16_t;
-typedef int  int_least32_t;
-typedef unsigned   uint_least32_t;
-typedef __int64  int_least64_t;
-typedef unsigned __int64   uint_least64_t;
-
-/*  7.18.1.3  Fastest minimum-width integer types
- *  Not actually guaranteed to be fastest for all purposes
- *  Here we use the exact-width types for 8 and 16-bit ints.
- */
-typedef __int8 int_fast8_t;
-typedef unsigned __int8 uint_fast8_t;
-typedef __int16  int_fast16_t;
-typedef unsigned __int16  uint_fast16_t;
-typedef __int32  int_fast32_t;
-typedef unsigned  __int32  uint_fast32_t;
-typedef __int64  int_fast64_t;
-typedef unsigned __int64   uint_fast64_t;
-
-/* 7.18.1.5  Greatest-width integer types */
-typedef __int64  intmax_t;
-typedef unsigned __int64   uintmax_t;
-
-/* 7.18.2  Limits of specified-width integer types */
-
-/* 7.18.2.1  Limits of exact-width integer types */
-#define INT8_MIN (-128)
-#define INT16_MIN (-32768)
-#define INT32_MIN (-2147483647 - 1)
-#define INT64_MIN  (-9223372036854775807LL - 1)
-
-#define INT8_MAX 127
-#define INT16_MAX 32767
-#define INT32_MAX 2147483647
-#define INT64_MAX 9223372036854775807LL
-
-#define UINT8_MAX 255
-#define UINT16_MAX 65535
-#define UINT32_MAX 0xffffffffU  /* 4294967295U */
-#define UINT64_MAX 0xffffffffffffffffULL /* 18446744073709551615ULL */
-
-/* 7.18.2.2  Limits of minimum-width integer types */
-#define INT_LEAST8_MIN INT8_MIN
-#define INT_LEAST16_MIN INT16_MIN
-#define INT_LEAST32_MIN INT32_MIN
-#define INT_LEAST64_MIN INT64_MIN
-
-#define INT_LEAST8_MAX INT8_MAX
-#define INT_LEAST16_MAX INT16_MAX
-#define INT_LEAST32_MAX INT32_MAX
-#define INT_LEAST64_MAX INT64_MAX
-
-#define UINT_LEAST8_MAX UINT8_MAX
-#define UINT_LEAST16_MAX UINT16_MAX
-#define UINT_LEAST32_MAX UINT32_MAX
-#define UINT_LEAST64_MAX UINT64_MAX
-
-/* 7.18.2.3  Limits of fastest minimum-width integer types */
-#define INT_FAST8_MIN INT8_MIN
-#define INT_FAST16_MIN INT16_MIN
-#define INT_FAST32_MIN INT32_MIN
-#define INT_FAST64_MIN INT64_MIN
-
-#define INT_FAST8_MAX INT8_MAX
-#define INT_FAST16_MAX INT16_MAX
-#define INT_FAST32_MAX INT32_MAX
-#define INT_FAST64_MAX INT64_MAX
-
-#define UINT_FAST8_MAX UINT8_MAX
-#define UINT_FAST16_MAX UINT16_MAX
-#define UINT_FAST32_MAX UINT32_MAX
-#define UINT_FAST64_MAX UINT64_MAX
-
-/* 7.18.2.4  Limits of integer types capable of holding
-    object pointers */
-#ifdef _WIN64
-#define INTPTR_MIN INT64_MIN
-#define INTPTR_MAX INT64_MAX
-#define UINTPTR_MAX UINT64_MAX
-#else
-#define INTPTR_MIN INT32_MIN
-#define INTPTR_MAX INT32_MAX
-#define UINTPTR_MAX UINT32_MAX
-#endif
-
-/* 7.18.2.5  Limits of greatest-width integer types */
-#define INTMAX_MIN INT64_MIN
-#define INTMAX_MAX INT64_MAX
-#define UINTMAX_MAX UINT64_MAX
-
-/* 7.18.3  Limits of other integer types */
-#ifdef _WIN64
-#define PTRDIFF_MIN INT64_MIN
-#define PTRDIFF_MAX INT64_MAX
-#else
-#define PTRDIFF_MIN INT32_MIN
-#define PTRDIFF_MAX INT32_MAX
-#endif
-
-#define SIG_ATOMIC_MIN INT32_MIN
-#define SIG_ATOMIC_MAX INT32_MAX
-
-#ifndef SIZE_MAX
-#ifdef _WIN64
-#define SIZE_MAX UINT64_MAX
-#else
-#define SIZE_MAX UINT32_MAX
-#endif
-#endif
-
-#ifndef WCHAR_MIN  /* also in wchar.h */
-#define WCHAR_MIN 0U
-#define WCHAR_MAX 0xffffU
-#endif
-
-/*
- * wint_t is unsigned short for compatibility with MS runtime
- */
-#define WINT_MIN 0U
-#define WINT_MAX 0xffffU
-
-
-/* 7.18.4  Macros for integer constants */
-
-/* 7.18.4.1  Macros for minimum-width integer constants
-
-    Accoding to Douglas Gwyn <gwyn@arl.mil>:
-	"This spec was changed in ISO/IEC 9899:1999 TC1; in ISO/IEC
-	9899:1999 as initially published, the expansion was required
-	to be an integer constant of precisely matching type, which
-	is impossible to accomplish for the shorter types on most
-	platforms, because C99 provides no standard way to designate
-	an integer constant with width less than that of type int.
-	TC1 changed this to require just an integer constant
-	*expression* with *promoted* type."
-
-	The trick used here is from Clive D W Feather.
-*/
-
-#define INT8_C(val) (INT_LEAST8_MAX-INT_LEAST8_MAX+(val))
-#define INT16_C(val) (INT_LEAST16_MAX-INT_LEAST16_MAX+(val))
-#define INT32_C(val) (INT_LEAST32_MAX-INT_LEAST32_MAX+(val))
-/*  The 'trick' doesn't work in C89 for long long because, without
-    suffix, (val) will be evaluated as int, not intmax_t */
-#define INT64_C(val) val##i64
-
-#define UINT8_C(val) (val)
-#define UINT16_C(val) (val)
-#define UINT32_C(val) (val##i32)
-#define UINT64_C(val) val##ui64
-
-/* 7.18.4.2  Macros for greatest-width integer constants */
-#define INTMAX_C(val) val##i64
-#define UINTMAX_C(val) val##ui64
-
-#endif