ls: removed hasMusicSuffix() and get_archive_by_suffix()
Determine the suffix manually, and use decoder_plugin_from_suffix() and archive_plugin_from_suffix() instead. This way, song_file_update_inarchive() can be optimized: it does not have to translate its path.
This commit is contained in:
@@ -34,12 +34,6 @@ bool uri_has_scheme(const char *uri);
|
||||
|
||||
bool isRemoteUrl(const char *url);
|
||||
|
||||
const struct decoder_plugin *
|
||||
hasMusicSuffix(const char *utf8file, unsigned int next);
|
||||
|
||||
const struct archive_plugin *
|
||||
get_archive_by_suffix(const char *utf8file);
|
||||
|
||||
void printRemoteUrlHandlers(struct client *client);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user