Make struct ls_data local to aft.c.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 21 Dec 2014 17:32:20 +0000 (17:32 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 8 Mar 2015 18:55:38 +0000 (19:55 +0100)
This structure is only used in aft.c, so there is no need to make it
visible to other files which include afs.h.

afs.h
aft.c

diff --git a/afs.h b/afs.h
index 2ad28b63871abbc03d7ab8b1227b05ee2585cc1c..88b891c829d835efcef315ff8e5aa8fd1b725353 100644 (file)
--- a/afs.h
+++ b/afs.h
@@ -104,24 +104,6 @@ enum play_mode {
        PLAY_MODE_PLAYLIST,
 };
 
-/**
- * Data about one audio file.
- *
- * Needed to produce ls and stat output.
- */
-struct ls_data {
-       /** Usual audio format handler information. */
-       struct afh_info afhi;
-       /** Audio file selector information. */
-       struct afs_info afsi;
-       /** The full path of the audio file. */
-       char *path;
-       /** The score value (if -a was given). */
-       long score;
-       /** The hash value of audio file data. */
-       unsigned char *hash;
-};
-
 /**
  * Codes used for communication between the server and the afs process.
  *
diff --git a/aft.c b/aft.c
index 727292c7001cf5b175eb8ef43b063540fc25d4d7..a73537c74446b3cdb49e405f7918701d837a8e8f 100644 (file)
--- a/aft.c
+++ b/aft.c
@@ -72,6 +72,20 @@ enum ls_listing_mode {
        LS_MODE_PARSER,
 };
 
+/* Data about one audio file. Needed for ls and stat output. */
+struct ls_data {
+       /* Usual audio format handler information. */
+       struct afh_info afhi;
+       /* Audio file selector information. */
+       struct afs_info afsi;
+       /* The full path of the audio file. */
+       char *path;
+       /* The score value (if -a was given). */
+       long score;
+       /* The hash value of the audio file data. */
+       unsigned char *hash;
+};
+
 /** The flags accepted by the ls command. */
 enum ls_flags {
        /** -p */