ocarina/include/libsaria/path.h
Bryan Schumaker 280baa7572 libsaria: Allow different UIs to use a different pipe
The UI now passes in a string to use as the filename.  In addition, I
store the filename and remove it when the application is closed.  If the
pipe already exists, then I return the path without creating a new one.

Pipes will only be removed by the application that creates them.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-02-08 08:11:13 -05:00

26 lines
380 B
C++

#ifndef LIBSARIA_PATH_H
#define LIBSARIA_PATH_H
#include <libsaria/track.h>
#include <string>
#include <list>
using namespace std;
#include <sys/types.h>
struct file
{
string name;
sid_t d_sid;
};
string get_saria_dir();
void make_saria_dir();
bool exists(string);
sid_t lookup_songid(string &);
string open_pipe(string);
void close_pipes();
#endif /* LIBSARIA_PATH_H */