The code was a bit messy and didn't make use of namespaces very well. By converting to a set of functions (instead of a class) I can use each function as a function pointer if I want to. I am also able to remove libsaria/library.cpp since this was just a set of wrapper functions to the old static class functions.
25 lines
354 B
C++
25 lines
354 B
C++
#ifndef LIBSARIA_LIBRARY_H
|
|
#define LIBSARIA_LIBRARY_H
|
|
|
|
#include <libsaria/track.h>
|
|
|
|
#include <list>
|
|
#include <string>
|
|
using namespace std;
|
|
|
|
namespace libsaria
|
|
{
|
|
namespace library
|
|
{
|
|
void load();
|
|
void save();
|
|
void refresh();
|
|
|
|
void add_path(string);
|
|
void play_id(ino_t);
|
|
void for_each(void (*)(Track &));
|
|
}
|
|
}
|
|
|
|
#endif /* LIBSARIA_LIBRARY_H */
|