Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Brice Videau
CCS
Commits
3ff38fbb
Commit
3ff38fbb
authored
Jan 04, 2021
by
Brice Videau
Browse files
Added more introspection to the API.
parent
87141bf6
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/cconfigspace/tree_configuration.h
View file @
3ff38fbb
...
...
@@ -28,9 +28,9 @@ ccs_tree_configuration_get_position(ccs_tree_configuration_t configuration,
extern
ccs_result_t
ccs_tree_configuration_get_values
(
ccs_tree_configuration_t
configuration
,
size_t
num_values
,
ccs_datum_t
*
values
,
size_t
*
num_values_ret
);
size_t
num_values
,
ccs_datum_t
*
values
,
size_t
*
num_values_ret
);
extern
ccs_result_t
ccs_tree_configuration_get_arity
(
ccs_tree_configuration_t
configuration
,
...
...
include/cconfigspace/tree_space.h
View file @
3ff38fbb
...
...
@@ -25,11 +25,18 @@ struct ccs_dynamic_tree_space_vector_s {
ccs_tree_configuration_t
configuration
,
size_t
*
arity_ret
);
ccs_result_t
(
*
values
)(
ccs_tree_space_t
tree_space
,
ccs_tree_configuration_t
configuration
,
size_t
num_values
,
ccs_datum_t
*
values
,
size_t
*
num_values_ret
);
ccs_result_t
(
*
child
)(
ccs_tree_space_t
tree_space
,
ccs_tree_configuration_t
configuration
,
size_t
child_index
,
void
*
user_data
,
void
*
user_data
,
ccs_tree_configuration_t
*
child_ret
);
};
typedef
struct
ccs_dynamic_tree_space_vector_s
ccs_dynamic_tree_space_vector_t
;
...
...
@@ -69,6 +76,10 @@ ccs_tree_space_get_configuration_child(ccs_tree_space_t tree_space,
void
*
user_data
,
ccs_tree_configuration_t
*
child_ret
);
extern
ccs_result_t
ccs_static_tree_space_get_tree
(
ccs_tree_space_t
tree_space
,
ccs_tree_t
*
tree_ret
);
#ifdef __cplusplus
}
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment