From fa20f603834ef9febe396c058c9d775038f4a28b Mon Sep 17 00:00:00 2001 From: PA4WDH Date: Wed, 24 May 2023 08:33:53 +0200 Subject: Add logging functions --- cputemp2maxfreq.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cputemp2maxfreq.h') diff --git a/cputemp2maxfreq.h b/cputemp2maxfreq.h index 39886fd..cda9d4b 100644 --- a/cputemp2maxfreq.h +++ b/cputemp2maxfreq.h @@ -32,6 +32,8 @@ struct s_config { long int freq_step; // Step size to increase/decrease CPU frequency long int fallback_freq; // CPU frquency to set if we fail to protect hardware unsigned int interval; // Time interval to check CPU temperature + char logger_name[10]; // Name of the logging function + void (*logger)(char *,...); // Pointer to the logging function }; #endif -- cgit v1.2.3