aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-05-10 18:48:35 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-05-13 15:15:40 +0800
commit9dd08df562e724e84800cd06d3d471d7cdc16322 (patch)
tree4844f09e88ac4b345ca116a6cc1293a502c7edaf /libempathy
parent99312b0a738dcee15bda3a5d940eb24e4d29a3b5 (diff)
downloadgsoc2013-empathy-9dd08df562e724e84800cd06d3d471d7cdc16322.tar
gsoc2013-empathy-9dd08df562e724e84800cd06d3d471d7cdc16322.tar.gz
gsoc2013-empathy-9dd08df562e724e84800cd06d3d471d7cdc16322.tar.bz2
gsoc2013-empathy-9dd08df562e724e84800cd06d3d471d7cdc16322.tar.lz
gsoc2013-empathy-9dd08df562e724e84800cd06d3d471d7cdc16322.tar.xz
gsoc2013-empathy-9dd08df562e724e84800cd06d3d471d7cdc16322.tar.zst
gsoc2013-empathy-9dd08df562e724e84800cd06d3d471d7cdc16322.zip
Add empathy_camera_monitor_get_available
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-camera-monitor.c7
-rw-r--r--libempathy/empathy-camera-monitor.h2
2 files changed, 9 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;
+}
diff --git a/libempathy/empathy-camera-monitor.h b/libempathy/empathy-camera-monitor.h
index 0a9a4981e..d2d9bb89e 100644
--- a/libempathy/empathy-camera-monitor.h
+++ b/libempathy/empathy-camera-monitor.h
@@ -50,5 +50,7 @@ GType empathy_camera_monitor_get_type (void) G_GNUC_CONST;
EmpathyCameraMonitor *empathy_camera_monitor_dup_singleton (void);
+gboolean empathy_camera_monitor_get_available (EmpathyCameraMonitor *self);
+
G_END_DECLS
#endif /* __EMPATHY_CAMERA_MONITOR_H__ */