~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to contrib/tsearch2/wparser.h

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __WPARSER_H__
 
2
#define __WPARSER_H__
 
3
#include "postgres.h"
 
4
#include "fmgr.h"
 
5
 
 
6
typedef struct
 
7
{
 
8
        Oid                     prs_id;
 
9
        FmgrInfo        start_info;
 
10
        FmgrInfo        getlexeme_info;
 
11
        FmgrInfo        end_info;
 
12
        FmgrInfo        headline_info;
 
13
        Oid                     lextype;
 
14
        void       *prs;
 
15
}       WParserInfo;
 
16
 
 
17
void            init_prs(Oid id, WParserInfo * prs);
 
18
WParserInfo *findprs(Oid id);
 
19
Oid                     name2id_prs(text *name);
 
20
void            reset_prs(void);
 
21
 
 
22
 
 
23
typedef struct
 
24
{
 
25
        int                     lexid;
 
26
        char       *alias;
 
27
        char       *descr;
 
28
}       LexDescr;
 
29
 
 
30
#endif