source: trunk/gsdl/src/recpt/z3950cfg.h@ 10705

Last change on this file since 10705 was 10705, checked in by jrm21, 19 years ago

tidied up interaction between flex/bison and greenstone's z3950 client
classes. renamed parse.y to zparse.y to make it more obvious it's related
to that stuff.

  • Property svn:keywords set to Author Date Id Revision
File size: 876 bytes
Line 
1/*
2 This defines a data structure shared between:
3 * the C++ z3950proto class defined in z3950proto.cpp, and
4 * the C function yyparse() created by bison from the file zparse.fl
5 */
6
7#ifndef _Z3950CFG_H
8#define _Z3950CFG_H
9
10#include <stdio.h> // for FILE* type
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16struct z3950aboutlist {
17 char *lang;
18 char *text;
19 struct z3950aboutlist *next;
20};
21struct z3950cfg {
22 char *shortname;
23 char *hostname;
24 int port;
25 char *dbname;
26 char *longname;
27 char *icon;
28 char *smallicon;
29 struct z3950aboutlist *about;
30 struct z3950cfg *next;
31};
32extern struct z3950cfg *zserver_list;
33extern FILE *errfile;
34
35/* can't use default yyparse(), as this name is used elsewhere (eg mg)*/
36#define yyin zconfigin
37#define yyout zconfigout
38#define yyparse zconfigparse
39#define yylex zconfiglex
40
41int yyparse ();
42
43#ifdef __cplusplus
44}
45#endif
46
47#endif
Note: See TracBrowser for help on using the repository browser.