summaryrefslogtreecommitdiff
path: root/src/overlays.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2017-03-20 22:12:30 -0700
committerVito Caputo <vcaputo@gnugeneration.com>2017-03-20 22:35:38 -0700
commit32e13594d13767fc0687c43ddcd68cae9ac555d0 (patch)
tree663ccf75cee4fd4aeceaab73dbebd966d90b1f8a /src/overlays.h
parent5bb2a77b7ef357975346b0380471aedbd775d164 (diff)
overlays: add ability to explicitly set rate
In vwm it was only necessary to relatively increase/decrease the sample rate. With vmon being primarily a cli tool, explicit setting of the rate is desirable. This commit reworks things a little de-specializing the zero value of overlays->sampling_interval, while switching this to instead of being an index into the intervals table simply contain the float interval itself. The math.h INFINITY macro becomes the new paused/zero value, and simply gets an entry of its own in the intervals table as the lowest one.
Diffstat (limited to 'src/overlays.h')
-rw-r--r--src/overlays.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/overlays.h b/src/overlays.h
index 0e9864c..ee965ff 100644
--- a/src/overlays.h
+++ b/src/overlays.h
@@ -13,6 +13,7 @@ vwm_overlays_t * vwm_overlays_create(vwm_xserver_t *xserver);
void vwm_overlays_destroy(vwm_overlays_t *overlays);
void vwm_overlays_rate_increase(vwm_overlays_t *overlays);
void vwm_overlays_rate_decrease(vwm_overlays_t *overlays);
+void vwm_overlays_rate_set(vwm_overlays_t *overlays, unsigned hertz);
int vwm_overlays_update(vwm_overlays_t *overlays, int *desired_delay);
vwm_overlay_t * vwm_overlay_create(vwm_overlays_t *overlays, int pid, int width, int height);
© All Rights Reserved