postgresql/contrib/tsearch2/wparser.h

31 lines
471 B
C
Raw Normal View History

2003-07-21 18:27:44 +08:00
#ifndef __WPARSER_H__
#define __WPARSER_H__
#include "postgres.h"
#include "fmgr.h"
2003-08-04 08:43:34 +08:00
typedef struct
{
Oid prs_id;
FmgrInfo start_info;
FmgrInfo getlexeme_info;
FmgrInfo end_info;
FmgrInfo headline_info;
Oid lextype;
void *prs;
} WParserInfo;
2003-07-21 18:27:44 +08:00
2003-08-04 08:43:34 +08:00
void init_prs(Oid id, WParserInfo * prs);
WParserInfo *findprs(Oid id);
Oid name2id_prs(text *name);
void reset_prs(void);
2003-07-21 18:27:44 +08:00
2003-08-04 08:43:34 +08:00
typedef struct
{
int lexid;
char *alias;
char *descr;
} LexDescr;
2003-07-21 18:27:44 +08:00
#endif