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>
26 lines
380 B
C++
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 */
|