aboutsummaryrefslogtreecommitdiffstats
path: root/src/callbacks.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-21 09:57:52 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-21 09:57:52 (GMT)
commitc17f7baf89a3ef65c4eb866adc1df65729ac548b (patch)
treea22c96cdc1ee5507f6bffb9aa9a2a0558a76f92c /src/callbacks.h
parentf85679e6c08c5ed1c8bee595bb15805d1e9ec081 (diff)
Move the select device dialog logit to callbacks.c
As we intend to be able to select another device anytime, via a callback, move the logic associated with device selection to the callbacks.c. As a side effect, it makes the main.c cleaner. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src/callbacks.h')
-rw-r--r--src/callbacks.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/callbacks.h b/src/callbacks.h
index f85e9ac..1ea424f 100644
--- a/src/callbacks.h
+++ b/src/callbacks.h
@@ -4,6 +4,15 @@
#include "v4l.h"
#include "fileio.h"
+struct devnodes {
+ char *fname;
+ int minor;
+ gboolean is_valid;
+};
+
+extern unsigned int n_devices, n_valid_devices;
+extern struct devnodes *devices;
+
G_BEGIN_DECLS
void on_change_size_activate(GtkWidget * widget, cam_t *cam);
@@ -62,6 +71,8 @@ void wb_change(GtkScale *, cam_t *);
gboolean on_drawingarea_expose_event(GtkWidget *, GdkEventExpose *,
cam_t *);
void set_image_scale(cam_t *cam);
+void retrieve_video_dev(cam_t *cam);
+int select_video_dev(cam_t *cam);
G_END_DECLS

Privacy Policy