From 9653c35fe54e6c7b4a7764254d6a5283eb859039 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 16 Sep 2008 19:11:39 +0200 Subject: [PATCH] mpdclient: add struct names, for forward declarations To relax the include dependencies, give all structs real names, in addition to the typedef names. This way, other headers can forward-declare them, and do not need to include mpdclient.h. In the future, the typedefs will be removed. --- src/mpdclient.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mpdclient.h b/src/mpdclient.h index 6da4d0f..02ff925 100644 --- a/src/mpdclient.h +++ b/src/mpdclient.h @@ -20,7 +20,7 @@ /* Playlist */ /****************************************************************************/ -typedef struct { +typedef struct mpdclient_playlist { /* playlist id */ long long id; /* true if the list is updated */ @@ -30,12 +30,12 @@ typedef struct { } mpdclient_playlist_t; -typedef struct { +typedef struct filelist_entry { guint flags; mpd_InfoEntity *entity; } filelist_entry_t; -typedef struct { +typedef struct mpdclient_filelist { /* path */ gchar *path; /* list length */ @@ -47,7 +47,7 @@ typedef struct { } mpdclient_filelist_t; -typedef struct { +typedef struct mpdclient { /* playlist */ mpdclient_playlist_t playlist; -- 2.30.2