Skip to content

Commit

Permalink
Implement the CurrentFabricIndex attribute (#11161)
Browse files Browse the repository at this point in the history
* Pass the accessing fabric index to AttributeAccessInterface::Read.

For some attributes, the value depends on the accessing fabric.  Put
the accessing fabric index into the AttributeValueEncoder so callees
can check it.

* Add implementation of CurrentFabricIndex attribute.
  • Loading branch information
bzbarsky-apple authored Oct 29, 2021
1 parent e4407c4 commit 2475f10
Show file tree
Hide file tree
Showing 69 changed files with 1,365 additions and 1,202 deletions.
20 changes: 18 additions & 2 deletions examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -3799,7 +3799,7 @@
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
Expand All @@ -3808,6 +3808,21 @@
"maxInterval": 65344,
"reportableChange": 0
},
{
"name": "CurrentFabricIndex",
"code": 5,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 0,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "ClusterRevision",
"code": 65533,
Expand Down Expand Up @@ -19103,5 +19118,6 @@
"endpointVersion": null,
"deviceIdentifier": null
}
]
],
"log": []
}
20 changes: 18 additions & 2 deletions examples/bridge-app/bridge-common/bridge-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -2647,7 +2647,7 @@
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
Expand All @@ -2656,6 +2656,21 @@
"maxInterval": 65344,
"reportableChange": 0
},
{
"name": "CurrentFabricIndex",
"code": 5,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 0,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "ClusterRevision",
"code": 65533,
Expand Down Expand Up @@ -4018,5 +4033,6 @@
"endpointVersion": null,
"deviceIdentifier": null
}
]
],
"log": []
}
20 changes: 18 additions & 2 deletions examples/lighting-app/lighting-common/lighting-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -3577,7 +3577,7 @@
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
Expand All @@ -3586,6 +3586,21 @@
"maxInterval": 65344,
"reportableChange": 0
},
{
"name": "CurrentFabricIndex",
"code": 5,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 0,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "ClusterRevision",
"code": 65533,
Expand Down Expand Up @@ -6211,5 +6226,6 @@
"endpointVersion": 1,
"deviceIdentifier": 259
}
]
],
"log": []
}
20 changes: 18 additions & 2 deletions examples/lock-app/lock-common/lock-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -3467,7 +3467,7 @@
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
Expand All @@ -3476,6 +3476,21 @@
"maxInterval": 65344,
"reportableChange": 0
},
{
"name": "CurrentFabricIndex",
"code": 5,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 0,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "ClusterRevision",
"code": 65533,
Expand Down Expand Up @@ -5022,5 +5037,6 @@
"endpointVersion": 0,
"deviceIdentifier": null
}
]
],
"log": []
}
20 changes: 18 additions & 2 deletions examples/ota-provider-app/ota-provider-common/ota-provider-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,7 @@
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
Expand All @@ -1639,6 +1639,21 @@
"maxInterval": 65344,
"reportableChange": 0
},
{
"name": "CurrentFabricIndex",
"code": 5,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 0,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "ClusterRevision",
"code": 65533,
Expand Down Expand Up @@ -3637,5 +3652,6 @@
"endpointVersion": 1,
"deviceIdentifier": null
}
]
],
"log": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -1663,6 +1663,36 @@
"maxInterval": 65344,
"reportableChange": 0
},
{
"name": "TrustedRootCertificates",
"code": 4,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 0,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "CurrentFabricIndex",
"code": 5,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 0,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "ClusterRevision",
"code": 65533,
Expand Down Expand Up @@ -3661,5 +3691,6 @@
"endpointVersion": 1,
"deviceIdentifier": 0
}
]
],
"log": []
}
20 changes: 18 additions & 2 deletions examples/placeholder/linux/apps/app1/config.zap
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,22 @@
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 0,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "CurrentFabricIndex",
"code": 5,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
Expand Down Expand Up @@ -1907,5 +1922,6 @@
"endpointVersion": 1,
"deviceIdentifier": 258
}
]
],
"log": []
}
20 changes: 18 additions & 2 deletions examples/placeholder/linux/apps/app2/config.zap
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,22 @@
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 0,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "CurrentFabricIndex",
"code": 5,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
Expand Down Expand Up @@ -1710,5 +1725,6 @@
"endpointVersion": 1,
"deviceIdentifier": 257
}
]
],
"log": []
}
20 changes: 18 additions & 2 deletions examples/pump-app/pump-common/pump-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -3390,7 +3390,7 @@
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
Expand All @@ -3399,6 +3399,21 @@
"maxInterval": 65344,
"reportableChange": 0
},
{
"name": "CurrentFabricIndex",
"code": 5,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 0,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "ClusterRevision",
"code": 65533,
Expand Down Expand Up @@ -5839,5 +5854,6 @@
"endpointVersion": 1,
"deviceIdentifier": null
}
]
],
"log": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -3390,7 +3390,7 @@
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
Expand All @@ -3399,6 +3399,21 @@
"maxInterval": 65344,
"reportableChange": 0
},
{
"name": "CurrentFabricIndex",
"code": 5,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"reportable": 0,
"minInterval": 1,
"maxInterval": 65534,
"reportableChange": 0
},
{
"name": "ClusterRevision",
"code": 65533,
Expand Down Expand Up @@ -5584,5 +5599,6 @@
"endpointVersion": 1,
"deviceIdentifier": null
}
]
],
"log": []
}
Loading

0 comments on commit 2475f10

Please sign in to comment.