source: main/trunk/greenstone2/runtime-src/src/z3950/z3950cfg.h@ 25234

Last change on this file since 25234 was 15492, checked in by mdewsnip, 16 years ago

New directory to contain all the Z39.50 code (currently incomplete).

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.