add stat&perf API
This commit is contained in:
@@ -108,6 +108,8 @@ int maat_options_set_rule_update_checking_interval_ms(struct maat_options *opts,
|
|||||||
int maat_options_set_gc_timeout_ms(struct maat_options *opts, int interval_ms);
|
int maat_options_set_gc_timeout_ms(struct maat_options *opts, int interval_ms);
|
||||||
int maat_options_set_instance_name(struct maat_options *opts, const char *instance_name);
|
int maat_options_set_instance_name(struct maat_options *opts, const char *instance_name);
|
||||||
int maat_options_set_deferred_load_on(struct maat_options *opts);
|
int maat_options_set_deferred_load_on(struct maat_options *opts);
|
||||||
|
int maat_options_set_stat_on(struct maat_options *opts);
|
||||||
|
int maat_options_set_perf_on(struct maat_options *opts);
|
||||||
int maat_options_set_foreign_cont_dir(struct maat_options *opts, const char *dir);
|
int maat_options_set_foreign_cont_dir(struct maat_options *opts, const char *dir);
|
||||||
int maat_options_set_logger(struct maat_options *opts, const char *log_path, enum log_level level);
|
int maat_options_set_logger(struct maat_options *opts, const char *log_path, enum log_level level);
|
||||||
|
|
||||||
|
|||||||
@@ -192,6 +192,16 @@ int maat_options_set_deferred_load_on(struct maat_options *opts)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int maat_options_set_stat_on(struct maat_options *opts)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
int maat_options_set_perf_on(struct maat_options *opts)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
int maat_options_set_foreign_cont_dir(struct maat_options *opts, const char *dir)
|
int maat_options_set_foreign_cont_dir(struct maat_options *opts, const char *dir)
|
||||||
{
|
{
|
||||||
if (NULL == opts || NULL == dir || strlen(dir) >= NAME_MAX) {
|
if (NULL == opts || NULL == dir || strlen(dir) >= NAME_MAX) {
|
||||||
|
|||||||
Reference in New Issue
Block a user