summaryrefslogtreecommitdiffstats
path: root/src/uca-camera.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uca-camera.c')
-rw-r--r--src/uca-camera.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/uca-camera.c b/src/uca-camera.c
index 2f0744e..ee2c432 100644
--- a/src/uca-camera.c
+++ b/src/uca-camera.c
@@ -597,6 +597,22 @@ uca_camera_stop_recording (UcaCamera *camera, GError **error)
}
/**
+ * uca_camera_is_recording:
+ * @camera: A #UcaCamera object
+ *
+ * Convenience function to ask the current recording status
+ *
+ * Return value: %TRUE if recording is ongoing
+ * Since: 1.5
+ */
+gboolean
+uca_camera_is_recording (UcaCamera *camera)
+{
+ g_return_val_if_fail (UCA_IS_CAMERA (camera), FALSE);
+ return camera->priv->is_recording;
+}
+
+/**
* uca_camera_start_readout:
* @camera: A #UcaCamera object
* @error: Location to store a #UcaCameraError error or %NULL