File tree 5 files changed +16
-14
lines changed
5 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -74,12 +74,16 @@ if(PTP_INCLUDE_CLI)
74
74
find_package (PkgConfig REQUIRED)
75
75
pkg_check_modules(LIBPCAP REQUIRED libpcap)
76
76
77
- add_executable (pict
77
+ add_executable (ptp
78
78
src/cli.c
79
79
src/dec/main.c
80
80
)
81
- target_include_directories (pict PUBLIC ${PROJECT_SOURCE_DIR} /src ${LIBPCAP_INCLUDE_DIRS} )
82
- target_link_libraries (pict libpict ${LIBUSB_LIBRARIES} ${LIBPCAP_LIBRARIES} )
81
+ target_include_directories (ptp PUBLIC ${PROJECT_SOURCE_DIR} /src ${LIBPCAP_INCLUDE_DIRS} )
82
+ target_link_libraries (ptp libpict ${LIBUSB_LIBRARIES} ${LIBPCAP_LIBRARIES} )
83
+
84
+ install (
85
+ TARGETS ptp
86
+ )
83
87
endif ()
84
88
85
89
macro (add_example exe_name source )
Original file line number Diff line number Diff line change @@ -12,11 +12,17 @@ struct Options {
12
12
13
13
static int usage (void ) {
14
14
printf (
15
- "pict\n"
16
- " --dec <input_file> <output_file> Decode any PTP/USB packet dump into a readable text file\n"
15
+ " --dec <input_file> <output_file> <mode>\n"
16
+ " Decode any PTP/USB packet dump into a readable text file\n"
17
+ " Valid values for <mode>:\n"
18
+ " usb Decode pcap USB/ethernet packets\n"
19
+ " wifi Decode pcap TCP packets\n"
17
20
" --help\n"
18
21
" --run <operation> <args>\n"
19
- " --dont-open-session (A session is opened/closed by default)\n"
22
+ " Invoke the binding API\n"
23
+ " --dont-open-session\n"
24
+ " (A session is opened/closed by default)\n"
25
+ "Examples:\n"
20
26
" --run ptp_hello_world 1 2 3 \"Hello, World\"\n"
21
27
);
22
28
printf ("Compile date: " __DATE__ "\n" );
File renamed without changes.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments