Skip to content

Commit

Permalink
Move NamedPipeCommands class to platform/linux (#20815) (#20881)
Browse files Browse the repository at this point in the history
* Move NamedPipeCommands class to platform/linux

* Address review comments

Co-authored-by: Yufeng Wang <[email protected]>
  • Loading branch information
woody-apple and yufengwangca authored Jul 18, 2022
1 parent 1b96b5f commit dfbe55d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion examples/all-clusters-app/linux/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ source_set("chip-all-clusters-common") {
"${chip_root}/examples/all-clusters-app/all-clusters-common/src/static-supported-modes-manager.cpp",
"AllClustersCommandDelegate.cpp",
"AppOptions.cpp",
"NamedPipeCommands.cpp",
"include/tv-callbacks.cpp",
"include/tv-callbacks.h",
"main-common.cpp",
Expand Down
2 changes: 2 additions & 0 deletions examples/platform/linux/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ source_set("app-main") {
"ControllerShellCommands.h",
"LinuxCommissionableDataProvider.cpp",
"LinuxCommissionableDataProvider.h",
"NamedPipeCommands.cpp",
"NamedPipeCommands.h",
"Options.cpp",
"Options.h",
"testing/CustomCSRResponse.cpp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void * NamedPipeCommands::EventCommandListenerTask(void * arg)

ssize_t readBytes = read(fd, readbuf, kChipEventCmdBufSize);
readbuf[readBytes - 1] = '\0';
ChipLogProgress(NotSpecified, "Received payload: \"%s\" and length is %ld\n", readbuf, readBytes);
ChipLogProgress(NotSpecified, "Received payload: \"%s\"", readbuf);

// Process the received command request from event fifo
self->mDelegate->OnEventCommandReceived(readbuf);
Expand Down
File renamed without changes.

0 comments on commit dfbe55d

Please sign in to comment.