[PATCH]add maat_state_get_last_hit_group_id_cnt API

This commit is contained in:
liuwentan
2023-12-13 18:15:28 +08:00
parent b95135101f
commit df7505fa7f
5 changed files with 25 additions and 3 deletions

View File

@@ -2151,4 +2151,13 @@ int maat_state_get_last_hit_group_ids(struct maat_state *state,
return compile_state_get_last_hit_group_id(state->compile_state,
group_id_array, array_size);
}
size_t maat_state_get_last_hit_group_id_cnt(struct maat_state *state)
{
if (NULL == state || NULL == state->compile_state) {
return 0;
}
return compile_state_get_last_hit_group_id_cnt(state->compile_state);
}