aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-camera-monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-camera-monitor.c')
-rw-r--r--libempathy/empathy-camera-monitor.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libempathy/empathy-camera-monitor.c b/libempathy/empathy-camera-monitor.c
index e86bcb8fb..3d80d40b7 100644
--- a/libempathy/empathy-camera-monitor.c
+++ b/libempathy/empathy-camera-monitor.c
@@ -177,3 +177,10 @@ empathy_camera_monitor_dup_singleton (void)
{
return g_object_new (EMPATHY_TYPE_CAMERA_MONITOR, NULL);
}
+
+gboolean empathy_camera_monitor_get_available (EmpathyCameraMonitor *self)
+{
+ g_return_val_if_fail (EMPATHY_IS_CAMERA_MONITOR (self), FALSE);
+
+ return self->priv->num_cameras > 0;
+}