diff options
author | Max Kellermann <max@duempel.org> | 2008-10-08 11:05:34 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-11 19:21:47 -0700 |
commit | e6f87010949c1d659b27c5db5707e23230d3eaf0 (patch) | |
tree | a68ef0a95beae2e2ffaaf6b2925112801b3f1c04 /src/song.h | |
parent | d24e17ebdd5eeb16c87b897a9ecb52a5704a52b3 (diff) | |
download | mpd-e6f87010949c1d659b27c5db5707e23230d3eaf0.tar.gz mpd-e6f87010949c1d659b27c5db5707e23230d3eaf0.tar.xz mpd-e6f87010949c1d659b27c5db5707e23230d3eaf0.zip |
song: removed CamelCase
CamelCase is ugly... rename all functions.
Diffstat (limited to 'src/song.h')
-rw-r--r-- | src/song.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/song.h b/src/song.h index 0d2f976ac..338bcf6c1 100644 --- a/src/song.h +++ b/src/song.h @@ -33,12 +33,12 @@ struct mpd_song { struct mpd_tag *tag; - struct directory *parentDir; + struct directory *parent; time_t mtime; char url[sizeof(size_t)]; }; -void freeJustSong(struct mpd_song *); +void song_free(struct mpd_song *); /** allocate a new song with a remote URL */ struct mpd_song * song_remote_new(const char *url); @@ -60,7 +60,7 @@ int song_print_info_x(struct mpd_song * song, void *data); void readSongInfoIntoList(FILE * fp, struct directory *parent); -int updateSongInfo(struct mpd_song * song); +int song_file_update(struct mpd_song * song); ssize_t song_print_url(struct mpd_song * song, int fd); @@ -68,16 +68,16 @@ ssize_t song_print_url(struct mpd_song * song, int fd); int song_print_url_x(struct mpd_song * song, void *data); /* - * get_song_url - Returns a path of a song in UTF8-encoded form + * song_get_url - Returns a path of a song in UTF8-encoded form * path_max_tmp is the argument that the URL is written to, this * buffer is assumed to be MPD_PATH_MAX or greater (including * terminating '\0'). */ -char *get_song_url(char *path_max_tmp, struct mpd_song * song); +char *song_get_url(struct mpd_song * song, char *path_max_tmp); static inline int song_is_file(const struct mpd_song *song) { - return !!song->parentDir; + return !!song->parent; } #endif |