libsaria: Move idle trigger to new file

I think the idle code will be easier to manage if it is in its own file.
This commit is contained in:
Bryan Schumaker 2011-09-12 10:38:27 -04:00
parent c3eb748f44
commit dbce5c244a
3 changed files with 10 additions and 9 deletions

View File

@ -2,8 +2,6 @@
#define LIBSARIA_H
#include <libsaria/audio.h>
#include <libsaria/idle.h>
#include <libsaria/callback.h>
#include <libsaria/print.h>
class Libsaria

9
libsaria/idle.cpp Normal file
View File

@ -0,0 +1,9 @@
#include <libsaria/idle.h>
static Idle idle;
void libsaria_idle_task()
{
idle.run_task();
}

View File

@ -1,7 +1,6 @@
#include <libsaria/libsaria.h>
static Idle idle;
#include <libsaria/callback.h>
/*
* Implementations of functions defined in the libsaria class
@ -51,8 +50,3 @@ double libsaria_get_volume()
{
return libsaria_get()->get_volume();
}
void libsaria_idle_task()
{
idle.run_task();
}