ocarina/include/core/tags/genre.h

39 lines
798 B
C
Raw Normal View History

/**
* Copyright 2014 (c) Anna Schumaker.
*/
#ifndef OCARINA_CORE_TAGS_GENRE_H
#define OCARINA_CORE_TAGS_GENRE_H
#include <core/tags/generic.h>
/**
* The Genre tag is used to store the name of genres added
* to the tag database.
*/
struct genre : public GenericTag {
public:
genre(); /**< Genre tag constructor. */
/**
* Genre tag constructor.
*
* @param name Genre name.
*/
genre(const std::string &);
};
/* Called to initialize the genre database. */
void genre_db_init();
/* Called to clean up the genre database. */
void genre_db_deinit();
/* Called to find a genre tag by name. */
struct genre *genre_find(const std::string &);
/* Called to get a genre tag with a specific index. */
struct genre *genre_get(const unsigned int);
#endif /* OCARINA_CORE_TAGS_GENRE_H */