[FEATURE]support get hit groups

This commit is contained in:
liuwentan
2023-06-05 15:14:45 +08:00
parent 19299280bb
commit ac8a0a512c
5 changed files with 157 additions and 33 deletions

View File

@@ -1846,16 +1846,21 @@ int maat_state_get_hit_paths(struct maat_state *state, struct maat_hit_path *pat
paths, n_path);
return compile_runtime_get_hit_paths((struct compile_runtime *)compile_rt,
state->compile_state, paths, n_path,
internal_hit_path_cnt);
state->compile_state, paths, n_path,
internal_hit_path_cnt);
}
int maat_state_get_hit_objects(struct maat_state *state, struct maat_hit_object *objs, size_t n_obj)
int maat_state_get_hit_groups(struct maat_state *state, struct maat_hit_group *groups,
size_t n_group)
{
return 0;
if (NULL == state || NULL == groups || 0 == n_group) {
return -1;
}
return maat_compile_state_get_hit_groups(state->compile_state, groups, n_group);
}
int maat_hit_object_compile_id(struct maat *instance, struct maat_hit_object *obj)
int maat_hit_group_compile_id(struct maat *instance, struct maat_hit_group *group)
{
return 0;
}
}