|
C Configuration Space and Tuning Library (CCS)
|
A configuration is a binding (see binding.h) on a configuration space (see configuration_space.h). More...

Go to the source code of this file.
Functions | |
| ccs_result_t | ccs_create_configuration (ccs_configuration_space_t configuration_space, ccs_features_t features, size_t num_values, ccs_datum_t *values, ccs_configuration_t *configuration_ret) |
| Create a new instance of a configuration on a given configuration space. | |
| ccs_result_t | ccs_configuration_get_configuration_space (ccs_configuration_t configuration, ccs_configuration_space_t *configuration_space_ret) |
| Get the associated configuration space. | |
| ccs_result_t | ccs_configuration_get_features (ccs_configuration_t configuration, ccs_features_t *features_ret) |
| Get the associated features. | |
A configuration is a binding (see binding.h) on a configuration space (see configuration_space.h).
Configurations are immutable except from a reference counting and callback management point of view.
|
extern |
Get the associated configuration space.
| [in] | configuration | |
| [out] | configuration_space_ret | a pointer to the variable that will contain the configuration space |
configuration is not a valid CCS configuration configuration_ret is NULL
|
extern |
Get the associated features.
| [in] | configuration | |
| [out] | features_ret | a pointer to the variable that will contain the returned features or NULL if none is associated to the configuration. |
configuration is not a valid CCS configuration features_ret is NULL
|
extern |
Create a new instance of a configuration on a given configuration space.
If no values are provided the values will be initialized to CCS_DATA_TYPE_NONE.
| [in] | configuration_space | |
| [in] | features | an optional features to use. If NULL and a feature space was provided at configuration_space creation, the default features of the feature space will be used. |
| [in] | num_values | the number of provided values to initialize the configuration |
| [in] | values | an optional array of values to initialize the configuration |
| [out] | configuration_ret | a pointer to the variable that will hold the newly created configuration |
configuration_space is not a valid CCS configuration space; or if features is not NULL and is not a valid CCS features configuration_space creation. configuration_ret is NULL; or if values is NULL and num_values is greater than 0; or if the number of values provided is not equal to the number of parameters in the configuration space