2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
// Copyright The Music Player Daemon Project
|
2016-02-22 18:00:49 +01:00
|
|
|
|
|
|
|
#ifndef MPD_TAG_GENERIC_HXX
|
|
|
|
#define MPD_TAG_GENERIC_HXX
|
|
|
|
|
2018-07-05 19:07:05 +02:00
|
|
|
class TagHandler;
|
2016-02-23 10:07:47 +01:00
|
|
|
class InputStream;
|
2016-02-22 18:00:49 +01:00
|
|
|
class Path;
|
|
|
|
|
2016-02-23 10:07:47 +01:00
|
|
|
/**
|
2016-02-24 00:01:51 +01:00
|
|
|
* Attempts to scan APE or ID3 tags from the specified stream. The
|
|
|
|
* stream does not need to be rewound.
|
2019-05-21 23:26:29 +02:00
|
|
|
*
|
|
|
|
* Throws on error.
|
2016-02-23 10:07:47 +01:00
|
|
|
*/
|
|
|
|
bool
|
2019-05-21 23:26:29 +02:00
|
|
|
ScanGenericTags(InputStream &is, TagHandler &handler);
|
2016-02-23 10:07:47 +01:00
|
|
|
|
2016-02-22 18:00:49 +01:00
|
|
|
/**
|
|
|
|
* Attempts to scan APE or ID3 tags from the specified file.
|
2019-05-21 23:26:29 +02:00
|
|
|
*
|
|
|
|
* Throws on error.
|
2016-02-22 18:00:49 +01:00
|
|
|
*/
|
|
|
|
bool
|
2019-05-21 23:26:29 +02:00
|
|
|
ScanGenericTags(Path path, TagHandler &handler);
|
2016-02-22 18:00:49 +01:00
|
|
|
|
|
|
|
#endif
|