diff options
author | Max Kellermann <max@duempel.org> | 2008-09-16 19:11:39 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-16 19:11:39 +0200 |
commit | 9653c35fe54e6c7b4a7764254d6a5283eb859039 (patch) | |
tree | d4bcf129f022b21c01641b0169a7ff4f37484f41 | |
parent | 1f2d9cc479945e1c05021b6547a2665c87e2cafe (diff) | |
download | mpd-9653c35fe54e6c7b4a7764254d6a5283eb859039.tar.gz mpd-9653c35fe54e6c7b4a7764254d6a5283eb859039.tar.xz mpd-9653c35fe54e6c7b4a7764254d6a5283eb859039.zip |
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.
-rw-r--r-- | src/mpdclient.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mpdclient.h b/src/mpdclient.h index 6da4d0f3b..02ff92581 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; |