Resource Tuner
|
#include <iostream>
#include <vector>
#include <unordered_map>
Go to the source code of this file.
Classes | |
class | Extensions |
Extensions. More... | |
Macros | |
#define | RESTUNE_REGISTER_APPLIER_CB(resCode, resourceApplierCallback) static Extensions CONCAT(_resourceApplier, resCode)(resCode, 0, resourceApplierCallback); |
Register a Customer Resource Applier Callback for a particular ResCode. | |
#define | RESTUNE_REGISTER_TEAR_CB(resCode, resourceTearCallback) static Extensions CONCAT(_resourceTear, resCode)(resCode, 1, resourceTearCallback); |
Register a Customer Resource Teardown Callback for a particular ResCode. | |
#define | RESTUNE_REGISTER_CONFIG(configType, yamlFile) static Extensions CONCAT(_regConfig, configType)(configType, yamlFile); |
Register custom Config (YAML) file. This Macro can be used to register Resource Configs File, Signal Configs file and others with Resource Tuner. | |
Enumerations | |
enum | ConfigType |
Different Config (via YAML) Types supported. More... | |
#define RESTUNE_REGISTER_APPLIER_CB | ( | resCode, | |
resourceApplierCallback | |||
) | static Extensions CONCAT(_resourceApplier, resCode)(resCode, 0, resourceApplierCallback); |
Register a Customer Resource Applier Callback for a particular ResCode.
resCode | An unsigned 32-bit integer representing the Resource ResCode. |
resourceApplierCallback | A function Pointer to the Custom Applier Callback. |
Definition at line 70 of file Extensions.h.
#define RESTUNE_REGISTER_CONFIG | ( | configType, | |
yamlFile | |||
) | static Extensions CONCAT(_regConfig, configType)(configType, yamlFile); |
Register custom Config (YAML) file. This Macro can be used to register Resource Configs File, Signal Configs file and others with Resource Tuner.
configType | The type of Config for which the Custom YAML file has to be specified. |
yamlFile | File Path of this Config YAML file. |
Definition at line 93 of file Extensions.h.
#define RESTUNE_REGISTER_TEAR_CB | ( | resCode, | |
resourceTearCallback | |||
) | static Extensions CONCAT(_resourceTear, resCode)(resCode, 1, resourceTearCallback); |
Register a Customer Resource Teardown Callback for a particular ResCode.
resCode | An unsigned 32-bit integer representing the Resource ResCode. |
resourceTearCallback | A function Pointer to the Custom Teardown Callback. |
Definition at line 81 of file Extensions.h.
enum ConfigType |
Different Config (via YAML) Types supported.
Note, the Config File corresponding to each config type can be altered via the Extensions interface.
Definition at line 23 of file Extensions.h.