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:
parent
0e6632ce45
commit
77225d4d9f
|
@ -6,6 +6,8 @@
|
|||
#include <list>
|
||||
using namespace std;
|
||||
|
||||
#define MAX_PLAYLISTS 10
|
||||
|
||||
enum AutoPauseType {
|
||||
PS_NONE,
|
||||
PS_AFTER_N,
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue