diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2013-12-12 15:49:33 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2013-12-12 15:49:33 +0100 |
commit | 5e0222e521c43ccc7074856cf43ecc8d1bcaaec8 (patch) | |
tree | e6608d81bdc36277120f90f1702ca54b9c7b034b /src/uca-camera.c | |
parent | 8d07daf747c5061596072b3ecdfffbb2fcd11ef7 (diff) | |
download | uca-5e0222e521c43ccc7074856cf43ecc8d1bcaaec8.tar.gz uca-5e0222e521c43ccc7074856cf43ecc8d1bcaaec8.tar.bz2 uca-5e0222e521c43ccc7074856cf43ecc8d1bcaaec8.tar.xz uca-5e0222e521c43ccc7074856cf43ecc8d1bcaaec8.zip |
Add new API call uca_camera_is_recording
Diffstat (limited to 'src/uca-camera.c')
-rw-r--r-- | src/uca-camera.c | 16 |
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 |