-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove PluginCallbacks.h header, remove ClientInit callbacks (weak li…
…nkage) (#23299) * Remove `PluginCallbacks` generated file. This file is not really needed by anything except advance declaration by PluginApplicationCallbachs.h. We can codegen the callbacks in that file. * Remove ClientInitCallback
- Loading branch information
Showing
7 changed files
with
11 additions
and
193 deletions.
There are no files selected for viewing
10 changes: 7 additions & 3 deletions
10
scripts/idl/generators/cpp/application/PluginApplicationCallbacksHeader.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
#pragma once | ||
|
||
#include <app-common/zap-generated/callbacks/PluginCallbacks.h> | ||
{%- for cluster in clusters | serverClustersOnly | sort(attribute='name') %} | ||
void Matter{{ cluster.name }}PluginServerInitCallback(); | ||
{%- endfor %} | ||
|
||
#define MATTER_PLUGINS_INIT \ | ||
{%- for cluster in clusters | sort(attribute='name') %} | ||
Matter{{ cluster.name }}Plugin{{ cluster.side | clusterSideString }}InitCallback();{{ " \\" if not loop.last else ""}} | ||
{%- for cluster in clusters | serverClustersOnly | sort(attribute='name') %} | ||
Matter{{ cluster.name }}PluginServerInitCallback();{{ " \\" if not loop.last else ""}} | ||
{%- else %} | ||
(void)0; /* No server side clusters */ | ||
{%- endfor %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
scripts/idl/tests/outputs/several_clusters/cpp-app/PluginApplicationCallbacks.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
#pragma once | ||
|
||
#include <app-common/zap-generated/callbacks/PluginCallbacks.h> | ||
void MatterThirdPluginServerInitCallback(); | ||
|
||
#define MATTER_PLUGINS_INIT \ | ||
MatterFirstPluginClientInitCallback(); \ | ||
MatterSecondPluginClientInitCallback(); \ | ||
MatterThirdPluginClientInitCallback(); \ | ||
MatterThirdPluginServerInitCallback(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
src/app/zap-templates/templates/app/callbacks/PluginCallbacks.zapt
This file was deleted.
Oops, something went wrong.
163 changes: 0 additions & 163 deletions
163
zzz_generated/app-common/app-common/zap-generated/callbacks/PluginCallbacks.h
This file was deleted.
Oops, something went wrong.