From 36feca1700d044452991cfb506fb803ac3c32e60 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 21 Dec 2014 17:32:20 +0000 Subject: [PATCH] Make struct ls_data local to aft.c. 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 | 18 ------------------ aft.c | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/afs.h b/afs.h index 2ad28b63..88b891c8 100644 --- 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 727292c7..a73537c7 100644 --- 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 */ -- 2.30.2