summaryrefslogtreecommitdiff
path: root/tp-account-widgets/cheese-camera-device-monitor.h
diff options
context:
space:
mode:
authorMarco Barisione <marco.barisione@collabora.co.uk>2013-07-29 16:07:52 +0100
committerMarco Barisione <marco.barisione@collabora.co.uk>2013-08-20 11:03:06 +0100
commit6400b739ecdf0e14ad3cc1c6c7032a4eb486bb0e (patch)
tree7e238a9fe828cb50e66786460c23d5f605dbd5fe /tp-account-widgets/cheese-camera-device-monitor.h
parent7f50fe46dc08956800ee9d63f5191b0d754ca106 (diff)
downloadtelepathy-account-widgets-6400b739ecdf0e14ad3cc1c6c7032a4eb486bb0e.tar.gz
cheese-camera-device-monitor: move from Empathy to tp-account-widgets
This commit also changes the licence of the moved code from GPL to LGPL. See GOSSIP-RELICENSING.txt for details. https://bugzilla.gnome.org/show_bug.cgi?id=699492
Diffstat (limited to 'tp-account-widgets/cheese-camera-device-monitor.h')
-rw-r--r--tp-account-widgets/cheese-camera-device-monitor.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/tp-account-widgets/cheese-camera-device-monitor.h b/tp-account-widgets/cheese-camera-device-monitor.h
new file mode 100644
index 00000000..35344022
--- /dev/null
+++ b/tp-account-widgets/cheese-camera-device-monitor.h
@@ -0,0 +1,67 @@
+/* This file is a copy of cheese-camera-device-monitor.h from Tpaw. We
+ * just renamespaced it to avoid conflicts when linking on libcheese. */
+/*
+ * Copyright © 2007,2008 Jaap Haitsma <jaap@haitsma.org>
+ * Copyright © 2007-2009 daniel g. siegel <dgsiegel@gnome.org>
+ * Copyright © 2008 Ryan zeigler <zeiglerr@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+
+#ifndef __TPAW_CAMERA_DEVICE_MONITOR_H__
+#define __TPAW_CAMERA_DEVICE_MONITOR_H__
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define TPAW_TYPE_CAMERA_DEVICE_MONITOR (tpaw_camera_device_monitor_get_type ())
+#define TPAW_CAMERA_DEVICE_MONITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TPAW_TYPE_CAMERA_DEVICE_MONITOR, \
+ TpawCameraDeviceMonitor))
+#define TPAW_CAMERA_DEVICE_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TPAW_TYPE_CAMERA_DEVICE_MONITOR, \
+ TpawCameraDeviceMonitorClass))
+#define TPAW_IS_CAMERA_DEVICE_MONITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TPAW_TYPE_CAMERA_DEVICE_MONITOR))
+#define TPAW_IS_CAMERA_DEVICE_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TPAW_TYPE_CAMERA_DEVICE_MONITOR))
+#define TPAW_CAMERA_DEVICE_MONITOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TPAW_TYPE_CAMERA_DEVICE_MONITOR, \
+ TpawCameraDeviceMonitorClass))
+
+typedef struct _TpawCameraDeviceMonitorClass TpawCameraDeviceMonitorClass;
+typedef struct _TpawCameraDeviceMonitor TpawCameraDeviceMonitor;
+
+struct _TpawCameraDeviceMonitor
+{
+ GObject parent;
+};
+
+struct _TpawCameraDeviceMonitorClass
+{
+ GObjectClass parent_class;
+
+ void (*added)(TpawCameraDeviceMonitor *camera,
+ const char *id,
+ const char *device_file,
+ const char *product_name,
+ int api_version);
+ void (*removed)(TpawCameraDeviceMonitor *camera, const char *id);
+};
+
+GType tpaw_camera_device_monitor_get_type (void) G_GNUC_CONST;
+TpawCameraDeviceMonitor *tpaw_camera_device_monitor_new (void);
+void tpaw_camera_device_monitor_coldplug (TpawCameraDeviceMonitor *monitor);
+
+G_END_DECLS
+
+#endif /* __TPAW_CAMERA_DEVICE_MONITOR_H__ */