2 * Copyright © 2007,2008 Jaap Haitsma <jaap@haitsma.org>
3 * Copyright © 2007-2009 daniel g. siegel <dgsiegel@gnome.org>
4 * Copyright © 2008 Ryan zeigler <zeiglerr@gmail.com>
6 * Licensed under the GNU General Public License Version 2
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #ifndef __CHEESE_CAMERA_DEVICE_MONITOR_H__
24 #define __CHEESE_CAMERA_DEVICE_MONITOR_H__
26 #include <glib-object.h>
27 #include <gst/interfaces/xoverlay.h>
31 #define CHEESE_TYPE_CAMERA_DEVICE_MONITOR (cheese_camera_device_monitor_get_type ())
32 #define CHEESE_CAMERA_DEVICE_MONITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CHEESE_TYPE_CAMERA_DEVICE_MONITOR, \
33 CheeseCameraDeviceMonitor))
34 #define CHEESE_CAMERA_DEVICE_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), CHEESE_TYPE_CAMERA_DEVICE_MONITOR, \
35 CheeseCameraDeviceMonitorClass))
36 #define CHEESE_IS_CAMERA_DEVICE_MONITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CHEESE_TYPE_CAMERA_DEVICE_MONITOR))
37 #define CHEESE_IS_CAMERA_DEVICE_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CHEESE_TYPE_CAMERA_DEVICE_MONITOR))
38 #define CHEESE_CAMERA_DEVICE_MONITOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CHEESE_TYPE_CAMERA_DEVICE_MONITOR, \
39 CheeseCameraDeviceMonitorClass))
41 typedef struct _CheeseCameraDeviceMonitorClass CheeseCameraDeviceMonitorClass;
42 typedef struct _CheeseCameraDeviceMonitor CheeseCameraDeviceMonitor;
44 struct _CheeseCameraDeviceMonitor
49 struct _CheeseCameraDeviceMonitorClass
51 GObjectClass parent_class;
53 void (*added)(CheeseCameraDeviceMonitor *camera,
55 const char *device_file,
56 const char *product_name,
58 void (*removed)(CheeseCameraDeviceMonitor *camera, const char *id);
61 GType cheese_camera_device_monitor_get_type (void) G_GNUC_CONST;
62 CheeseCameraDeviceMonitor *cheese_camera_device_monitor_new (void);
63 void cheese_camera_device_monitor_coldplug (CheeseCameraDeviceMonitor *monitor);
67 #endif /* __CHEESE_CAMERA_DEVICE_MONITOR_H__ */