-/* $Id: regxread.c,v 1.55 2004-11-19 10:27:13 heikki Exp $
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
- Index Data Aps
+/* $Id: regxread.c,v 1.60 2006-04-26 11:12:31 adam Exp $
+ Copyright (C) 1995-2005
+ Index Data ApS
This file is part of the Zebra server.
02111-1307, USA.
*/
-
#include <stdio.h>
+#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <ctype.h>
#include <yaz/tpath.h>
-#include <zebrautl.h>
+#include <idzebra/util.h>
#include <dfa.h>
#include <idzebra/recgrs.h>
}
-void grs_config(void *clientData, Res res, const char *args)
+ZEBRA_RES grs_config(void *clientData, Res res, const char *args)
{
struct lexSpecs *specs = (struct lexSpecs *) clientData;
if (strlen(args) < sizeof(specs->type))
strcpy(specs->type, args);
+ return ZEBRA_OK;
}
data1_node *grs_read_regx (struct grs_read_info *p)
}
static struct recType regx_type = {
+ 0,
"grs.regx",
grs_init,
grs_config,
}
static struct recType tcl_type = {
+ 0,
"grs.tcl",
grs_init,
grs_config,