Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

af-structs.zapt generates empty structs instead of 'typedef uint8_t' #3873

Closed
vivien-apple opened this issue Nov 17, 2020 · 0 comments · Fixed by #4006
Closed

af-structs.zapt generates empty structs instead of 'typedef uint8_t' #3873

vivien-apple opened this issue Nov 17, 2020 · 0 comments · Fixed by #4006
Assignees

Comments

@vivien-apple
Copy link
Contributor

You should probably not take it on faith.

If you look at it twice you may noticed that there are some empty structs. For example:

With ZAP templates:

// Struct for Signature
typedef struct _Signature
{
} EmberAfSignature;

With AppBuilder:

// Void typedef for EphemeralData which is empty.
// this will result in all the references to the data being as uint8_t*
typedef uint8_t EphemeralData;

It does work because those are not used. I will open an issue for them.

Originally posted by @vivien-apple in #3826 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants