2005-08-01 23:17:22 -04:00
|
|
|
|
|
|
|
#ifndef _SMART_PARSER_H_
|
|
|
|
#define _SMART_PARSER_H_
|
|
|
|
|
|
|
|
typedef void* PARSETREE;
|
|
|
|
|
|
|
|
extern PARSETREE sp_init(void);
|
2009-04-24 05:12:58 -04:00
|
|
|
extern int sp_parse(PARSETREE tree, const char *term, int type);
|
2005-08-01 23:17:22 -04:00
|
|
|
extern int sp_dispose(PARSETREE tree);
|
2005-10-22 19:05:29 -04:00
|
|
|
extern char *sp_get_error(PARSETREE tree);
|
|
|
|
extern char *sp_sql_clause(PARSETREE tree);
|
2005-08-01 23:17:22 -04:00
|
|
|
|
2006-03-10 18:41:13 -05:00
|
|
|
#define SP_TYPE_PLAYLIST 0
|
|
|
|
#define SP_TYPE_QUERY 1
|
|
|
|
|
2009-04-24 04:57:44 -04:00
|
|
|
#define FILTER_TYPE_FIREFLY 0
|
|
|
|
#define FILTER_TYPE_APPLE 1
|
|
|
|
|
2005-08-01 23:17:22 -04:00
|
|
|
#endif /* _SMART_PARSER_H_ */
|
|
|
|
|