Skip to content

Commit

Permalink
Added comment to describe why something was done the way it was
Browse files Browse the repository at this point in the history
  • Loading branch information
tehampson committed Aug 7, 2024
1 parent 86a4d58 commit 17e2c84
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/fabric-bridge-app/linux/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
#include <sys/ioctl.h>
#include <thread>

// This is declared here and not in a header because zap/embr assumes all clusters
// are defined in a static endpoint in the .zap file. From there, the codegen will
// automatically use PluginApplicationCallbacksHeader.jinja to declare and call
// the respective Init callbacks. However, because EcosystemInformation cluster is only
// ever on a dynamic endpoint, this doesn't get declared and called for us, so we
// need to declare and call it ourselves where the application is initialized.
void MatterEcosystemInformationPluginServerInitCallback();

using namespace chip;
Expand Down

0 comments on commit 17e2c84

Please sign in to comment.