C Configuration Space and Tuning Library (CCS)
Loading...
Searching...
No Matches
context.h
Go to the documentation of this file.
1#ifndef _CCS_CONTEXT_H
2#define _CCS_CONTEXT_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
30extern ccs_result_t
31ccs_context_get_name(ccs_context_t context, const char **name_ret);
32
48extern ccs_result_t
50 ccs_context_t context,
51 size_t index,
52 ccs_parameter_t *parameter_ret);
53
76extern ccs_result_t
78 ccs_context_t context,
79 size_t num_parameters,
80 ccs_parameter_t *parameters,
81 size_t *num_parameters_ret);
82
98extern ccs_result_t
100 ccs_context_t context,
101 const char *name,
102 ccs_parameter_t *parameter_ret);
103
122extern ccs_result_t
124 ccs_context_t context,
125 const char *name,
126 ccs_bool_t *found_ret,
127 size_t *index_ret);
128
147extern ccs_result_t
149 ccs_context_t context,
150 ccs_parameter_t parameter,
151 ccs_bool_t *found_ret,
152 size_t *index_ret);
153
175extern ccs_result_t
177 ccs_context_t context,
178 size_t num_parameters,
179 ccs_parameter_t *parameters,
180 ccs_bool_t *found,
181 size_t *indexes);
182
204extern ccs_result_t
206 ccs_context_t context,
207 size_t index,
208 ccs_datum_t value,
209 ccs_datum_t *value_ret);
210
211#ifdef __cplusplus
212}
213#endif
214
215#endif //_CCS_CONTEXT_H
int32_t ccs_bool_t
A CCS boolean type.
Definition base.h:37
struct _ccs_parameter_s * ccs_parameter_t
An opaque type defining a CCS parameter.
Definition base.h:95
struct _ccs_context_s * ccs_context_t
An opaque type defining a CCS context.
Definition base.h:103
enum ccs_result_e ccs_result_t
A commodity type to represent CCS errors and returned by most functions.
Definition base.h:247
ccs_result_t ccs_context_get_parameter_indexes(ccs_context_t context, size_t num_parameters, ccs_parameter_t *parameters, ccs_bool_t *found, size_t *indexes)
Get the indices of a set of parameters in a context.
ccs_result_t ccs_context_get_parameter(ccs_context_t context, size_t index, ccs_parameter_t *parameter_ret)
Get an parameter in a context given its index.
ccs_result_t ccs_context_get_parameter_by_name(ccs_context_t context, const char *name, ccs_parameter_t *parameter_ret)
Get an parameter in a context given its name.
ccs_result_t ccs_context_get_parameter_index(ccs_context_t context, ccs_parameter_t parameter, ccs_bool_t *found_ret, size_t *index_ret)
Get the index of an parameter in the context.
ccs_result_t ccs_context_get_parameter_index_by_name(ccs_context_t context, const char *name, ccs_bool_t *found_ret, size_t *index_ret)
Get the index of an parameter in the context given its name.
ccs_result_t ccs_context_get_parameters(ccs_context_t context, size_t num_parameters, ccs_parameter_t *parameters, size_t *num_parameters_ret)
Get the parameters in the given context.
ccs_result_t ccs_context_validate_value(ccs_context_t context, size_t index, ccs_datum_t value, ccs_datum_t *value_ret)
Validate that a given value at the given index is valid in the context, and return a sanitized value.
ccs_result_t ccs_context_get_name(ccs_context_t context, const char **name_ret)
Get the name of a context.
A Structure containing a CCS datum.
Definition base.h:494