Skip to content

Commit

Permalink
Enable Accessors.h get/set for global attributes. (#12808)
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Nov 10, 2023
1 parent c8d9450 commit 1026124
Show file tree
Hide file tree
Showing 2 changed files with 1,278 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/app/zap-templates/templates/app/attributes/Accessors.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ namespace Clusters {

{{#zcl_clusters}}
{{#zcl_attributes_server}}
{{#if (hasSpecificAttributes)}}
{{#first}}
namespace {{asUpperCamelCase parent.label}} {
namespace Attributes {

{{/first}}
{{#if clusterRef}}
{{#if_is_struct type}}
{{else if (canHaveSimpleAccessors this)}}
namespace {{asUpperCamelCase label}} {
Expand All @@ -36,13 +34,11 @@ EmberAfStatus Set(chip::EndpointId endpoint, const DataModel::Nullable<{{asUnder
} // namespace {{asUpperCamelCase label}}

{{/if_is_struct}}
{{/if}}
{{#last}}
} // namespace Attributes
} // {{asUpperCamelCase parent.label}}

{{/last}}
{{/if}}
{{/zcl_attributes_server}}
{{/zcl_clusters}}

Expand Down
Loading

0 comments on commit 1026124

Please sign in to comment.