Commit 8ae19fcd authored by Brice Videau's avatar Brice Videau
Browse files

Renamed struct.

parent efe8699e
......@@ -77,7 +77,7 @@ typedef struct ccs_tuner_common_data_s ccs_tuner_common_data_t;
struct ccs_user_defined_tuner_data_s;
typedef struct ccs_user_defined_tuner_data_s ccs_user_defined_tuner_data_t;
struct ccs_tuner_vector_s {
struct ccs_user_defined_tuner_vector_s {
ccs_result_t (*del)(
ccs_user_defined_tuner_data_t *data);
......@@ -104,22 +104,22 @@ struct ccs_tuner_vector_s {
ccs_evaluation_t *evaluations,
size_t *num_evaluations_ret);
};
typedef struct ccs_tuner_vector_s ccs_tuner_vector_t;
typedef struct ccs_user_defined_tuner_vector_s ccs_user_defined_tuner_vector_t;
struct ccs_user_defined_tuner_data_s {
ccs_tuner_common_data_t common_data;
ccs_tuner_vector_t vector;
void *tuner_data;
ccs_tuner_common_data_t common_data;
ccs_user_defined_tuner_vector_t vector;
void *tuner_data;
};
extern ccs_result_t
ccs_create_user_defined_tuner(const char *name,
ccs_configuration_space_t configuration_space,
ccs_objective_space_t objective_space,
void *user_data,
ccs_tuner_vector_t *vector,
void *tuner_data,
ccs_tuner_t *tuner_ret);
ccs_create_user_defined_tuner(const char *name,
ccs_configuration_space_t configuration_space,
ccs_objective_space_t objective_space,
void *user_data,
ccs_user_defined_tuner_vector_t *vector,
void *tuner_data,
ccs_tuner_t *tuner_ret);
#ifdef __cplusplus
......
......@@ -61,13 +61,13 @@ static _ccs_tuner_ops_t _ccs_tuner_user_defined_ops = {
};
extern ccs_result_t
ccs_create_user_defined_tuner(const char *name,
ccs_configuration_space_t configuration_space,
ccs_objective_space_t objective_space,
void *user_data,
ccs_tuner_vector_t *vector,
void *tuner_data,
ccs_tuner_t *tuner_ret) {
ccs_create_user_defined_tuner(const char *name,
ccs_configuration_space_t configuration_space,
ccs_objective_space_t objective_space,
void *user_data,
ccs_user_defined_tuner_vector_t *vector,
void *tuner_data,
ccs_tuner_t *tuner_ret) {
CCS_CHECK_PTR(name);
CCS_CHECK_OBJ(configuration_space, CCS_CONFIGURATION_SPACE);
CCS_CHECK_OBJ(objective_space, CCS_OBJECTIVE_SPACE);
......
......@@ -101,7 +101,7 @@ tuner_last_get_history(ccs_user_defined_tuner_data_t *data,
return CCS_SUCCESS;
}
ccs_tuner_vector_t tuner_last_vector = {
ccs_user_defined_tuner_vector_t tuner_last_vector = {
&tuner_last_del,
&tuner_last_ask,
&tuner_last_tell,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment