2005-08-02 03:17:22 +00:00
|
|
|
/*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SMART_PARSER_H_
|
|
|
|
#define _SMART_PARSER_H_
|
|
|
|
|
|
|
|
typedef void* PARSETREE;
|
|
|
|
|
|
|
|
extern PARSETREE sp_init(void);
|
2006-03-12 11:30:58 +00:00
|
|
|
extern int sp_parse(PARSETREE tree, char *term, int type);
|
2005-08-02 03:17:22 +00:00
|
|
|
extern int sp_dispose(PARSETREE tree);
|
2005-10-22 23:05:29 +00:00
|
|
|
extern char *sp_get_error(PARSETREE tree);
|
|
|
|
extern char *sp_sql_clause(PARSETREE tree);
|
2005-08-02 03:17:22 +00:00
|
|
|
|
2006-03-10 23:41:13 +00:00
|
|
|
#define SP_TYPE_PLAYLIST 0
|
|
|
|
#define SP_TYPE_QUERY 1
|
|
|
|
|
2005-08-02 03:17:22 +00:00
|
|
|
#endif /* _SMART_PARSER_H_ */
|
|
|
|
|