2014-11-09 10:18:09 -05:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
2015-10-23 08:19:26 -04:00
|
|
|
struct genre : public GenericTag {
|
2014-11-09 10:18:09 -05:00
|
|
|
public:
|
2015-10-23 08:19:26 -04:00
|
|
|
genre(); /**< Genre tag constructor. */
|
2014-11-09 10:18:09 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Genre tag constructor.
|
|
|
|
*
|
|
|
|
* @param name Genre name.
|
|
|
|
*/
|
2015-10-23 08:19:26 -04:00
|
|
|
genre(const std::string &);
|
2014-11-09 10:18:09 -05:00
|
|
|
};
|
|
|
|
|
2014-11-16 15:15:32 -05:00
|
|
|
|
2015-09-28 08:18:39 -04:00
|
|
|
/* Called to initialize the genre database. */
|
|
|
|
void genre_db_init();
|
2014-11-16 15:15:32 -05:00
|
|
|
|
2015-09-28 08:18:39 -04:00
|
|
|
/* Called to clean up the genre database. */
|
|
|
|
void genre_db_deinit();
|
2015-09-28 08:25:15 -04:00
|
|
|
|
2015-09-28 08:22:51 -04:00
|
|
|
/* Called to find a genre tag by name. */
|
|
|
|
struct genre *genre_find(const std::string &);
|
|
|
|
|
2015-09-28 08:25:15 -04:00
|
|
|
/* Called to get a genre tag with a specific index. */
|
|
|
|
struct genre *genre_get(const unsigned int);
|
|
|
|
|
2014-11-09 10:18:09 -05:00
|
|
|
#endif /* OCARINA_CORE_TAGS_GENRE_H */
|