Skip to content

Commit

Permalink
Align naming in Diagnostic Logs cluster XML with the spec. (#24266)
Browse files Browse the repository at this point in the history
* Align naming in Diagnostic Logs cluster XML with the spec.

* Regenerate generated files.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Oct 12, 2023
1 parent 4edf0fe commit 1080768
Show file tree
Hide file tree
Showing 16 changed files with 122 additions and 76 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ server cluster DiagnosticLogs = 50 {

response struct RetrieveLogsResponse = 1 {
LogsStatus status = 0;
OCTET_STRING content = 1;
epoch_s timeStamp = 2;
OCTET_STRING logContent = 1;
epoch_s UTCTimeStamp = 2;
INT32U timeSinceBoot = 3;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ void DiagnosticLogsCommandHandler::InvokeCommand(HandlerContext & handlerContext
VerifyOrDie(err == CHIP_NO_ERROR);
timeMs = *reinterpret_cast<decltype(timeMs) *>(buf.get());

response.status = chip::app::Clusters::DiagnosticLogs::LogsStatus::kSuccess;
response.content = chip::ByteSpan(buf.get() + sizeof(timeMs), logSize - sizeof(timeMs));
response.timeStamp = timeMs;
response.status = chip::app::Clusters::DiagnosticLogs::LogsStatus::kSuccess;
response.logContent = chip::ByteSpan(buf.get() + sizeof(timeMs), logSize - sizeof(timeMs));
response.UTCTimeStamp = timeMs;
handlerContext.mCommandHandler.AddResponse(handlerContext.mRequestPath, response);
}
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ limitations under the License.
<server tick="false" init="false">true</server>
<command source="client" code="0x00" name="RetrieveLogsRequest" response="RetrieveLogsResponse" optional="false" cli="chip logs retrieve">
<description>Retrieving diagnostic logs from a Node</description>
<arg name="intent" type="LogsIntent"/>
<arg name="requestedProtocol" type="LogsTransferProtocol"/>
<arg name="transferFileDesignator" type="OCTET_STRING" length="32"/>
<arg name="Intent" type="LogsIntent"/>
<arg name="RequestedProtocol" type="LogsTransferProtocol"/>
<arg name="TransferFileDesignator" type="OCTET_STRING" length="32"/>
</command>
<command source="server" code="0x01" name="RetrieveLogsResponse" optional="false" cli="chip logs response">
<description>Response to the RetrieveLogsRequest</description>
<arg name="status" type="LogsStatus"/>
<arg name="content" type="OCTET_STRING"/>
<arg name="timeStamp" type="epoch_s"/>
<arg name="timeSinceBoot" type="INT32U"/>
<arg name="Status" type="LogsStatus"/>
<arg name="LogContent" type="OCTET_STRING"/>
<arg name="UTCTimeStamp" type="epoch_s"/>
<arg name="TimeSinceBoot" type="INT32U"/>
</command>
</cluster>
</configurator>
4 changes: 2 additions & 2 deletions src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1280,8 +1280,8 @@ client cluster DiagnosticLogs = 50 {

response struct RetrieveLogsResponse = 1 {
LogsStatus status = 0;
OCTET_STRING content = 1;
epoch_s timeStamp = 2;
OCTET_STRING logContent = 1;
epoch_s UTCTimeStamp = 2;
INT32U timeSinceBoot = 3;
}

Expand Down
40 changes: 20 additions & 20 deletions src/controller/java/zap-generated/CHIPInvokeCallbacks.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/controller/python/chip/clusters/Objects.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions src/darwin/Framework/CHIP/templates/availability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4935,6 +4935,10 @@
OnOff:
OffWithEffect:
- effectIdentifier
DiagnosticLogs:
RetrieveLogsResponse:
- logContent
- utcTimeStamp
structs:
OTASoftwareUpdateRequestor:
- ProviderLocation
Expand Down Expand Up @@ -5246,6 +5250,10 @@
OnOff:
OffWithEffect:
- effectId
DiagnosticLogs:
RetrieveLogsResponse:
- content
- timeStamp
structs:
Descriptor:
- DeviceType
Expand Down Expand Up @@ -5337,6 +5345,10 @@
OnOff:
OffWithEffect:
effectIdentifier: effectId
DiagnosticLogs:
RetrieveLogsResponse:
logContent: content
utcTimeStamp: timeStamp
structs:
AccessControl:
AccessControlEntryStruct: AccessControlEntry
Expand Down
4 changes: 2 additions & 2 deletions src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 30 additions & 7 deletions src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions zzz_generated/app-common/app-common/zap-generated/callback.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1080768

Please sign in to comment.