diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/uca-camera.c | 16 | ||||
-rw-r--r-- | src/uca-camera.h | 1 |
2 files changed, 17 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 diff --git a/src/uca-camera.h b/src/uca-camera.h index cf21609..c11644d 100644 --- a/src/uca-camera.h +++ b/src/uca-camera.h @@ -143,6 +143,7 @@ void uca_camera_start_recording (UcaCamera *camera, GError **error); void uca_camera_stop_recording (UcaCamera *camera, GError **error); +gboolean uca_camera_is_recording (UcaCamera *camera); void uca_camera_start_readout (UcaCamera *camera, GError **error); void uca_camera_stop_readout (UcaCamera *camera, |