ocarina: Get list of library tracks
This will be used to fill in a gtk listview sometime soon
This commit is contained in:
parent
884a0331e2
commit
1c944d3156
|
@ -4,6 +4,13 @@
|
|||
#include <ocarina/gtk.h>
|
||||
#include "songlist/songlist.h"
|
||||
|
||||
#include <libsaria/library.h>
|
||||
#include <libsaria/track.h>
|
||||
#include <libsaria/print.h>
|
||||
|
||||
#include <list>
|
||||
using namespace std;
|
||||
|
||||
static SongList library_list;
|
||||
|
||||
void library_init()
|
||||
|
@ -12,6 +19,15 @@ void library_init()
|
|||
add_page(library_list.get_label(), library_list.get_window(), true);
|
||||
}
|
||||
|
||||
static void fill_library()
|
||||
{
|
||||
list<Track> track_list;
|
||||
libsaria_library_list(track_list);
|
||||
print("track list size: ");
|
||||
println(track_list.size());
|
||||
}
|
||||
|
||||
void ocarina_library_refresh()
|
||||
{
|
||||
fill_library();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue