forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a dumb gen_tokens.zapt file to src/app/zap-templates
#### Proble `gen_tokens.h` is one of the file required by `src/app` but that it still missing a template. If someone tries to create a new app from scratch using `ZAP` it will complains that `gen_tokens.h` is missing. This PR introduce a dumb template based on the content of `gen_tokens.h` from what is in the tree. The tokens list is empty because the tokens code has not yet been fixed in `src/app` and so nobody uses it at the moment.
- Loading branch information
1 parent
5623ab9
commit d68a138
Showing
7 changed files
with
49 additions
and
84 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{{> header}} | ||
|
||
// Prevent multiple inclusion | ||
#pragma once | ||
|
||
// This file contains the tokens for attributes stored in flash | ||
|
||
// Identifier tags for tokens | ||
|
||
// Types for the tokens | ||
#ifdef DEFINETYPES | ||
#endif // DEFINETYPES | ||
|
||
// Actual token definitions | ||
#ifdef DEFINETOKENS | ||
#endif // DEFINETOKENS | ||
|
||
// Macro snippet that loads all the attributes from tokens | ||
#define GENERATED_TOKEN_LOADER(endpoint) \ | ||
do \ | ||
{ \ | ||
} while (false) | ||
|
||
// Macro snippet that saves the attribute to token | ||
#define GENERATED_TOKEN_SAVER \ | ||
do \ | ||
{ \ | ||
} while (false) |