mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-24 03:27:46 -05:00
[smartpl/filescanner] Refactor smart playlist parsing
Moves the actual parsing with ANTLR3 out of filescanner.c to allow future reuse in different context (JSON api)
This commit is contained in:
23
src/smartpl_query.h
Normal file
23
src/smartpl_query.h
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
#ifndef __SMARTPL_QUERY_H__
|
||||
#define __SMARTPL_QUERY_H__
|
||||
|
||||
|
||||
struct smartpl {
|
||||
char *title;
|
||||
char *query_where;
|
||||
char *having;
|
||||
char *order_by;
|
||||
int limit;
|
||||
};
|
||||
|
||||
int
|
||||
smartpl_query_parse_file(struct smartpl *smartpl, const char *file);
|
||||
|
||||
int
|
||||
smartpl_query_parse_string(struct smartpl *smartpl, const char *expression);
|
||||
|
||||
void
|
||||
free_smartpl(struct smartpl *smartpl, int content_only);
|
||||
|
||||
#endif /* __SMARTPL_QUERY_H__ */
|
||||
Reference in New Issue
Block a user