Header file roundup
Create include/lib/ and include/gui/. Move header files into the appropriate directory. Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
851be80a7d
commit
87af56ba85
|
@ -1,10 +1,10 @@
|
|||
/*
|
||||
* Copyright 2014 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <deck.h>
|
||||
#include <library.h>
|
||||
#include <playlist.h>
|
||||
#include <tabs.h>
|
||||
#include <lib/deck.h>
|
||||
#include <lib/library.h>
|
||||
#include <lib/playlist.h>
|
||||
#include <gui/tabs.h>
|
||||
|
||||
|
||||
class CollectionTab : public Tab {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*
|
||||
* Copyright 2014 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <callback.h>
|
||||
#include <library.h>
|
||||
#include <ocarina.h>
|
||||
#include <lib/callback.h>
|
||||
#include <lib/library.h>
|
||||
#include <gui/ocarina.h>
|
||||
|
||||
static void on_library_add(unsigned int id, Library *library);
|
||||
|
||||
|
|
18
gui/gui.cpp
18
gui/gui.cpp
|
@ -1,16 +1,16 @@
|
|||
/*
|
||||
* Copyright 2014 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <audio.h>
|
||||
#include <callback.h>
|
||||
#include <deck.h>
|
||||
#include <driver.h>
|
||||
#include <idle.h>
|
||||
#include <playlist.h>
|
||||
#include <lib/audio.h>
|
||||
#include <lib/callback.h>
|
||||
#include <lib/deck.h>
|
||||
#include <lib/driver.h>
|
||||
#include <lib/idle.h>
|
||||
#include <lib/playlist.h>
|
||||
#include <lib/print.h>
|
||||
|
||||
#include <ocarina.h>
|
||||
#include <print.h>
|
||||
#include <tabs.h>
|
||||
#include <gui/ocarina.h>
|
||||
#include <gui/tabs.h>
|
||||
|
||||
static bool audio_playing = false;
|
||||
static Glib::RefPtr<Gtk::Builder> builder;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Copyright 2014 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <deck.h>
|
||||
#include <tabs.h>
|
||||
#include <lib/deck.h>
|
||||
#include <gui/tabs.h>
|
||||
|
||||
|
||||
class HistoryTab : public Tab {
|
||||
|
|
12
gui/main.cpp
12
gui/main.cpp
|
@ -1,12 +1,12 @@
|
|||
/*
|
||||
* Copyright 2014 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <audio.h>
|
||||
#include <deck.h>
|
||||
#include <library.h>
|
||||
#include <ocarina.h>
|
||||
#include <playlist.h>
|
||||
#include <tabs.h>
|
||||
#include <lib/audio.h>
|
||||
#include <lib/deck.h>
|
||||
#include <lib/library.h>
|
||||
#include <lib/playlist.h>
|
||||
#include <gui/ocarina.h>
|
||||
#include <gui/tabs.h>
|
||||
|
||||
const std::string share_file(const std::string &file)
|
||||
{
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
* See the example at:
|
||||
* https://git.gnome.org/browse/gtkmm-documentation/tree/examples/others/treemodelcustom
|
||||
*/
|
||||
#include <audio.h>
|
||||
#include <ocarina.h>
|
||||
#include <lib/audio.h>
|
||||
#include <gui/ocarina.h>
|
||||
#include <stdlib.h>
|
||||
#include <sstream>
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Copyright 2014 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <playlist.h>
|
||||
#include <tabs.h>
|
||||
#include <lib/playlist.h>
|
||||
#include <gui/tabs.h>
|
||||
|
||||
|
||||
static const std::string current_playlist();
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*
|
||||
* Copyright 2014 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <callback.h>
|
||||
#include <deck.h>
|
||||
#include <tabs.h>
|
||||
#include <lib/callback.h>
|
||||
#include <lib/deck.h>
|
||||
#include <gui/tabs.h>
|
||||
|
||||
#include <map>
|
||||
|
||||
|
|
10
gui/tabs.cpp
10
gui/tabs.cpp
|
@ -1,11 +1,11 @@
|
|||
/*
|
||||
* Copyright 2014 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <callback.h>
|
||||
#include <deck.h>
|
||||
#include <filter.h>
|
||||
#include <playlist.h>
|
||||
#include <tabs.h>
|
||||
#include <lib/callback.h>
|
||||
#include <lib/deck.h>
|
||||
#include <lib/filter.h>
|
||||
#include <lib/playlist.h>
|
||||
#include <gui/tabs.h>
|
||||
|
||||
#include <map>
|
||||
#include <sstream>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#ifndef OCARINA_H
|
||||
#define OCARINA_H
|
||||
|
||||
#include <queue.h>
|
||||
#include <lib/queue.h>
|
||||
#include <gtkmm.h>
|
||||
|
||||
|
|
@ -4,8 +4,8 @@
|
|||
#ifndef OCARINA_TABS_H
|
||||
#define OCARINA_TABS_H
|
||||
|
||||
#include <ocarina.h>
|
||||
#include <queue.h>
|
||||
#include <gui/ocarina.h>
|
||||
#include <lib/queue.h>
|
||||
#include <set>
|
||||
|
||||
class Tab {
|
|
@ -4,7 +4,7 @@
|
|||
#ifndef OCARINA_AUDIO_H
|
||||
#define OCARINA_AUDIO_H
|
||||
|
||||
#include <tags.h>
|
||||
#include <lib/tags.h>
|
||||
#include <string>
|
||||
|
||||
namespace audio
|
|
@ -4,8 +4,8 @@
|
|||
#ifndef OCARINA_CALLBACK_H
|
||||
#define OCARINA_CALLBACK_H
|
||||
|
||||
#include <library.h>
|
||||
#include <queue.h>
|
||||
#include <lib/library.h>
|
||||
#include <lib/queue.h>
|
||||
|
||||
|
||||
struct Callbacks {
|
|
@ -4,7 +4,7 @@
|
|||
#ifndef OCARINA_DATABASE_H
|
||||
#define OCARINA_DATABASE_H
|
||||
|
||||
#include <file.h>
|
||||
#include <lib/file.h>
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
|
@ -4,7 +4,7 @@
|
|||
#ifndef OCARINA_DECK_H
|
||||
#define OCARINA_DECK_H
|
||||
|
||||
#include <queue.h>
|
||||
#include <lib/queue.h>
|
||||
#include <list>
|
||||
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
#ifndef OCARINA_INDEX_H
|
||||
#define OCARINA_INDEX_H
|
||||
|
||||
#include <database.h>
|
||||
#include <lib/database.h>
|
||||
|
||||
#include <set>
|
||||
#include <string>
|
|
@ -4,8 +4,8 @@
|
|||
#ifndef OCARINA_LIBRARY_H
|
||||
#define OCARINA_LIBRARY_H
|
||||
|
||||
#include <queue.h>
|
||||
#include <tags.h>
|
||||
#include <lib/queue.h>
|
||||
#include <lib/tags.h>
|
||||
#include <string>
|
||||
|
||||
namespace library
|
|
@ -4,8 +4,8 @@
|
|||
#ifndef OCARINA_PLAYLIST_H
|
||||
#define OCARINA_PLAYLIST_H
|
||||
|
||||
#include <index.h>
|
||||
#include <queue.h>
|
||||
#include <lib/index.h>
|
||||
#include <lib/queue.h>
|
||||
|
||||
#include <string>
|
||||
|
|
@ -4,8 +4,8 @@
|
|||
#ifndef OCARINA_QUEUE_H
|
||||
#define OCARINA_QUEUE_H
|
||||
|
||||
#include <file.h>
|
||||
#include <tags.h>
|
||||
#include <lib/file.h>
|
||||
#include <lib/tags.h>
|
||||
|
||||
#include <vector>
|
||||
#include <list>
|
|
@ -4,7 +4,7 @@
|
|||
#ifndef OCARINA_TAGS_H
|
||||
#define OCARINA_TAGS_H
|
||||
|
||||
#include <database.h>
|
||||
#include <lib/database.h>
|
||||
|
||||
|
||||
enum sort_t {
|
|
@ -1,10 +1,10 @@
|
|||
/*
|
||||
* Copyright 2013 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <audio.h>
|
||||
#include <callback.h>
|
||||
#include <deck.h>
|
||||
#include <driver.h>
|
||||
#include <lib/audio.h>
|
||||
#include <lib/callback.h>
|
||||
#include <lib/deck.h>
|
||||
#include <lib/driver.h>
|
||||
|
||||
#include <sstream>
|
||||
#include <string.h>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright 2014 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <callback.h>
|
||||
#include <lib/callback.h>
|
||||
|
||||
|
||||
static void no_op() {}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright 2013 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <database.h>
|
||||
#include <lib/database.h>
|
||||
|
||||
|
||||
DatabaseEntry :: DatabaseEntry()
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/*
|
||||
* Copyright 2013 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <callback.h>
|
||||
#include <deck.h>
|
||||
#include <file.h>
|
||||
#include <library.h>
|
||||
#include <lib/callback.h>
|
||||
#include <lib/deck.h>
|
||||
#include <lib/file.h>
|
||||
#include <lib/library.h>
|
||||
|
||||
|
||||
class RecentQueue : public Queue
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright 2014 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <driver.h>
|
||||
#include <lib/driver.h>
|
||||
|
||||
|
||||
Driver :: Driver() {}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Copyright 2013 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <error.h>
|
||||
#include <file.h>
|
||||
#include <lib/error.h>
|
||||
#include <lib/file.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
* Copyright 2013 (c) Anna Schumaker.
|
||||
*/
|
||||
|
||||
#include <filter.h>
|
||||
#include <index.h>
|
||||
#include <lib/filter.h>
|
||||
#include <lib/index.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <list>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright 2013 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <idle.h>
|
||||
#include <lib/idle.h>
|
||||
|
||||
#include <queue>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright 2014 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <index.h>
|
||||
#include <lib/index.h>
|
||||
|
||||
|
||||
IndexEntry :: IndexEntry() {}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Copyright 2013 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <idle.h>
|
||||
#include <library.h>
|
||||
#include <lib/idle.h>
|
||||
#include <lib/library.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Copyright 2013 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <library.h>
|
||||
#include <playlist.h>
|
||||
#include <lib/library.h>
|
||||
#include <lib/playlist.h>
|
||||
|
||||
|
||||
class PlaylistQueue : public Queue {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*
|
||||
* Copyright 2013 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <callback.h>
|
||||
#include <queue.h>
|
||||
#include <random.h>
|
||||
#include <lib/callback.h>
|
||||
#include <lib/queue.h>
|
||||
#include <lib/random.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
*/
|
||||
#ifdef CONFIG_TEST
|
||||
|
||||
#include <random.h>
|
||||
#include <lib/random.h>
|
||||
|
||||
static unsigned int _random_value = 0;
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
* Copyright 2014 (c) Anna Schumaker.
|
||||
*/
|
||||
|
||||
#include <tags.h>
|
||||
#include <filter.h>
|
||||
#include <print.h>
|
||||
#include <lib/tags.h>
|
||||
#include <lib/filter.h>
|
||||
#include <lib/print.h>
|
||||
|
||||
#include <sstream>
|
||||
#include <taglib/tag.h>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*
|
||||
* Copyright 2013 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <audio.h>
|
||||
#include <driver.h>
|
||||
#include <library.h>
|
||||
#include <lib/audio.h>
|
||||
#include <lib/driver.h>
|
||||
#include <lib/library.h>
|
||||
#include "test.h"
|
||||
|
||||
Track *TRACK_NULL = NULL;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Test a Database
|
||||
*/
|
||||
|
||||
#include <database.h>
|
||||
#include <lib/database.h>
|
||||
#include "test.h"
|
||||
|
||||
#include <sstream>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/*
|
||||
* Copyright 2013 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <callback.h>
|
||||
#include <deck.h>
|
||||
#include <library.h>
|
||||
#include <lib/callback.h>
|
||||
#include <lib/deck.h>
|
||||
#include <lib/library.h>
|
||||
#include "test.h"
|
||||
|
||||
static Queue *Q_NULL = NULL;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright 2014 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <driver.h>
|
||||
#include <lib/driver.h>
|
||||
#include "test.h"
|
||||
|
||||
static TestDriver *DRIVER_NULL = NULL;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright 2014 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <file.h>
|
||||
#include <lib/file.h>
|
||||
#include "test.h"
|
||||
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Test the filtering code
|
||||
*/
|
||||
|
||||
#include <filter.h>
|
||||
#include <lib/filter.h>
|
||||
#include "test.h"
|
||||
|
||||
static void do_test_lowercase(const std::string &text, const std::string &lc)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Test the idle queue
|
||||
*/
|
||||
|
||||
#include <idle.h>
|
||||
#include <lib/idle.h>
|
||||
#include "test.h"
|
||||
|
||||
#include <sstream>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Test a Database
|
||||
*/
|
||||
|
||||
#include <index.h>
|
||||
#include <lib/index.h>
|
||||
#include "test.h"
|
||||
|
||||
#include <sstream>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Copyright 2013 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <idle.h>
|
||||
#include <library.h>
|
||||
#include <lib/idle.h>
|
||||
#include <lib/library.h>
|
||||
#include "test.h"
|
||||
|
||||
static Queue *Q_NULL = NULL;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Copyright 2013 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <library.h>
|
||||
#include <playlist.h>
|
||||
#include <lib/library.h>
|
||||
#include <lib/playlist.h>
|
||||
#include "test.h"
|
||||
|
||||
static IndexEntry *IDX_NULL = NULL;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/*
|
||||
* Copyright 2014 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <callback.h>
|
||||
#include <queue.h>
|
||||
#include <random.h>
|
||||
#include <tags.h>
|
||||
#include <lib/callback.h>
|
||||
#include <lib/queue.h>
|
||||
#include <lib/random.h>
|
||||
#include <lib/tags.h>
|
||||
#include "test.h"
|
||||
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* Copyright 2014 (c) Anna Schumaker.
|
||||
*/
|
||||
|
||||
#include <random.h>
|
||||
#include <lib/random.h>
|
||||
#include "test.h"
|
||||
|
||||
#include <sstream>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Test a DatabaseEntry
|
||||
*/
|
||||
|
||||
#include <tags.h>
|
||||
#include <lib/tags.h>
|
||||
#include "test.h"
|
||||
|
||||
static Library *LIB_NULL = NULL;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright 2013 (c) Anna Schumaker.
|
||||
*/
|
||||
#include <version.h>
|
||||
#include <lib/version.h>
|
||||
#include "test.h"
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
|
|
Loading…
Reference in New Issue