From effc206524295152c6bfe1f111ad39f75c549253 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 22 Sep 2017 15:51:51 -0400 Subject: src/application.h, src/window.h: Forward declare types This is not legal in C99, but configure.ac will be changed to set the standard to C11. --- diff --git a/src/application.h b/src/application.h index 4c56c43..a717e7e 100644 --- a/src/application.h +++ b/src/application.h @@ -19,6 +19,8 @@ * along with Marquee. If not, see . */ +typedef struct MqApplication MqApplication; + #ifndef MQ_APPLICATION_H #define MQ_APPLICATION_H @@ -26,9 +28,9 @@ #include "window.h" -typedef struct { +struct MqApplication { guint window_count; -} MqApplication; +}; MqApplication * mq_application_new(gchar *profile, gboolean private); diff --git a/src/window.h b/src/window.h index 8651355..6a7dab6 100644 --- a/src/window.h +++ b/src/window.h @@ -19,6 +19,8 @@ * along with Marquee. If not, see . */ +typedef struct MqWindow MqWindow; + #ifndef MQ_WINDOW_H #define MQ_WINDOW_H @@ -26,10 +28,10 @@ #include "application.h" -typedef struct { +struct MqWindow { GtkWidget *window; GtkWidget *notebook; -} MqWindow; +}; MqWindow * mq_window_new(MqApplication *application, gchar **uris); -- cgit v0.9.1