diff options
| author | liuwentan <[email protected]> | 2023-09-11 12:00:33 +0800 |
|---|---|---|
| committer | liuwentan <[email protected]> | 2023-09-11 12:00:33 +0800 |
| commit | 2e1a14eca3071edf8f853cd6a70e8caea2e351a1 (patch) | |
| tree | 54820b355a643bfc3b23493b865fbe4c8b0359d0 /include | |
| parent | c237d7dbafe04e95911c1b8e318d0a99add63553 (diff) | |
[PATCH]add get direct/indirect hit groups APIv4.0.40
Diffstat (limited to 'include')
| -rw-r--r-- | include/maat.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/include/maat.h b/include/maat.h index fdbfe6e..5f08bfd 100644 --- a/include/maat.h +++ b/include/maat.h @@ -281,8 +281,8 @@ int maat_state_disable_compile_NOT(struct maat_state *state); int maat_state_set_scan_compile_table(struct maat_state *state, int compile_table_id); -int maat_state_get_hit_paths(struct maat_state *state, struct maat_hit_path *paths, - size_t n_path); +int maat_state_get_hit_paths(struct maat_state *state, struct maat_hit_path *path_array, + size_t array_size); /** * @brief get the total number of scans after maat_state_new @@ -290,15 +290,24 @@ int maat_state_get_hit_paths(struct maat_state *state, struct maat_hit_path *pat size_t maat_state_get_scan_count(struct maat_state *state); /** - * @brief get hit groups(full or incremental) + * @brief get direct hit groups(full or incremental) * * @param type: * MAAT_LIST_TYPE_FULL => get all hit groups after maat_state_new * MAAT_LIST_TYPE_INC => get hit groups for this scan - * NOTE: hit groups may be duplicated, only return hit sub group id + * NOTE: hit groups may be duplicated */ -int maat_state_get_hit_groups(struct maat_state *state, enum maat_list_type type, - struct maat_hit_group *groups, size_t n_group); +int maat_state_get_direct_hit_groups(struct maat_state *state, enum maat_list_type type, + struct maat_hit_group *group_array, size_t array_size); + +/** + * @brief get indirect hit groups + * + * NOTE: hit groups may be duplicated +*/ +int maat_state_get_indirect_hit_groups(struct maat_state *state, + struct maat_hit_group *group_array, + size_t array_size); /* return hit object compile_id */ int maat_hit_group_compile_id(struct maat *instance, struct maat_hit_group *group); |
