X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=recctrl%2Fsgmlread.c;h=7471cb3c4c54723df2eeed473f4f76a99d06d1ce;hb=78e20a4e6a704e81bddb2ac37caf83f5a670041d;hp=a0f7f9cc5203da77822b9bc093d684f717538374;hpb=1300c402a9ecc32b470a7db96c0d93172ed1cf25;p=idzebra-moved-to-github.git diff --git a/recctrl/sgmlread.c b/recctrl/sgmlread.c index a0f7f9c..7471cb3 100644 --- a/recctrl/sgmlread.c +++ b/recctrl/sgmlread.c @@ -1,20 +1,60 @@ /* - * Copyright (C) 1994-1996, Index Data I/S + * Copyright (C) 1994-1999, Index Data * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: sgmlread.c,v $ - * Revision 1.1 1996-10-11 10:57:32 adam + * Revision 1.8 1999-06-25 13:47:25 adam + * Minor change that prevents MSVC warning. + * + * Revision 1.7 1999/05/21 12:00:17 adam + * Better diagnostics for extraction process. + * + * Revision 1.6 1999/05/20 12:57:18 adam + * Implemented TCL filter. Updated recctrl system. + * + * Revision 1.5 1999/02/02 14:51:31 adam + * Updated WIN32 code specific sections. Changed header. + * + * Revision 1.4 1997/09/17 12:19:22 adam + * Zebra version corresponds to YAZ version 1.4. + * Changed Zebra server so that it doesn't depend on global common_resource. + * + * Revision 1.3 1997/09/04 13:54:41 adam + * Added MARC filter - type grs.marc. where syntax refers + * to abstract syntax. New method tellf in retrieve/extract method. + * + * Revision 1.2 1997/04/30 08:56:08 quinn + * null + * + * Revision 1.1 1996/10/11 10:57:32 adam * New module recctrl. Used to manage records (extract/retrieval). * */ -#include -#include -#include +#include #include "grsread.h" -data1_node *grs_read_sgml (struct grs_read_info *p) +static data1_node *grs_read_sgml (struct grs_read_info *p) +{ + return data1_read_record (p->dh, p->readf, p->fh, p->mem); +} + +static void *grs_init_sgml(void) +{ + return 0; +} + +static void grs_destroy_sgml(void *clientData) { - return data1_read_record (p->readf, p->fh, p->mem); } + +static struct recTypeGrs sgml_type = { + "sgml", + grs_init_sgml, + grs_destroy_sgml, + grs_read_sgml +}; + +RecTypeGrs recTypeGrs_sgml = &sgml_type; +