]> git.tue.mpg.de Git - paraslash.git/commitdiff
playlist.c: Rename playlist_info -> playlist_instance.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 21 Mar 2022 18:24:00 +0000 (19:24 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 17 Oct 2022 18:36:21 +0000 (20:36 +0200)
The new name is more descriptive and matches the its mood counterpart,
mood_instance.

playlist.c

index 8f5c3d7d1089a7cc48352a70d6f1aaf6e8ee2aa0..5150d380f1de1b35e8e9bbb5b01fdf9785882ea8 100644 (file)
 /** \file playlist.c Functions for loading and saving playlists. */
 
 /** Structure used for adding entries to a playlist. */
-struct playlist_info {
+struct playlist_instance {
        /** The name of the playlist. */
        char *name;
        /** The number of entries currently in the playlist. */
        unsigned length;
 };
-static struct playlist_info current_playlist;
+static struct playlist_instance current_playlist;
 
 /**
  * Re-insert an audio file into the tree of admissible files.
@@ -38,7 +38,7 @@ static int playlist_update_audio_file(const struct osl_row *aft_row)
 
 static int add_playlist_entry(char *path, void *data)
 {
-       struct playlist_info *playlist = data;
+       struct playlist_instance *playlist = data;
        struct osl_row *aft_row;
        int ret = aft_get_row_of_path(path, &aft_row);
 
@@ -134,7 +134,7 @@ void playlist_close(void)
 int playlist_open(const char *name, char **msg)
 {
        int ret;
-       struct playlist_info *playlist = &current_playlist;
+       struct playlist_instance *playlist = &current_playlist;
        struct osl_object playlist_def;
 
        ret = pl_get_def_by_name(name, &playlist_def);