]> git.0d.be Git - empathy.git/blob - libempathy/cheese-camera-device-monitor.h
Updated kn translations
[empathy.git] / libempathy / cheese-camera-device-monitor.h
1 /* This file is a copy of cheese-camera-device-monitor.h from Empathy. We
2  * just renamespaced it to avoid conflicts when linking on libcheese. */
3 /*
4  * Copyright © 2007,2008 Jaap Haitsma <jaap@haitsma.org>
5  * Copyright © 2007-2009 daniel g. siegel <dgsiegel@gnome.org>
6  * Copyright © 2008 Ryan zeigler <zeiglerr@gmail.com>
7  *
8  * Licensed under the GNU General Public License Version 2
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
22  */
23
24
25 #ifndef __EMPATHY_CAMERA_DEVICE_MONITOR_H__
26 #define __EMPATHY_CAMERA_DEVICE_MONITOR_H__
27
28 #include <glib-object.h>
29
30 G_BEGIN_DECLS
31
32 #define EMPATHY_TYPE_CAMERA_DEVICE_MONITOR (empathy_camera_device_monitor_get_type ())
33 #define EMPATHY_CAMERA_DEVICE_MONITOR(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_CAMERA_DEVICE_MONITOR, \
34                                                                                EmpathyCameraDeviceMonitor))
35 #define EMPATHY_CAMERA_DEVICE_MONITOR_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST ((k), EMPATHY_TYPE_CAMERA_DEVICE_MONITOR, \
36                                                                             EmpathyCameraDeviceMonitorClass))
37 #define EMPATHY_IS_CAMERA_DEVICE_MONITOR(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_CAMERA_DEVICE_MONITOR))
38 #define EMPATHY_IS_CAMERA_DEVICE_MONITOR_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_CAMERA_DEVICE_MONITOR))
39 #define EMPATHY_CAMERA_DEVICE_MONITOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_CAMERA_DEVICE_MONITOR, \
40                                                                               EmpathyCameraDeviceMonitorClass))
41
42 typedef struct _EmpathyCameraDeviceMonitorClass EmpathyCameraDeviceMonitorClass;
43 typedef struct _EmpathyCameraDeviceMonitor EmpathyCameraDeviceMonitor;
44
45 struct _EmpathyCameraDeviceMonitor
46 {
47   GObject parent;
48 };
49
50 struct _EmpathyCameraDeviceMonitorClass
51 {
52   GObjectClass parent_class;
53
54   void (*added)(EmpathyCameraDeviceMonitor *camera,
55                 const char                *id,
56                 const char                *device_file,
57                 const char                *product_name,
58                 int                        api_version);
59   void (*removed)(EmpathyCameraDeviceMonitor *camera, const char *id);
60 };
61
62 GType                      empathy_camera_device_monitor_get_type (void) G_GNUC_CONST;
63 EmpathyCameraDeviceMonitor *empathy_camera_device_monitor_new (void);
64 void                       empathy_camera_device_monitor_coldplug (EmpathyCameraDeviceMonitor *monitor);
65
66 G_END_DECLS
67
68 #endif /* __EMPATHY_CAMERA_DEVICE_MONITOR_H__ */