From: Max Kellermann Date: Tue, 16 Sep 2008 17:11:39 +0000 (+0200) Subject: mpdclient: add struct names, for forward declarations X-Git-Tag: v0.12_alpha1~296 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9653c35fe54e6c7b4a7764254d6a5283eb859039;p=ncmpc.git 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. --- 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;