Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / src / app / zap-templates / templates / app / af-structs.zapt
1 {{> header}}
2
3 // Prevent multiple inclusion
4 #pragma once
5
6 #include <stdint.h>
7 #include "basic-types.h"
8 #include "enums.h"
9
10 {{#zcl_structs}}
11
12 {{#if itemCnt}}
13 // Struct for {{label}}
14 typedef struct _{{asType label}} {
15 {{#zcl_struct_items}}
16 {{ident}}{{asChipUnderlyingType label type}} {{asSymbol label}};
17 {{/zcl_struct_items}}
18 } {{asUnderlyingType label}};
19 {{else}}
20 // Void typedef for {{asUnderlyingType label}} which is empty.
21 // this will result in all the references to the data being as uint8_t*
22 typedef uint8_t {{asUnderlyingType label}};
23 {{/if}}
24 {{/zcl_structs}}