Remove old include files

I'm going to replace them with new files for Ocarina 6.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2013-07-05 09:20:57 -04:00 committed by Anna Schumaker
parent 15df2ed075
commit 101648dc0a
17 changed files with 0 additions and 528 deletions

View File

@ -1,35 +0,0 @@
#!/usr/bin/python
import os, shutil
MAJOR = 5
MINOR = 12
BUG = 0
EXTRA = ""
DEBUG = True
# Find version
version = "%s.%s" % (MAJOR, MINOR)
if BUG != 0:
version = version + (".%s" % BUG)
if EXTRA != "":
version = version + ("-%s" % EXTRA)
if DEBUG == True:
version = version + "-debug"
# Install prefix
PREFIX = "/usr"
env = None
include = []
libsaria = []
def get_cpp_files():
dirs = [x[0] for x in os.walk(".")]
return [env.Glob(dir + "/*.cpp") for dir in dirs]
def copy(target, source, env):
shutil.copy(str(source[0]), str(target[0]))
def symlink(target, source, env):
os.symlink(str(source[0]), str(target[0]))

View File

@ -1,14 +0,0 @@
#!/usr/bin/python
from config import *
f = open("version.h", "w")
for line in open("version.tmpl", "r"):
line = line.replace("__MAJOR__", str(MAJOR))
line = line.replace("__MINOR__", str(MINOR))
line = line.replace("__BUG__", str(BUG))
line = line.replace("__EXTRA__", str(EXTRA))
line = line.replace("__VERSION__", str(version))
f.write(line)
f.close()
env.Append(CPPPATH = os.path.join(os.getcwd()))

View File

@ -1,36 +0,0 @@
#ifndef LIBSARIA_AUDIO_H
#define LIBSARIA_AUDIO_H
extern "C" {
#include <gst/gst.h>
}
#include <list>
#include <string>
using namespace std;
namespace libsaria
{
namespace audio
{
void init(int, char**);
void quit();
/* Playback control functions */
void load(string, bool);
void play();
void pause();
void toggle_play();
GstState get_state();
void stop();
/* Position related functions */
void seek_to(double);
gint64 duration();
gint64 position();
string posstr();
bool played();
};
};
#endif /* LIBSARIA_AUDIO_H */

View File

@ -1,17 +0,0 @@
#ifndef LIBSARIA_BAN_H
#define LIBSARIA_BAN_H
#include <track.h>
namespace libsaria
{
namespace ban
{
Playlist *get_banned_plist();
void track_banned(Track *);
void track_unbanned(Track *);
}
}
#endif /* LIBSARIA_BAN_H */

View File

@ -1,44 +0,0 @@
#ifndef LIBSARIA_PLAYLIST_STACK_H
#define LIBSARIA_PLAYLIST_STACK_H
#include <playlist.h>
#define MAX_PLAYLISTS 10
enum AutoPauseType {
PS_NONE,
PS_AFTER_N,
};
namespace libsaria
{
namespace deck
{
void garbage_collect();
void next();
void prev();
void init();
Playlist *new_playlist(list<Track *> &, unsigned int, bool);
void delete_playlist(Playlist *);
unsigned int move_playlist(Playlist *, unsigned int);
unsigned int size();
Playlist *get_playlist(unsigned int);
unsigned int get_playlist_index(Playlist *);
Playlist *get_recent_plist();
void list_recent(Track *);
void track_removed(Track *);
void set_pause_type(AutoPauseType, unsigned int);
AutoPauseType get_pause_type();
unsigned short get_pause_count();
};
}; /* Namespace: libsaria */
#endif /* LIBSARIA_PLAYLIST_STACK_H */

View File

@ -1,19 +0,0 @@
#ifndef LIBSARIA_FORMAT_H
#define LIBSARIA_FORMAT_H
#include <set>
#include <string>
using namespace std;
namespace libsaria
{
set<string> *format_text(const string &);
void format_substrs(const string &, set<string> &);
string *lowercase(const string &);
string length_string(unsigned int);
void print_format_stats();
}
#endif /* LIBSARIA_FORMAT_H */

View File

@ -1,35 +0,0 @@
#ifndef LIBSARIA_FS_H
#define LIBSARIA_FS_H
#include <list>
#include <string>
using namespace std;
namespace libsaria
{
bool exists(const string &);
void list_dir(string &, list<string> &);
namespace app
{
void init();
void list_dir(const string &, list<string> &);
unsigned int read_numdir(const string &, void (*)(ifstream &));
void mkdir(const string &);
void rm(const string &);
void save(string, void (*)(ofstream &, void *), void *);
void read(string, void (*)(ifstream &));
void read_now(string, void (*)(ifstream &));
void open_pipe();
void close_pipe();
string pipe_file();
} /* Namespace: app */
} /* Namespace: libsaria */
#endif /* LIBSARIA_FS_H */

View File

@ -1,20 +0,0 @@
#ifndef LIBSARIA_IDLE_H
#define LIBSARIA_IDLE_H
namespace libsaria
{
namespace idle
{
int size();
int run_task();
void schedule(void (*)());
void schedule(void (*)(void *), void *);
void cancel_all(void *);
float progress();
};
};
#endif /* LIBSARIA_IDLE_H */

View File

@ -1,43 +0,0 @@
#ifndef LIBSARIA_LIBRARY_H
#define LIBSARIA_LIBRARY_H
#include <fs.h>
#include <track.h>
#include <playlist.h>
#include <string>
#include <vector>
using namespace std;
namespace libsaria
{
namespace library
{
struct Path {
bool visible;
unsigned int id;
string path;
vector<Track *> tracks;
};
void init();
void quit();
void add_path(string);
void delete_path(Path *);
void update_path(Path *);
void save_path(Path *);
void update_all();
void hide_path(Path *);
void show_path(Path *);
Track *lookup(unsigned int, unsigned int);
void set_random(bool);
Playlist *get_playlist();
}
}
#endif /* LIBSARIA_LIBRARY_H */

View File

@ -1,22 +0,0 @@
#ifndef LIBSARIA_H
#define LIBSARIA_H
#include <notify.h>
#include <track.h>
namespace libsaria
{
struct initdata {
int argc;
char **argv;
void (*on_notify)(notify_t, void *);
};
void init(struct initdata *);
void quit();
void play_outside_song(string &);
void run_cmd(string &);
}
#endif /* LIBSARIA_H */

View File

@ -1,31 +0,0 @@
// Copyright (c) 2012 Bryan Schumaker.
#ifndef LIBSARIA_NOTIFY_H
#define LIBSARIA_NOTIFY_H
enum notify_t {
IDLE_ADD, // NULL
TRACK_CHANGED, // libsaria::Track *
PATH_ADDED, // libsaria::library::Path *
PATH_DELETED, // libsaria::library::Path *
PATH_UPDATED, // libsaria::library::Path *
PLAYING, // NULL
PAUSED, // NULL
PAUSE_TYPE, // AutoPauseType *
PAUSE_COUNT, // unsigned int *
PLAYLIST_NEW, // libsaria::Playlist *
PLAYLIST_DELETE, // libsaria::Playlist *
PLAYLIST_RENUMBER, // libsaria::Playlist *
PLAYLIST_CHANGED, // libsaria::Playlist *
PLAYLIST_ADD, // libsaria::PlaylistNotification *
PLAYLIST_RM, // libsaria::PlaylistNotification *
PLAYLIST_UPDATE, // libsaria::PlaylistNotification *
PLAYLIST_GOTO, // libsaria::PlaylistNotification *
NOTIFY_SIZE,
};
namespace libsaria
{
void notify(notify_t, void *);
}
#endif /* LIBSARIA_NOTIFY_H */

View File

@ -1,83 +0,0 @@
// Copyright (c) 2012 Bryan Schumaker.
#ifndef LIBSARIA_PLAYLIST_H
#define LIBSARIA_PLAYLIST_H
#include <notify.h>
#include <fs.h>
#include <list>
#include <string>
#include <vector>
using namespace std;
enum PlaylistFlags {
PL_NONE = (0),
PL_NO_DRAIN = (1 << 0),
PL_STATIC = (1 << 1),
PL_DISABLED = (1 << 2),
PL_RANDOM = (1 << 3),
PL_SORTED = (1 << 4),
PL_UNIQUE = (1 << 5),
};
namespace libsaria
{
/* Forward declaration of Track class */
class Track;
class Playlist {
private:
int number;
unsigned int flags;
unsigned int cur;
vector<Track *> plist;
void schedule_save();
void rm_file();
void notify_ui(notify_t, Track *, unsigned int);
void notify_update_all();
unsigned int find_index(Track *);
void add_track(Track *, unsigned int);
void insert_sorted(Track *);
void remove_index(unsigned int);
void do_sort();
public:
Playlist(unsigned int);
virtual ~Playlist();
void push_front(Track *);
void push_back(Track *);
void push_back(list<Track *> &);
Track *next();
void set_flag(PlaylistFlags, bool);
bool check_flag(PlaylistFlags);
void save(ofstream &);
void load(ifstream &);
void prepare_for_removal();
void reset_iterator();
void renumber(int);
unsigned int get_number();
unsigned int get_size();
unsigned int get_length();
void remove_indices(list<unsigned int> &);
void remove_track(Track *);
void track_updated(Track *);
};
struct PlaylistNotification {
Playlist *plist;
Track *track;
unsigned int index;
};
}; /* Namespace: libsaria */
#endif /* LIBSARIA_PLAYLIST_H */

View File

@ -1,19 +0,0 @@
#ifndef LIBSARIA_PREFS_H
#define LIBSARIA_PREFS_H
#include <string>
using namespace std;
namespace libsaria
{
namespace prefs
{
void init();
int get(const string &);
void set(const string &, int);
int init(const string &, int);
}
}
#endif /* LIBSARIA_PREFS_H */

View File

@ -1,15 +0,0 @@
#ifndef LIBSARIA_PRINT
#define LIBSARIA_PRINT
#include <string>
using namespace std;
#ifdef DEBUG
void print(string, ...);
void println(string, ...);
#else /* DEBUG */
static inline void print(string fmt, ...) {}
static inline void println(string fmt, ...) {}
#endif /* DEBUG */
#endif /* LIBSARIA_PRINT */

View File

@ -1,74 +0,0 @@
#ifndef LIBSARIA_TRACK_H
#define LIBSARIA_TRACK_H
#include <playlist.h>
#include <set>
#include <list>
#include <string>
using namespace std;
namespace libsaria
{
namespace library
{
class Path;
}
class Track
{
private:
list<libsaria::Playlist *> playlists;
set<string> substrs;
string *artist_lc;
string *album_lc;
void read_tags();
void mark_played();
void find_substrs();
public:
library::Path *path;
string filepath;
string title;
string artist;
string album;
string comment;
string genre;
string lenstr;
unsigned int id;
unsigned int year;
unsigned int track;
unsigned int count;
unsigned int last_day;
unsigned int last_month;
unsigned int last_year;
int length;
int bitrate;
int sample;
int channels;
bool banned;
Track();
Track(string);
Track(string, library::Path *);
Track(ifstream &, library::Path *, unsigned int);
~Track();
void save(ofstream *);
void load_unlisted(bool);
void load(bool);
void add_playlist(libsaria::Playlist *);
void rm_playlist(libsaria::Playlist *);
bool is_visible(set<string> *);
string get_last_played();
void set_banned(bool);
bool operator<(Track &);
};
Track *current_track();
} /* Namespace: libsaria */
#endif /* LIBSARIA_TRACK_H */

View File

@ -1,11 +0,0 @@
#ifndef OCARINA_VERSION_H
#define OCARINA_VERSION_H
#include <string>
using namespace std;
static inline string vers_str()
{
return "__VERSION__";
}
#endif /* OCARINA_VERSION_H */

View File

@ -1,10 +0,0 @@
#ifndef LIBSARIA_VOLUME_H
#define LIBSARIA_VOLUME_H
namespace libsaria
{
void set_volume(double);
double get_volume();
}
#endif /* LIBSARIA_VOLUME_H */