diff options
Diffstat (limited to 'lib/perfdata.h')
-rw-r--r-- | lib/perfdata.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/perfdata.h b/lib/perfdata.h index 74583ee5..cb552678 100644 --- a/lib/perfdata.h +++ b/lib/perfdata.h | |||
@@ -171,6 +171,11 @@ mp_perfdata_value mp_create_pd_value_u_long(unsigned long); | |||
171 | mp_perfdata_value mp_create_pd_value_long_long(long long); | 171 | mp_perfdata_value mp_create_pd_value_long_long(long long); |
172 | mp_perfdata_value mp_create_pd_value_u_long_long(unsigned long long); | 172 | mp_perfdata_value mp_create_pd_value_u_long_long(unsigned long long); |
173 | 173 | ||
174 | mp_perfdata mp_set_pd_max_value(mp_perfdata perfdata, mp_perfdata_value value); | ||
175 | mp_perfdata mp_set_pd_min_value(mp_perfdata perfdata, mp_perfdata_value value); | ||
176 | |||
177 | double mp_get_pd_value(mp_perfdata_value value); | ||
178 | |||
174 | /* | 179 | /* |
175 | * Free the memory used by a pd_list | 180 | * Free the memory used by a pd_list |
176 | */ | 181 | */ |
@@ -178,6 +183,13 @@ void pd_list_free(pd_list[1]); | |||
178 | 183 | ||
179 | int cmp_perfdata_value(mp_perfdata_value, mp_perfdata_value); | 184 | int cmp_perfdata_value(mp_perfdata_value, mp_perfdata_value); |
180 | 185 | ||
186 | // ================ | ||
187 | // Helper functions | ||
188 | // ================ | ||
189 | |||
190 | mp_perfdata_value mp_pd_value_multiply(mp_perfdata_value left, mp_perfdata_value right); | ||
191 | mp_range mp_range_multiply(mp_range range, mp_perfdata_value factor); | ||
192 | |||
181 | // ================= | 193 | // ================= |
182 | // String formatters | 194 | // String formatters |
183 | // ================= | 195 | // ================= |