-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Accessor creation 2. JsonContainer creation 3. Types order placed based on depenedencies 4. filtered redundant new lines 5. UnamedSchema issue fixes
- Loading branch information
1 parent
0280ac8
commit b2f0e14
Showing
11 changed files
with
757 additions
and
580 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
/* ${method.name} - ${method.description} */ | ||
uint32_t ${info.title}_Get${method.Name}(${method.params}${if.params}, ${end.if.params}${method.result.type}* ${method.result.name}) { | ||
const string method = _T("${info.title}.${method.name}"); | ||
FireboltSDK::${info.title}::${method.result.type} jsonResult; | ||
const string method = _T("${info.title}.${method.name}"); | ||
FireboltSDK::${info.title}::${method.result.type} jsonResult; | ||
|
||
uint32_t status = FireboltSDK::Properties::Get(method, jsonResult); | ||
if (status == FireboltSDKErrorNone) { | ||
WPEFramework::Core::ProxyType<FireboltSDK::${info.title}::${method.result.type}>* resultPtr = new WPEFramework::Core::ProxyType<FireboltSDK::${info.title}::${method.result.type}>(); | ||
*${method.result.name} = static_cast<${info.title}_${method.result.type}Handle>(resultPtr); | ||
} | ||
return status; | ||
uint32_t status = FireboltSDK::Properties::Get(method, jsonResult); | ||
if (status == FireboltSDKErrorNone) { | ||
WPEFramework::Core::ProxyType<FireboltSDK::${info.title}::${method.result.type}>* resultPtr = new WPEFramework::Core::ProxyType<FireboltSDK::${info.title}::${method.result.type}>(); | ||
*${method.result.name} = static_cast<${info.title}_${method.result.type}Handle>(resultPtr); | ||
} | ||
return status; | ||
} |
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 |
---|---|---|
|
@@ -30,10 +30,6 @@ extern "C" { | |
|
||
/* ${ENUMS} */ | ||
|
||
// Types | ||
|
||
/* ${TYPES} */ | ||
|
||
/* ${ACCESSORS} */ | ||
|
||
/* ${DECLARATIONS} */ | ||
|
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 |
---|---|---|
@@ -1,4 +1 @@ | ||
/* | ||
* ${schema.description} | ||
*/ | ||
${schema.shape} |
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 |
---|---|---|
|
@@ -20,6 +20,6 @@ namespace FireboltSDK { | |
namespace ${info.title} { | ||
// Types | ||
|
||
/* ${SCHEMAS}*/ | ||
/* ${SCHEMAS} */ | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
// Methods | ||
// Methods | ||
|
||
${method.list} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.