summaryrefslogtreecommitdiff
path: root/src/libaudtag/tag_module.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libaudtag/tag_module.h')
-rw-r--r--src/libaudtag/tag_module.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/libaudtag/tag_module.h b/src/libaudtag/tag_module.h
index b9de501..a08effb 100644
--- a/src/libaudtag/tag_module.h
+++ b/src/libaudtag/tag_module.h
@@ -20,21 +20,23 @@
#ifndef TAG_MODULE_H
#define TAG_MODULE_H
-#include "libaudcore/tuple.h"
-#include "libaudcore/vfs.h"
+#include "audtag.h"
namespace audtag {
-struct TagModule {
- const char *m_name;
+struct TagModule
+{
+ const char * m_name;
TagType m_type; /* set to None if the module cannot create new tags */
virtual bool can_handle_file (VFSFile & file);
- virtual bool read_tag (VFSFile & file, Tuple * tuple, Index<char> * image);
+ virtual bool read_tag (VFSFile & file, Tuple & tuple, Index<char> * image);
virtual bool write_tag (VFSFile & file, const Tuple & tuple);
protected:
- TagModule(const char *name, TagType type) : m_name(name), m_type(type) { };
+ constexpr TagModule (const char * name, TagType type) :
+ m_name (name),
+ m_type (type) {}
};
TagModule * find_tag_module (VFSFile & handle, TagType new_type);