GeezerVison is showing github.com — Rename the lsusb example program to listdevs · Raghuvardhan-Reddy78/libusb@4afbc78
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .gitignore +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,7 @@ config.status |
24 | 24 | config.sub |
25 | 25 | *.swp |
26 | 26 | doxygen.cfg |
27 | | -lsusb |
| 27 | +listdevs |
28 | 28 | dpfp |
29 | 29 | dpfp_threaded |
30 | 30 | *.exe |
|
Collapse file
Copy file name to clipboardExpand all lines: examples/Makefile.am +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | INCLUDES = -I$(top_srcdir)/libusb |
2 | | -noinst_PROGRAMS = lsusb |
| 2 | +noinst_PROGRAMS = listdevs |
3 | 3 |
|
4 | | -lsusb_SOURCES = lsusb.c |
5 | | -lsusb_LDADD = ../libusb/libusb-1.0.la |
| 4 | +listdevs_SOURCES = listdevs.c |
| 5 | +listdevs_LDADD = ../libusb/libusb-1.0.la |
6 | 6 |
|
7 | 7 | if HAVE_SIGACTION |
8 | 8 | dpfp_SOURCES = dpfp.c |
|
Collapse file
Copy file name to clipboard File renamed without changes.
Collapse file
Copy file name to clipboardExpand all lines: msvc/ddk_build.cmd +10-10Lines changed: 10 additions & 10 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -66,23 +66,23 @@ copy %srcPath%\libusb-%version%.lib %dstPath%\lib |
66 | 66 |
|
67 | 67 | @echo off |
68 | 68 |
|
69 | | -if exist examples\lsusb_ddkbuild goto md7 |
70 | | -md examples\lsusb_ddkbuild |
| 69 | +if exist examples\listdevs_ddkbuild goto md7 |
| 70 | +md examples\listdevs_ddkbuild |
71 | 71 | :md7 |
72 | 72 |
|
73 | | -cd examples\lsusb_ddkbuild |
74 | | -copy ..\..\msvc\lsusb_sources sources >NUL 2>&1 |
| 73 | +cd examples\listdevs_ddkbuild |
| 74 | +copy ..\..\msvc\listdevs_sources sources >NUL 2>&1 |
75 | 75 | @echo on |
76 | 76 | build -cwgZ |
77 | 77 | @echo off |
78 | | -if errorlevel 1 goto buildlsusberror |
| 78 | +if errorlevel 1 goto buildlistdevserror |
79 | 79 | cd ..\.. |
80 | 80 |
|
81 | | -set srcPath=examples\lsusb_ddkbuild\obj%BUILD_ALT_DIR%\%cpudir% |
| 81 | +set srcPath=examples\listdevs_ddkbuild\obj%BUILD_ALT_DIR%\%cpudir% |
82 | 82 | @echo on |
83 | 83 |
|
84 | | -copy %srcPath%\lsusb.exe %dstPath%\examples |
85 | | -copy %srcPath%\lsusb.pdb %dstPath%\examples |
| 84 | +copy %srcPath%\listdevs.exe %dstPath%\examples |
| 85 | +copy %srcPath%\listdevs.pdb %dstPath%\examples |
86 | 86 |
|
87 | 87 | cd msvc |
88 | 88 | goto done |
@@ -93,9 +93,9 @@ cd ..\..\msvc |
93 | 93 | echo Build failed |
94 | 94 | goto done |
95 | 95 |
|
96 | | -:buildlsusberror |
| 96 | +:buildlistdevserror |
97 | 97 | cd ..\..\msvc |
98 | | -echo lsusb build failed |
| 98 | +echo listdevs build failed |
99 | 99 | goto done |
100 | 100 |
|
101 | 101 | :usage |
|
Collapse file
Copy file name to clipboardExpand all lines: msvc/libusb.dsw +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -27,7 +27,7 @@ Package=<4> |
27 | 27 |
|
28 | 28 | ############################################################################### |
29 | 29 |
|
30 | | -Project: "lsusb"=".\lsusb.dsp" - Package Owner=<4> |
| 30 | +Project: "listdevs"=".\listdevs.dsp" - Package Owner=<4> |
31 | 31 |
|
32 | 32 | Package=<5> |
33 | 33 | {{{ |
|
Collapse file
Copy file name to clipboardExpand all lines: msvc/libusb.sln +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libusb-1.0 (dll)", "libusb_ |
13 | 13 | Release.AspNetCompiler.Debug = "False" |
14 | 14 | EndProjectSection |
15 | 15 | EndProject |
16 | | -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lsusb", "lsusb.vcproj", "{98CFD8FA-EE20-40D5-AF13-F8C4856D6CA5}" |
| 16 | +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "listdevs", "listdevs.vcproj", "{98CFD8FA-EE20-40D5-AF13-F8C4856D6CA5}" |
17 | 17 | ProjectSection(WebsiteProperties) = preProject |
18 | 18 | Debug.AspNetCompiler.Debug = "True" |
19 | 19 | Release.AspNetCompiler.Debug = "False" |
|
Collapse file
Copy file name to clipboardExpand all lines: msvc/listdevs.dsp +13-13Lines changed: 13 additions & 13 deletions Collapse file
Copy file name to clipboardExpand all lines: msvc/listdevs.vcproj +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
2 | 2 | <VisualStudioProject |
3 | 3 | ProjectType="Visual C++" |
4 | 4 | Version="8.00" |
5 | | - Name="lsusb" |
| 5 | + Name="listdevs" |
6 | 6 | ProjectGUID="{98CFD8FA-EE20-40D5-AF13-F8C4856D6CA5}" |
7 | 7 | RootNamespace="examples" |
8 | 8 | Keyword="Win32Proj" |
|
334 | 334 | UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" |
335 | 335 | > |
336 | 336 | <File |
337 | | - RelativePath="..\examples\lsusb.c" |
| 337 | + RelativePath="..\examples\listdevs.c" |
338 | 338 | > |
339 | 339 | <FileConfiguration |
340 | 340 | Name="Release|Win32" |
|
Collapse file
Copy file name to clipboardExpand all lines: msvc/listdevs_sources +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -TARGETNAME=lsusb |
| 1 | +TARGETNAME=listdevs |
2 | 2 | TARGETTYPE=PROGRAM |
3 | 3 | 386_STDCALL=0 |
4 | 4 |
|
@@ -16,4 +16,4 @@ USE_MSVCRT=1 |
16 | 16 | UMTYPE=console |
17 | 17 | INCLUDES=..\..\libusb;$(DDK_INC_PATH) |
18 | 18 | UMLIBS=..\..\libusb\os\obj$(BUILD_ALT_DIR)\*\libusb-1.0.lib |
19 | | -SOURCES=..\lsusb.c |
| 19 | +SOURCES=..\listdevs.c |