libweston: Add functions to modify disable_planes counter for an output
The member disable_planes of weston_output signifies the recording
status of the output, and is incremented and decremented from various
places. This patch provides helper functions to increment and decrement
the counter. These functions can then be used to do processing, before
and after the recording has started or stopped.
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
diff --git a/libweston/compositor.c b/libweston/compositor.c
index 8532715..3f5d096 100644
--- a/libweston/compositor.c
+++ b/libweston/compositor.c
@@ -7752,3 +7752,15 @@
"server error with "
"wl_buffer@%u: %s", id, msg);
}
+
+WL_EXPORT void
+weston_output_disable_planes_incr(struct weston_output *output)
+{
+ output->disable_planes++;
+}
+
+WL_EXPORT void
+weston_output_disable_planes_decr(struct weston_output *output)
+{
+ output->disable_planes--;
+}