dlog_logger: refactor QoS distributions
[platform/core/system/dlog.git] / src / logger / qos.c
index c780beb..a8ddfc6 100644 (file)
@@ -18,8 +18,6 @@
 #include <stdlib.h>
 #include <logcommon.h>
 
-void (*qos_distribution_func)(struct qos_module *qos, struct metrics_pid_aggr_info *infos, int count);
-
 bool qos_is_enabled(const struct qos_module *qos)
 {
        assert(qos);
@@ -60,7 +58,7 @@ void qos_create_limits_file(struct qos_module *qos, bool is_limiting)
                }
        }
 
-       qos_distribution_func(qos, aggr_infos, aggr_count);
+       qos->distribution_func(qos, aggr_infos, aggr_count);
 
        const int len = aggr_count * 32;
        __attribute__((cleanup(free_ptr))) char *buf = malloc(len);