core/tags: Move tags_deinit() out of the tags namespace

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2015-11-12 10:29:36 -05:00
parent eb349c60e9
commit 800aeda633
3 changed files with 5 additions and 12 deletions

View File

@ -19,7 +19,7 @@ void tags_init()
track_db_init();
}
void tags :: deinit()
void tags_deinit()
{
track_db_deinit();
library_db_deinit();

View File

@ -4,18 +4,11 @@
#ifndef OCARINA_CORE_TAGS_TAGS_H
#define OCARINA_CORE_TAGS_TAGS_H
/**
* Namespace for creating and accessing tags.
*/
namespace tags
{
void deinit();
}
/* Called to initialize and read all databases from disk. */
void tags_init();
/* Called to clean up all databases. */
void tags_deinit();
#endif /* OCARINA_CORE_TAGS_TAGS_H */

View File

@ -216,7 +216,7 @@ static void test_track_db()
test_equal(track_db_get()->db_size, 0);
db_deinit(&track_db);
tags :: deinit();
tags_deinit();
filter_deinit();
}