aboutsummaryrefslogtreecommitdiffstats
path: root/src/callbacks.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 18:26:35 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 20:05:41 (GMT)
commit657069d8da19cd1f35103bc233dd8e6a44224ceb (patch)
tree7d4a686b4ce825aa745043a49a3106f103eb8c10 /src/callbacks.h
parent778a02eb5e31039bb0c23d3eabbab5963f45c90c (diff)
Unify coding style
The coding style of Camorama is a mess. It doesn't consistently follow the same style. Unify it by applying a coding style close to the Linux Kernel. There is an exception, however: here, we'll use indent with 4, and won't use tabs. Rationale for using the Kernel style: 1) The checkpatch.pl script there can do lots of cleanups; 2) There used to be a lindent line (with I still have here), with do several other style cleanups. So, most of the changes can happen on a more automatic way. Still, care should be taken with static constants, as Kernel initializes them with zeros, while userspace don't. Accidentally, I'm more familiar with this style, with makes easier for me to contribute :-D No functional changes. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src/callbacks.h')
-rw-r--r--src/callbacks.h123
1 files changed, 62 insertions, 61 deletions
diff --git a/src/callbacks.h b/src/callbacks.h
index 83efcc8..c0c2e1b 100644
--- a/src/callbacks.h
+++ b/src/callbacks.h
@@ -7,67 +7,68 @@
G_BEGIN_DECLS
-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 **);
-void gconf_notify_func_bool (GConfClient * client, guint cnxn_id,
- GConfEntry * entry, gboolean *val);
-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_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_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_t *);
-gint read_timeout_func (cam_t *);
-void edge_func1 (GtkToggleButton *, gpointer);
-void sobel_func (GtkToggleButton *, gpointer);
-void fix_colour_func (GtkToggleButton *, char *);
-void threshold_func1 (GtkToggleButton *, gpointer);
-void threshold_ch_func (GtkToggleButton *, gpointer);
-void edge_func3 (GtkToggleButton *, gpointer);
-void mirror_func (GtkToggleButton *, gpointer);
-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_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);
+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 **);
+void gconf_notify_func_bool(GConfClient *client, guint cnxn_id,
+ GConfEntry *entry, gboolean *val);
+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_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 *);
-G_END_DECLS
+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_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_t *);
+gint read_timeout_func(cam_t *);
+void edge_func1(GtkToggleButton *, gpointer);
+void sobel_func(GtkToggleButton *, gpointer);
+void fix_colour_func(GtkToggleButton *, char *);
+void threshold_func1(GtkToggleButton *, gpointer);
+void threshold_ch_func(GtkToggleButton *, gpointer);
+void edge_func3(GtkToggleButton *, gpointer);
+void mirror_func(GtkToggleButton *, gpointer);
+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_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);
-#endif /* !CAMORAMA_CALLBACKS_H */
+G_END_DECLS
+#endif /* !CAMORAMA_CALLBACKS_H */

Privacy Policy