aboutsummaryrefslogtreecommitdiffstats
path: root/src/callbacks.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 09:16:31 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 09:59:24 (GMT)
commitab49eda5720583b0470a329434554e97c735e696 (patch)
tree01dd96abb868c597d9c16023c7feefaacda9ef84 /src/callbacks.h
parent39b0f779f454e7c4c58cc68352998e7f5ed7ab99 (diff)
Rename camera struct typedef from cam to cam_t
Depending on the gcc options, that causes a fatal warning: v4l.c:36:37: error: declaration of ‘cam’ shadows a global declaration [-Werror=shadow] static void insert_resolution(cam * cam, int x, int y) ~~~~~~^~~ In file included from v4l.c:6: v4l.h:99:3: note: shadowed declaration is here } cam; ^~~ Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src/callbacks.h')
-rw-r--r--src/callbacks.h76
1 files changed, 38 insertions, 38 deletions
diff --git a/src/callbacks.h b/src/callbacks.h
index 3b3fa98..5dd13f9 100644
--- a/src/callbacks.h
+++ b/src/callbacks.h
@@ -7,7 +7,7 @@
G_BEGIN_DECLS
-void on_change_size_activate (GtkWidget * widget, cam * cam);
+void on_change_size_activate (GtkWidget * widget, cam_t *cam);
void on_quit_activate (GtkMenuItem * menuitem, gpointer user_data);
void gconf_notify_func (GConfClient * client, guint cnxn_id,
GConfEntry * entry, char *);
@@ -16,36 +16,36 @@ void gconf_notify_func_bool (GConfClient * client, guint cnxn_id,
void gconf_notify_func_int (GConfClient * client, guint cnxn_id,
GConfEntry * entry, int val);
int delete_event (GtkWidget *, gpointer data);
-void cap_func (GtkWidget *, cam *);
-void rcap_func (GtkWidget *, cam *);
-void acap_func (GtkWidget *, cam *);
-void set_sensitive (cam *);
-void tt_enable_func (GtkWidget *, cam *);
-void interval_change (GtkWidget *, cam *);
-void ts_func (GtkWidget *, cam *);
-void customstring_func (GtkWidget *, cam *);
-void drawdate_func (GtkWidget *, cam *);
-void append_func (GtkWidget *, cam *);
-void rappend_func (GtkWidget *, cam *);
-void jpg_func (GtkWidget *, cam *);
-void png_func (GtkWidget *, cam *);
-void ppm_func (GtkWidget *, cam *);
-void rts_func (GtkWidget *, cam *);
-void rjpg_func (GtkWidget *, cam *);
-void rpng_func (GtkWidget *, cam *);
-gint (*pt2Function) (cam *);
-void rppm_func (GtkWidget *, cam *);
+void cap_func (GtkWidget *, cam_t *);
+void rcap_func (GtkWidget *, cam_t *);
+void acap_func (GtkWidget *, cam_t *);
+void set_sensitive (cam_t *);
+void tt_enable_func (GtkWidget *, cam_t *);
+void interval_change (GtkWidget *, cam_t *);
+void ts_func (GtkWidget *, cam_t *);
+void customstring_func (GtkWidget *, cam_t *);
+void drawdate_func (GtkWidget *, cam_t *);
+void append_func (GtkWidget *, cam_t *);
+void rappend_func (GtkWidget *, cam_t *);
+void jpg_func (GtkWidget *, cam_t *);
+void png_func (GtkWidget *, cam_t *);
+void ppm_func (GtkWidget *, cam_t *);
+void rts_func (GtkWidget *, cam_t *);
+void rjpg_func (GtkWidget *, cam_t *);
+void rpng_func (GtkWidget *, cam_t *);
+gint (*pt2Function) (cam_t *);
+void rppm_func (GtkWidget *, cam_t *);
void on_preferences1_activate (GtkMenuItem * menuitem, gpointer user_data);
-void on_about_activate (GtkMenuItem * menuitem, cam *cam);
-void on_show_adjustments_activate (GtkToggleButton * button, cam *);
-void on_show_effects_activate (GtkMenuItem * menuitem, cam *);
-void prefs_func (GtkWidget *, cam *);
-void capture_func2 (GtkWidget *, cam *);
-void capture_func (GtkWidget *, cam *);
-gint timeout_capture_func (cam *);
+void on_about_activate (GtkMenuItem * menuitem, cam_t *cam);
+void on_show_adjustments_activate (GtkToggleButton * button, cam_t *);
+void on_show_effects_activate (GtkMenuItem * menuitem, cam_t *);
+void prefs_func (GtkWidget *, cam_t *);
+void capture_func2 (GtkWidget *, cam_t *);
+void capture_func (GtkWidget *, cam_t *);
+gint timeout_capture_func (cam_t *);
gint fps (GtkWidget *);
-gint timeout_func (cam *);
-gint read_timeout_func (cam *);
+gint timeout_func (cam_t *);
+gint read_timeout_func (cam_t *);
void edge_func1 (GtkToggleButton *, gpointer);
void sobel_func (GtkToggleButton *, gpointer);
void fix_colour_func (GtkToggleButton *, char *);
@@ -57,15 +57,15 @@ void reichardt_func (GtkToggleButton *, gpointer);
void colour_func (GtkToggleButton *, gpointer);
void smooth_func (GtkToggleButton *, gpointer);
void negative_func (GtkToggleButton *, gpointer);
-void on_scale1_drag_data_received (GtkHScale *, cam *);
-void on_status_show (GtkWidget *, cam *);
-void contrast_change (GtkHScale *, cam *);
-void brightness_change (GtkHScale *, cam *);
-void colour_change (GtkHScale *, cam *);
-void hue_change (GtkHScale *, cam *);
-void wb_change (GtkHScale *, cam *);
-gboolean on_drawingarea_expose_event (GtkWidget *, GdkEventExpose *, cam *);
-void update_tooltip (cam * cam);
+void on_scale1_drag_data_received (GtkHScale *, cam_t *);
+void on_status_show (GtkWidget *, cam_t *);
+void contrast_change (GtkHScale *, cam_t *);
+void brightness_change (GtkHScale *, cam_t *);
+void colour_change (GtkHScale *, cam_t *);
+void hue_change (GtkHScale *, cam_t *);
+void wb_change (GtkHScale *, cam_t *);
+gboolean on_drawingarea_expose_event (GtkWidget *, GdkEventExpose *, cam_t *);
+void update_tooltip (cam_t *cam);
G_END_DECLS

Privacy Policy