library: Add doxygen comments.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2014-09-13 10:38:54 -04:00
parent b68198028e
commit d0fd103504
2 changed files with 46 additions and 2 deletions

View File

@ -1,4 +1,5 @@
/*
/**
* @file
* Copyright 2013 (c) Anna Schumaker.
*/
#include <core/idle.h>

View File

@ -1,4 +1,5 @@
/*
/**
* @file
* Copyright 2013 (c) Anna Schumaker.
*/
#ifndef OCARINA_CORE_LIBRARY_H
@ -8,17 +9,59 @@
#include <core/tags.h>
#include <string>
/**
* Namespace for library access.
*/
namespace library
{
/**
* Initialize the library queue with all the tracks in the tagdb.
*/
void init();
/**
* Add a new directory to the library.
*
* @param dir The directory that should be scanned.
* @return The newly created library object.
*/
Library *add(const std::string &);
/**
* Remove a library from the database.
*
* @param library The library path that should be removed.
*/
void remove(Library *);
/**
* Update a specific library path.
*
* @param library The library path that should be updated.
*/
void update(Library *);
/**
* Rescan and update all library paths.
*/
void update_all();
/**
* Use to enable or disable a library path.
*
* @param library The library to be enabled or disabled.
* @param enabled Set to true if the library should be enabled,
* and false to disable it.
*/
void set_enabled(Library *, bool);
/**
* Use to access the library queue.
*
* @return The queue of tracks currently in the library.
*/
Queue *get_queue();
};