libsaria: Define MAX_PLAYLISTS in a header file

So applications can use this value too.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-05-19 18:34:30 -04:00
parent 0e6632ce45
commit 77225d4d9f
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,8 @@
#include <list>
using namespace std;
#define MAX_PLAYLISTS 10
enum AutoPauseType {
PS_NONE,
PS_AFTER_N,

View File

@ -9,7 +9,6 @@
#include <sstream>
using namespace std;
static unsigned int max_playlists = 10;
static void (*on_new_playlist)(libsaria::Playlist *) = NULL;
static AutoPauseType pause_type;
@ -113,7 +112,7 @@ namespace libsaria
{
Playlist *plist;
if (playlist_deck.size() == max_playlists)
if (playlist_deck.size() == MAX_PLAYLISTS)
return NULL;
switch (type) {