mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-16 01:03:16 -05:00
45 lines
638 B
C
45 lines
638 B
C
/*
|
|
* $Id$
|
|
*
|
|
*/
|
|
|
|
#ifndef _PL_H_
|
|
#define _PL_H_
|
|
|
|
#include "mp3-scanner.h"
|
|
|
|
#define T_INT 0
|
|
#define T_STR 1
|
|
|
|
typedef struct tag_pl_node {
|
|
int op;
|
|
int type;
|
|
union {
|
|
int ival;
|
|
struct tag_pl_node *plval;
|
|
} arg1;
|
|
union {
|
|
char *cval;
|
|
int ival;
|
|
struct tag_pl_node *plval;
|
|
} arg2;
|
|
} PL_NODE;
|
|
|
|
typedef struct tag_smart_playlist {
|
|
char *name;
|
|
unsigned int id;
|
|
PL_NODE *root;
|
|
struct tag_smart_playlist *next;
|
|
} SMART_PLAYLIST;
|
|
|
|
extern SMART_PLAYLIST pl_smart;
|
|
extern int pl_error;
|
|
|
|
extern void pl_dump(void);
|
|
extern int pl_load(char *file);
|
|
extern void pl_eval(MP3FILE *pmp3);
|
|
|
|
#endif /* _PL_H_ */
|
|
|
|
|