]> git.0d.be Git - empathy.git/blob - libempathy/cheese-camera-device-monitor.h
Add CheeseCameraDeviceMonitor from libcheese
[empathy.git] / libempathy / cheese-camera-device-monitor.h
1 /*
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>
5  *
6  * Licensed under the GNU General Public License Version 2
7  *
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.
12  *
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.
17  *
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/>.
20  */
21
22
23 #ifndef __CHEESE_CAMERA_DEVICE_MONITOR_H__
24 #define __CHEESE_CAMERA_DEVICE_MONITOR_H__
25
26 #include <glib-object.h>
27 #include <gst/interfaces/xoverlay.h>
28
29 G_BEGIN_DECLS
30
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))
40
41 typedef struct _CheeseCameraDeviceMonitorClass CheeseCameraDeviceMonitorClass;
42 typedef struct _CheeseCameraDeviceMonitor CheeseCameraDeviceMonitor;
43
44 struct _CheeseCameraDeviceMonitor
45 {
46   GObject parent;
47 };
48
49 struct _CheeseCameraDeviceMonitorClass
50 {
51   GObjectClass parent_class;
52
53   void (*added)(CheeseCameraDeviceMonitor *camera,
54                 const char                *id,
55                 const char                *device_file,
56                 const char                *product_name,
57                 int                        api_version);
58   void (*removed)(CheeseCameraDeviceMonitor *camera, const char *id);
59 };
60
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);
64
65 G_END_DECLS
66
67 #endif /* __CHEESE_CAMERA_DEVICE_MONITOR_H__ */