Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / src / app / zap-templates / templates / app / client-command-macro.zapt
1 {{> header}}
2
3 // Prevent multiple inclusion
4 #pragma once
5
6 {{#zcl_command_tree}}
7
8 /** @brief Command description for {{label}}
9  *
10  * Command: {{label}}
11 {{#zcl_command_arguments}}
12  * @param {{name}} {{type}} {{toggle isArray '[]' ''}}{{toggle hasLength '
13  * @param ' ''}}{{toggle hasLength nameLength ''}}{{toggle hasLength ' int' ''}}
14 {{/zcl_command_arguments}}
15  */
16 #define emberAfFillCommand{{clientMacroName}}({{toggle isGlobal 'clusterId,' ''}} \
17 {{#zcl_command_arguments}}
18   {{name}}{{toggle hasLength ', ' ''}}{{toggle hasLength nameLength ''}}{{#not_last}},{{/not_last}} \
19 {{/zcl_command_arguments}}
20 ) \
21   emberAfFillExternalBuffer( \
22     mask, \
23     {{toggle isGlobal 'clusterId, ' ''}} \
24     ZCL_{{asDelimitedMacro label}}_COMMAND_ID, \
25     "{{argsstring}}", \
26 {{#zcl_command_arguments}}
27     {{name}}{{toggle hasLength ', ' ''}}{{toggle hasLength nameLength ''}}{{#not_last}},{{/not_last}} \
28 {{/zcl_command_arguments}}
29   );
30 {{/zcl_command_tree}}