summaryrefslogtreecommitdiff
path: root/navit/gui.c
diff options
context:
space:
mode:
authorJoseph Herlant <aerostitch@users.noreply.github.com>2018-05-30 08:43:42 -0700
committerjkoan <jkoan@users.noreply.github.com>2018-05-30 17:43:42 +0200
commit567a02aa949dfa34f7b2c2246c6eb6f8818fdf01 (patch)
tree4bb102fa60f0d01db0184d1424a5fc822ba79bc9 /navit/gui.c
parentcd477eb0e05b74b8dd26aa2df2778505a3b3c37c (diff)
downloadnavit-567a02aa949dfa34f7b2c2246c6eb6f8818fdf01.tar.gz
Cleanup:global:force the re-attach the return type to the function declaration (#605)
* Cleanup:global:force the re-attach the return type to the function declaration * cleanup:global:some loose ends
Diffstat (limited to 'navit/gui.c')
-rw-r--r--navit/gui.c24
1 files changed, 8 insertions, 16 deletions
diff --git a/navit/gui.c b/navit/gui.c
index f2aa540a8..f9de8496d 100644
--- a/navit/gui.c
+++ b/navit/gui.c
@@ -58,8 +58,7 @@ gui_new(struct attr *parent, struct attr **attrs) {
return this_;
}
-int
-gui_get_attr(struct gui *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter) {
+int gui_get_attr(struct gui *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter) {
int ret;
if (this_->meth.get_attr) {
ret=this_->meth.get_attr(this_->priv, type, attr);
@@ -74,8 +73,7 @@ gui_get_attr(struct gui *this_, enum attr_type type, struct attr *attr, struct a
}
-int
-gui_set_attr(struct gui *this_, struct attr *attr) {
+int gui_set_attr(struct gui *this_, struct attr *attr) {
int ret=1;
if (this_->meth.set_attr)
ret=this_->meth.set_attr(this_->priv, attr);
@@ -84,8 +82,7 @@ gui_set_attr(struct gui *this_, struct attr *attr) {
return ret != 0;
}
-int
-gui_add_attr(struct gui *this_, struct attr *attr) {
+int gui_add_attr(struct gui *this_, struct attr *attr) {
int ret=0;
if (this_->meth.add_attr)
ret=this_->meth.add_attr(this_->priv, attr);
@@ -134,8 +131,7 @@ gui_datawindow_new(struct gui *gui, const char *name, struct callback *click, st
return this_;
}
-int
-gui_add_bookmark(struct gui *gui, struct pcoord *c, char *description) {
+int gui_add_bookmark(struct gui *gui, struct pcoord *c, char *description) {
int ret;
dbg(lvl_info,"enter");
if (! gui->meth.add_bookmark)
@@ -146,8 +142,7 @@ gui_add_bookmark(struct gui *gui, struct pcoord *c, char *description) {
return ret;
}
-int
-gui_set_graphics(struct gui *this_, struct graphics *gra) {
+int gui_set_graphics(struct gui *this_, struct graphics *gra) {
if (! this_->meth.set_graphics) {
dbg(lvl_error, "cannot set graphics, method 'set_graphics' not available");
return 1;
@@ -155,21 +150,18 @@ gui_set_graphics(struct gui *this_, struct graphics *gra) {
return this_->meth.set_graphics(this_->priv, gra);
}
-void
-gui_disable_suspend(struct gui *this_) {
+void gui_disable_suspend(struct gui *this_) {
if (this_->meth.disable_suspend)
this_->meth.disable_suspend(this_->priv);
}
-int
-gui_has_main_loop(struct gui *this_) {
+int gui_has_main_loop(struct gui *this_) {
if (! this_->meth.run_main_loop)
return 0;
return 1;
}
-int
-gui_run_main_loop(struct gui *this_) {
+int gui_run_main_loop(struct gui *this_) {
if (! gui_has_main_loop(this_))
return 1;
return this_->meth.run_main_loop(this_->priv);