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:
Anna Schumaker 2014-06-04 13:59:15 -04:00
parent 851be80a7d
commit 87af56ba85
58 changed files with 103 additions and 103 deletions

View File

@ -1,10 +1,10 @@
/* /*
* Copyright 2014 (c) Anna Schumaker. * Copyright 2014 (c) Anna Schumaker.
*/ */
#include <deck.h> #include <lib/deck.h>
#include <library.h> #include <lib/library.h>
#include <playlist.h> #include <lib/playlist.h>
#include <tabs.h> #include <gui/tabs.h>
class CollectionTab : public Tab { class CollectionTab : public Tab {

View File

@ -1,9 +1,9 @@
/* /*
* Copyright 2014 (c) Anna Schumaker. * Copyright 2014 (c) Anna Schumaker.
*/ */
#include <callback.h> #include <lib/callback.h>
#include <library.h> #include <lib/library.h>
#include <ocarina.h> #include <gui/ocarina.h>
static void on_library_add(unsigned int id, Library *library); static void on_library_add(unsigned int id, Library *library);

View File

@ -1,16 +1,16 @@
/* /*
* Copyright 2014 (c) Anna Schumaker. * Copyright 2014 (c) Anna Schumaker.
*/ */
#include <audio.h> #include <lib/audio.h>
#include <callback.h> #include <lib/callback.h>
#include <deck.h> #include <lib/deck.h>
#include <driver.h> #include <lib/driver.h>
#include <idle.h> #include <lib/idle.h>
#include <playlist.h> #include <lib/playlist.h>
#include <lib/print.h>
#include <ocarina.h> #include <gui/ocarina.h>
#include <print.h> #include <gui/tabs.h>
#include <tabs.h>
static bool audio_playing = false; static bool audio_playing = false;
static Glib::RefPtr<Gtk::Builder> builder; static Glib::RefPtr<Gtk::Builder> builder;

View File

@ -1,8 +1,8 @@
/* /*
* Copyright 2014 (c) Anna Schumaker. * Copyright 2014 (c) Anna Schumaker.
*/ */
#include <deck.h> #include <lib/deck.h>
#include <tabs.h> #include <gui/tabs.h>
class HistoryTab : public Tab { class HistoryTab : public Tab {

View File

@ -1,12 +1,12 @@
/* /*
* Copyright 2014 (c) Anna Schumaker. * Copyright 2014 (c) Anna Schumaker.
*/ */
#include <audio.h> #include <lib/audio.h>
#include <deck.h> #include <lib/deck.h>
#include <library.h> #include <lib/library.h>
#include <ocarina.h> #include <lib/playlist.h>
#include <playlist.h> #include <gui/ocarina.h>
#include <tabs.h> #include <gui/tabs.h>
const std::string share_file(const std::string &file) const std::string share_file(const std::string &file)
{ {

View File

@ -4,8 +4,8 @@
* See the example at: * See the example at:
* https://git.gnome.org/browse/gtkmm-documentation/tree/examples/others/treemodelcustom * https://git.gnome.org/browse/gtkmm-documentation/tree/examples/others/treemodelcustom
*/ */
#include <audio.h> #include <lib/audio.h>
#include <ocarina.h> #include <gui/ocarina.h>
#include <stdlib.h> #include <stdlib.h>
#include <sstream> #include <sstream>

View File

@ -1,8 +1,8 @@
/* /*
* Copyright 2014 (c) Anna Schumaker. * Copyright 2014 (c) Anna Schumaker.
*/ */
#include <playlist.h> #include <lib/playlist.h>
#include <tabs.h> #include <gui/tabs.h>
static const std::string current_playlist(); static const std::string current_playlist();

View File

@ -1,9 +1,9 @@
/* /*
* Copyright 2014 (c) Anna Schumaker. * Copyright 2014 (c) Anna Schumaker.
*/ */
#include <callback.h> #include <lib/callback.h>
#include <deck.h> #include <lib/deck.h>
#include <tabs.h> #include <gui/tabs.h>
#include <map> #include <map>

View File

@ -1,11 +1,11 @@
/* /*
* Copyright 2014 (c) Anna Schumaker. * Copyright 2014 (c) Anna Schumaker.
*/ */
#include <callback.h> #include <lib/callback.h>
#include <deck.h> #include <lib/deck.h>
#include <filter.h> #include <lib/filter.h>
#include <playlist.h> #include <lib/playlist.h>
#include <tabs.h> #include <gui/tabs.h>
#include <map> #include <map>
#include <sstream> #include <sstream>

View File

@ -4,7 +4,7 @@
#ifndef OCARINA_H #ifndef OCARINA_H
#define OCARINA_H #define OCARINA_H
#include <queue.h> #include <lib/queue.h>
#include <gtkmm.h> #include <gtkmm.h>

View File

@ -4,8 +4,8 @@
#ifndef OCARINA_TABS_H #ifndef OCARINA_TABS_H
#define OCARINA_TABS_H #define OCARINA_TABS_H
#include <ocarina.h> #include <gui/ocarina.h>
#include <queue.h> #include <lib/queue.h>
#include <set> #include <set>
class Tab { class Tab {

View File

@ -4,7 +4,7 @@
#ifndef OCARINA_AUDIO_H #ifndef OCARINA_AUDIO_H
#define OCARINA_AUDIO_H #define OCARINA_AUDIO_H
#include <tags.h> #include <lib/tags.h>
#include <string> #include <string>
namespace audio namespace audio

View File

@ -4,8 +4,8 @@
#ifndef OCARINA_CALLBACK_H #ifndef OCARINA_CALLBACK_H
#define OCARINA_CALLBACK_H #define OCARINA_CALLBACK_H
#include <library.h> #include <lib/library.h>
#include <queue.h> #include <lib/queue.h>
struct Callbacks { struct Callbacks {

View File

@ -4,7 +4,7 @@
#ifndef OCARINA_DATABASE_H #ifndef OCARINA_DATABASE_H
#define OCARINA_DATABASE_H #define OCARINA_DATABASE_H
#include <file.h> #include <lib/file.h>
#include <map> #include <map>
#include <vector> #include <vector>

View File

@ -4,7 +4,7 @@
#ifndef OCARINA_DECK_H #ifndef OCARINA_DECK_H
#define OCARINA_DECK_H #define OCARINA_DECK_H
#include <queue.h> #include <lib/queue.h>
#include <list> #include <list>

View File

@ -4,7 +4,7 @@
#ifndef OCARINA_INDEX_H #ifndef OCARINA_INDEX_H
#define OCARINA_INDEX_H #define OCARINA_INDEX_H
#include <database.h> #include <lib/database.h>
#include <set> #include <set>
#include <string> #include <string>

View File

@ -4,8 +4,8 @@
#ifndef OCARINA_LIBRARY_H #ifndef OCARINA_LIBRARY_H
#define OCARINA_LIBRARY_H #define OCARINA_LIBRARY_H
#include <queue.h> #include <lib/queue.h>
#include <tags.h> #include <lib/tags.h>
#include <string> #include <string>
namespace library namespace library

View File

@ -4,8 +4,8 @@
#ifndef OCARINA_PLAYLIST_H #ifndef OCARINA_PLAYLIST_H
#define OCARINA_PLAYLIST_H #define OCARINA_PLAYLIST_H
#include <index.h> #include <lib/index.h>
#include <queue.h> #include <lib/queue.h>
#include <string> #include <string>

View File

@ -4,8 +4,8 @@
#ifndef OCARINA_QUEUE_H #ifndef OCARINA_QUEUE_H
#define OCARINA_QUEUE_H #define OCARINA_QUEUE_H
#include <file.h> #include <lib/file.h>
#include <tags.h> #include <lib/tags.h>
#include <vector> #include <vector>
#include <list> #include <list>

View File

@ -4,7 +4,7 @@
#ifndef OCARINA_TAGS_H #ifndef OCARINA_TAGS_H
#define OCARINA_TAGS_H #define OCARINA_TAGS_H
#include <database.h> #include <lib/database.h>
enum sort_t { enum sort_t {

View File

@ -1,10 +1,10 @@
/* /*
* Copyright 2013 (c) Anna Schumaker. * Copyright 2013 (c) Anna Schumaker.
*/ */
#include <audio.h> #include <lib/audio.h>
#include <callback.h> #include <lib/callback.h>
#include <deck.h> #include <lib/deck.h>
#include <driver.h> #include <lib/driver.h>
#include <sstream> #include <sstream>
#include <string.h> #include <string.h>

View File

@ -1,7 +1,7 @@
/* /*
* Copyright 2014 (c) Anna Schumaker. * Copyright 2014 (c) Anna Schumaker.
*/ */
#include <callback.h> #include <lib/callback.h>
static void no_op() {} static void no_op() {}

View File

@ -1,7 +1,7 @@
/* /*
* Copyright 2013 (c) Anna Schumaker. * Copyright 2013 (c) Anna Schumaker.
*/ */
#include <database.h> #include <lib/database.h>
DatabaseEntry :: DatabaseEntry() DatabaseEntry :: DatabaseEntry()

View File

@ -1,10 +1,10 @@
/* /*
* Copyright 2013 (c) Anna Schumaker. * Copyright 2013 (c) Anna Schumaker.
*/ */
#include <callback.h> #include <lib/callback.h>
#include <deck.h> #include <lib/deck.h>
#include <file.h> #include <lib/file.h>
#include <library.h> #include <lib/library.h>
class RecentQueue : public Queue class RecentQueue : public Queue

View File

@ -1,7 +1,7 @@
/* /*
* Copyright 2014 (c) Anna Schumaker. * Copyright 2014 (c) Anna Schumaker.
*/ */
#include <driver.h> #include <lib/driver.h>
Driver :: Driver() {} Driver :: Driver() {}

View File

@ -1,8 +1,8 @@
/* /*
* Copyright 2013 (c) Anna Schumaker. * Copyright 2013 (c) Anna Schumaker.
*/ */
#include <error.h> #include <lib/error.h>
#include <file.h> #include <lib/file.h>
#include <glib.h> #include <glib.h>

View File

@ -2,8 +2,8 @@
* Copyright 2013 (c) Anna Schumaker. * Copyright 2013 (c) Anna Schumaker.
*/ */
#include <filter.h> #include <lib/filter.h>
#include <index.h> #include <lib/index.h>
#include <algorithm> #include <algorithm>
#include <list> #include <list>

View File

@ -1,7 +1,7 @@
/* /*
* Copyright 2013 (c) Anna Schumaker. * Copyright 2013 (c) Anna Schumaker.
*/ */
#include <idle.h> #include <lib/idle.h>
#include <queue> #include <queue>

View File

@ -1,7 +1,7 @@
/* /*
* Copyright 2014 (c) Anna Schumaker. * Copyright 2014 (c) Anna Schumaker.
*/ */
#include <index.h> #include <lib/index.h>
IndexEntry :: IndexEntry() {} IndexEntry :: IndexEntry() {}

View File

@ -1,8 +1,8 @@
/* /*
* Copyright 2013 (c) Anna Schumaker. * Copyright 2013 (c) Anna Schumaker.
*/ */
#include <idle.h> #include <lib/idle.h>
#include <library.h> #include <lib/library.h>
#include <glib.h> #include <glib.h>

View File

@ -1,8 +1,8 @@
/* /*
* Copyright 2013 (c) Anna Schumaker. * Copyright 2013 (c) Anna Schumaker.
*/ */
#include <library.h> #include <lib/library.h>
#include <playlist.h> #include <lib/playlist.h>
class PlaylistQueue : public Queue { class PlaylistQueue : public Queue {

View File

@ -1,9 +1,9 @@
/* /*
* Copyright 2013 (c) Anna Schumaker. * Copyright 2013 (c) Anna Schumaker.
*/ */
#include <callback.h> #include <lib/callback.h>
#include <queue.h> #include <lib/queue.h>
#include <random.h> #include <lib/random.h>
#include <algorithm> #include <algorithm>
#include <sstream> #include <sstream>

View File

@ -3,7 +3,7 @@
*/ */
#ifdef CONFIG_TEST #ifdef CONFIG_TEST
#include <random.h> #include <lib/random.h>
static unsigned int _random_value = 0; static unsigned int _random_value = 0;

View File

@ -2,9 +2,9 @@
* Copyright 2014 (c) Anna Schumaker. * Copyright 2014 (c) Anna Schumaker.
*/ */
#include <tags.h> #include <lib/tags.h>
#include <filter.h> #include <lib/filter.h>
#include <print.h> #include <lib/print.h>
#include <sstream> #include <sstream>
#include <taglib/tag.h> #include <taglib/tag.h>

View File

@ -1,9 +1,9 @@
/* /*
* Copyright 2013 (c) Anna Schumaker. * Copyright 2013 (c) Anna Schumaker.
*/ */
#include <audio.h> #include <lib/audio.h>
#include <driver.h> #include <lib/driver.h>
#include <library.h> #include <lib/library.h>
#include "test.h" #include "test.h"
Track *TRACK_NULL = NULL; Track *TRACK_NULL = NULL;

View File

@ -3,7 +3,7 @@
* Test a Database * Test a Database
*/ */
#include <database.h> #include <lib/database.h>
#include "test.h" #include "test.h"
#include <sstream> #include <sstream>

View File

@ -1,9 +1,9 @@
/* /*
* Copyright 2013 (c) Anna Schumaker. * Copyright 2013 (c) Anna Schumaker.
*/ */
#include <callback.h> #include <lib/callback.h>
#include <deck.h> #include <lib/deck.h>
#include <library.h> #include <lib/library.h>
#include "test.h" #include "test.h"
static Queue *Q_NULL = NULL; static Queue *Q_NULL = NULL;

View File

@ -1,7 +1,7 @@
/* /*
* Copyright 2014 (c) Anna Schumaker. * Copyright 2014 (c) Anna Schumaker.
*/ */
#include <driver.h> #include <lib/driver.h>
#include "test.h" #include "test.h"
static TestDriver *DRIVER_NULL = NULL; static TestDriver *DRIVER_NULL = NULL;

View File

@ -1,7 +1,7 @@
/* /*
* Copyright 2014 (c) Anna Schumaker. * Copyright 2014 (c) Anna Schumaker.
*/ */
#include <file.h> #include <lib/file.h>
#include "test.h" #include "test.h"

View File

@ -3,7 +3,7 @@
* Test the filtering code * Test the filtering code
*/ */
#include <filter.h> #include <lib/filter.h>
#include "test.h" #include "test.h"
static void do_test_lowercase(const std::string &text, const std::string &lc) static void do_test_lowercase(const std::string &text, const std::string &lc)

View File

@ -3,7 +3,7 @@
* Test the idle queue * Test the idle queue
*/ */
#include <idle.h> #include <lib/idle.h>
#include "test.h" #include "test.h"
#include <sstream> #include <sstream>

View File

@ -3,7 +3,7 @@
* Test a Database * Test a Database
*/ */
#include <index.h> #include <lib/index.h>
#include "test.h" #include "test.h"
#include <sstream> #include <sstream>

View File

@ -1,8 +1,8 @@
/* /*
* Copyright 2013 (c) Anna Schumaker. * Copyright 2013 (c) Anna Schumaker.
*/ */
#include <idle.h> #include <lib/idle.h>
#include <library.h> #include <lib/library.h>
#include "test.h" #include "test.h"
static Queue *Q_NULL = NULL; static Queue *Q_NULL = NULL;

View File

@ -1,8 +1,8 @@
/* /*
* Copyright 2013 (c) Anna Schumaker. * Copyright 2013 (c) Anna Schumaker.
*/ */
#include <library.h> #include <lib/library.h>
#include <playlist.h> #include <lib/playlist.h>
#include "test.h" #include "test.h"
static IndexEntry *IDX_NULL = NULL; static IndexEntry *IDX_NULL = NULL;

View File

@ -1,10 +1,10 @@
/* /*
* Copyright 2014 (c) Anna Schumaker. * Copyright 2014 (c) Anna Schumaker.
*/ */
#include <callback.h> #include <lib/callback.h>
#include <queue.h> #include <lib/queue.h>
#include <random.h> #include <lib/random.h>
#include <tags.h> #include <lib/tags.h>
#include "test.h" #include "test.h"

View File

@ -2,7 +2,7 @@
* Copyright 2014 (c) Anna Schumaker. * Copyright 2014 (c) Anna Schumaker.
*/ */
#include <random.h> #include <lib/random.h>
#include "test.h" #include "test.h"
#include <sstream> #include <sstream>

View File

@ -3,7 +3,7 @@
* Test a DatabaseEntry * Test a DatabaseEntry
*/ */
#include <tags.h> #include <lib/tags.h>
#include "test.h" #include "test.h"
static Library *LIB_NULL = NULL; static Library *LIB_NULL = NULL;

View File

@ -1,7 +1,7 @@
/* /*
* Copyright 2013 (c) Anna Schumaker. * Copyright 2013 (c) Anna Schumaker.
*/ */
#include <version.h> #include <lib/version.h>
#include "test.h" #include "test.h"
#ifdef CONFIG_DEBUG #ifdef CONFIG_DEBUG