aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/cheese-camera-device-monitor.h
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-12-01 18:28:04 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-12-02 16:20:46 +0800
commit0fdc28006acf7be50776e237969bc31b38245e32 (patch)
tree871967aa0903f3237e0cb94e955aed44378a0d80 /libempathy/cheese-camera-device-monitor.h
parentaf5d0bf3e9b61bff1c4c9b845143c1122b78c093 (diff)
downloadgsoc2013-empathy-0fdc28006acf7be50776e237969bc31b38245e32.tar
gsoc2013-empathy-0fdc28006acf7be50776e237969bc31b38245e32.tar.gz
gsoc2013-empathy-0fdc28006acf7be50776e237969bc31b38245e32.tar.bz2
gsoc2013-empathy-0fdc28006acf7be50776e237969bc31b38245e32.tar.lz
gsoc2013-empathy-0fdc28006acf7be50776e237969bc31b38245e32.tar.xz
gsoc2013-empathy-0fdc28006acf7be50776e237969bc31b38245e32.tar.zst
gsoc2013-empathy-0fdc28006acf7be50776e237969bc31b38245e32.zip
renamespace CheeseCameraDeviceMonitor
This ensures empathy will always use our version, even when linking on libcheese, and so avoid incompatibliy when libcheese breaks its ABI. https://bugzilla.gnome.org/show_bug.cgi?id=665244
Diffstat (limited to 'libempathy/cheese-camera-device-monitor.h')
-rw-r--r--libempathy/cheese-camera-device-monitor.h44
1 files changed, 23 insertions, 21 deletions
diff --git a/libempathy/cheese-camera-device-monitor.h b/libempathy/cheese-camera-device-monitor.h
index d0d98a45f..ff0bfa767 100644
--- a/libempathy/cheese-camera-device-monitor.h
+++ b/libempathy/cheese-camera-device-monitor.h
@@ -1,3 +1,5 @@
+/* This file is a copy of cheese-camera-device-monitor.h from Empathy. 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>
@@ -20,48 +22,48 @@
*/
-#ifndef __CHEESE_CAMERA_DEVICE_MONITOR_H__
-#define __CHEESE_CAMERA_DEVICE_MONITOR_H__
+#ifndef __EMPATHY_CAMERA_DEVICE_MONITOR_H__
+#define __EMPATHY_CAMERA_DEVICE_MONITOR_H__
#include <glib-object.h>
#include <gst/interfaces/xoverlay.h>
G_BEGIN_DECLS
-#define CHEESE_TYPE_CAMERA_DEVICE_MONITOR (cheese_camera_device_monitor_get_type ())
-#define CHEESE_CAMERA_DEVICE_MONITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CHEESE_TYPE_CAMERA_DEVICE_MONITOR, \
- CheeseCameraDeviceMonitor))
-#define CHEESE_CAMERA_DEVICE_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), CHEESE_TYPE_CAMERA_DEVICE_MONITOR, \
- CheeseCameraDeviceMonitorClass))
-#define CHEESE_IS_CAMERA_DEVICE_MONITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CHEESE_TYPE_CAMERA_DEVICE_MONITOR))
-#define CHEESE_IS_CAMERA_DEVICE_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CHEESE_TYPE_CAMERA_DEVICE_MONITOR))
-#define CHEESE_CAMERA_DEVICE_MONITOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CHEESE_TYPE_CAMERA_DEVICE_MONITOR, \
- CheeseCameraDeviceMonitorClass))
+#define EMPATHY_TYPE_CAMERA_DEVICE_MONITOR (empathy_camera_device_monitor_get_type ())
+#define EMPATHY_CAMERA_DEVICE_MONITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_CAMERA_DEVICE_MONITOR, \
+ EmpathyCameraDeviceMonitor))
+#define EMPATHY_CAMERA_DEVICE_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), EMPATHY_TYPE_CAMERA_DEVICE_MONITOR, \
+ EmpathyCameraDeviceMonitorClass))
+#define EMPATHY_IS_CAMERA_DEVICE_MONITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_CAMERA_DEVICE_MONITOR))
+#define EMPATHY_IS_CAMERA_DEVICE_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_CAMERA_DEVICE_MONITOR))
+#define EMPATHY_CAMERA_DEVICE_MONITOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_CAMERA_DEVICE_MONITOR, \
+ EmpathyCameraDeviceMonitorClass))
-typedef struct _CheeseCameraDeviceMonitorClass CheeseCameraDeviceMonitorClass;
-typedef struct _CheeseCameraDeviceMonitor CheeseCameraDeviceMonitor;
+typedef struct _EmpathyCameraDeviceMonitorClass EmpathyCameraDeviceMonitorClass;
+typedef struct _EmpathyCameraDeviceMonitor EmpathyCameraDeviceMonitor;
-struct _CheeseCameraDeviceMonitor
+struct _EmpathyCameraDeviceMonitor
{
GObject parent;
};
-struct _CheeseCameraDeviceMonitorClass
+struct _EmpathyCameraDeviceMonitorClass
{
GObjectClass parent_class;
- void (*added)(CheeseCameraDeviceMonitor *camera,
+ void (*added)(EmpathyCameraDeviceMonitor *camera,
const char *id,
const char *device_file,
const char *product_name,
int api_version);
- void (*removed)(CheeseCameraDeviceMonitor *camera, const char *id);
+ void (*removed)(EmpathyCameraDeviceMonitor *camera, const char *id);
};
-GType cheese_camera_device_monitor_get_type (void) G_GNUC_CONST;
-CheeseCameraDeviceMonitor *cheese_camera_device_monitor_new (void);
-void cheese_camera_device_monitor_coldplug (CheeseCameraDeviceMonitor *monitor);
+GType empathy_camera_device_monitor_get_type (void) G_GNUC_CONST;
+EmpathyCameraDeviceMonitor *empathy_camera_device_monitor_new (void);
+void empathy_camera_device_monitor_coldplug (EmpathyCameraDeviceMonitor *monitor);
G_END_DECLS
-#endif /* __CHEESE_CAMERA_DEVICE_MONITOR_H__ */
+#endif /* __EMPATHY_CAMERA_DEVICE_MONITOR_H__ */