blob: e17cb3b6fca2868497cf1c040bd5d61b0a972a10 [file] [log] [blame]
#include <app-common/zap-generated/callback.h>
#include <app-common/zap-generated/cluster-id.h>
#include <lib/support/Span.h>
#include <protocols/interaction_model/Constants.h>
using namespace chip;
// Cluster Init Functions
void emberAfClusterInitCallback(EndpointId endpoint, ClusterId clusterId)
{
switch (clusterId)
{
{%- for name in clusters | sort(attribute='name') | map(attribute='name') | unique %}
case ZCL_{{name | normalize_acronyms | constcase}}_CLUSTER_ID:
emberAf{{name}}ClusterInitCallback(endpoint);
break;
{%- endfor %}
default:
// Unrecognized cluster ID
break;
}
}
{%- for name in clusters | sort(attribute='name') | map(attribute='name') | unique %}
void __attribute__((weak)) emberAf{{name}}ClusterInitCallback(EndpointId endpoint)
{
// To prevent warning
(void) endpoint;
}
{%- endfor %}