Skip to content

Commit

Permalink
Enable client-side accessor generation for strongly typed enum attrib…
Browse files Browse the repository at this point in the history
…utes.
  • Loading branch information
bzbarsky-apple committed Dec 8, 2021
1 parent 6f89b9b commit 9ea2ac0
Show file tree
Hide file tree
Showing 20 changed files with 7,653 additions and 41 deletions.
6 changes: 0 additions & 6 deletions src/app/zap-templates/common/ClustersHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,6 @@ function asChipCallback(item)
return { name : 'List', type : null };
}

if (item.isEnum) {
// Unsupported or now, until we figure out what to do for callbacks for
// strongly typed enums.
return { name : 'Unsupported', type : null };
}

const basicType = ChipTypesHelper.asBasicType(item.chipType);
switch (basicType) {
case 'int8_t':
Expand Down
298 changes: 298 additions & 0 deletions src/controller/java/zap-generated/CHIPClusters-JNI.cpp

Large diffs are not rendered by default.

175 changes: 161 additions & 14 deletions src/controller/java/zap-generated/CHIPClustersRead-JNI.cpp

Large diffs are not rendered by default.

540 changes: 540 additions & 0 deletions src/controller/java/zap-generated/CHIPReadCallbacks.cpp

Large diffs are not rendered by default.

217 changes: 217 additions & 0 deletions src/controller/java/zap-generated/CHIPReadCallbacks.h

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

Loading

0 comments on commit 9ea2ac0

Please sign in to comment.