diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-22 15:51:51 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-22 15:51:51 (EDT) |
commit | effc206524295152c6bfe1f111ad39f75c549253 (patch) | |
tree | c8cdfdb38b096a11ce88132b5ba58a3a58151170 /src | |
parent | f87eade0e93389d742382b3e75a3a4e1c638b5dd (diff) | |
download | marquee-effc206524295152c6bfe1f111ad39f75c549253.zip marquee-effc206524295152c6bfe1f111ad39f75c549253.tar.gz marquee-effc206524295152c6bfe1f111ad39f75c549253.tar.bz2 |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/application.h | 6 | ||||
-rw-r--r-- | src/window.h | 6 |
2 files changed, 8 insertions, 4 deletions
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 <http://www.gnu.org/licenses/>. */ +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 <http://www.gnu.org/licenses/>. */ +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); |