summaryrefslogtreecommitdiff
path: root/trunk/src/bacon-v4l-selection.h
blob: da2e51f894f74f2f026b584e54f57c380dcdb135 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/* 
 * Copyright (C) 2002 Bastien Nocera <hadess@hadess.net>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 * Authors: Bastien Nocera <hadess@hadess.net>
 *
 *
 * The Totem project hereby grant permission for non-gpl compatible GStreamer
 * plugins to be used and distributed together with GStreamer and Totem. This
 * permission are above and beyond the permissions granted by the GPL license
 * Totem is covered by.
 *
 * Monday 7th February 2005: Christian Schaller: Add excemption clause.
 * See license_change file for details.
 *
 */

#ifndef HAVE_BACON_V4L_SELECTION_H
#define HAVE_BACON_V4L_SELECTION_H

#include <gtk/gtkcomboboxentry.h>

G_BEGIN_DECLS

#define BACON_V4L_SELECTION(obj)              (GTK_CHECK_CAST ((obj), bacon_v4l_selection_get_type (), BaconV4lSelection))
#define BACON_V4L_SELECTION_CLASS(klass)      (GTK_CHECK_CLASS_CAST ((klass), bacon_v4l_selection_get_type (), BaconV4lSelectionClass))
#define BACON_IS_V4L_SELECTION(obj)           (GTK_CHECK_TYPE (obj, bacon_v4l_selection_get_type ()))
#define BACON_IS_V4L_SELECTION_CLASS(klass)   (GTK_CHECK_CLASS_TYPE ((klass), bacon_v4l_selection_get_type ()))

typedef struct BaconV4lSelectionPrivate BaconV4lSelectionPrivate;

typedef struct {
	GtkComboBox widget;
	BaconV4lSelectionPrivate *priv;
} BaconV4lSelection;

typedef struct {
	GtkComboBoxClass parent_class;
	void (*device_changed) (GtkWidget *bvs, const char *device_path);
} BaconV4lSelectionClass;

GtkType bacon_v4l_selection_get_type              (void);
GtkWidget *bacon_v4l_selection_new                (void);

void bacon_v4l_selection_set_device		 (BaconV4lSelection *bvs,
						  const char *device);
const char *bacon_v4l_selection_get_device	 (BaconV4lSelection *bvs);
const char *bacon_v4l_selection_get_default_device (BaconV4lSelection *bvs);

G_END_DECLS

#endif				/* HAVE_BACON_V4L_SELECTION_H */