treewide: Use new style function definitions

This commit is contained in:
Guido Günther
2020-09-11 18:15:02 +02:00
parent c26feed8b2
commit 306c11f1fd
4 changed files with 5 additions and 5 deletions

View File

@ -241,7 +241,7 @@ static GType new_type(char *name) {
); );
} }
static GType view_type() { static GType view_type(void) {
static GType type = 0; static GType type = 0;
if (!type) { if (!type) {
type = new_type("sq_view"); type = new_type("sq_view");
@ -249,7 +249,7 @@ static GType view_type() {
return type; return type;
} }
static GType button_type() { static GType button_type(void) {
static GType type = 0; static GType type = 0;
if (!type) { if (!type) {
type = new_type("sq_button"); type = new_type("sq_button");

View File

@ -9,7 +9,7 @@ struct squeek_output_handle {
struct squeek_outputs *outputs; struct squeek_outputs *outputs;
}; };
struct squeek_outputs *squeek_outputs_new(); struct squeek_outputs *squeek_outputs_new(void);
void squeek_outputs_free(struct squeek_outputs*); void squeek_outputs_free(struct squeek_outputs*);
void squeek_outputs_register(struct squeek_outputs*, struct wl_output *output); void squeek_outputs_register(struct squeek_outputs*, struct wl_output *output);
struct squeek_output_handle squeek_outputs_get_current(struct squeek_outputs*); struct squeek_output_handle squeek_outputs_get_current(struct squeek_outputs*);

View File

@ -2,6 +2,6 @@
#define __STYLE_H #define __STYLE_H
#include "gtk/gtk.h" #include "gtk/gtk.h"
GtkCssProvider *squeek_load_style(); GtkCssProvider *squeek_load_style(void);
#endif #endif

View File

@ -7,7 +7,7 @@
struct ui_manager; struct ui_manager;
struct ui_manager *squeek_uiman_new(); struct ui_manager *squeek_uiman_new(void);
void squeek_uiman_set_output(struct ui_manager *uiman, struct squeek_output_handle output); void squeek_uiman_set_output(struct ui_manager *uiman, struct squeek_output_handle output);
uint32_t squeek_uiman_get_perceptual_height(struct ui_manager *uiman); uint32_t squeek_uiman_get_perceptual_height(struct ui_manager *uiman);