2 * This file was generated automatically by xsubpp version 1.9507 from the
3 * contents of SimpleServer.xs. Do not edit this file, edit SimpleServer.xs instead.
5 * ANY CHANGES MADE HERE WILL BE LOST!
9 #line 1 "SimpleServer.xs"
11 * Copyright (c) 2000, Index Data.
13 * Permission to use, copy, modify, distribute, and sell this software and
14 * its documentation, in whole or in part, for any purpose, is hereby granted,
17 * 1. This copyright and permission notice appear in all copies of the
18 * software and its documentation. Notices of copyright or attribution
19 * which appear at the beginning of any file must remain unchanged.
21 * 2. The name of Index Data or the individual authors may not be used to
22 * endorse or promote products derived from this software without specific
23 * prior written permission.
25 * THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTY OF ANY KIND,
26 * EXPRESS, IMPLIED, OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
27 * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
28 * IN NO EVENT SHALL INDEX DATA BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
29 * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES
30 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR
31 * NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
32 * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
36 /*$Log: SimpleServer.c,v $
37 /*Revision 1.9 2001-05-17 13:43:04 sondberg
38 /*Added method Hash2grs into GRS1 module.
40 /*Revision 1.7 2001/03/13 14:17:15 sondberg
41 /*Added support for GRS-1.
48 #include <yaz/backend.h>
50 #include <yaz/wrbuf.h>
55 #define GRS_MAX_FIELDS 50
59 #ifndef sv_undef /* To fix the problem with Perl 5.6.0 */
60 #define sv_undef PL_sv_undef
80 SV *search_ref = NULL;
82 SV *present_ref = NULL;
83 SV *esrequest_ref = NULL;
84 SV *delete_ref = NULL;
89 Z_GenericRecord *read_grs1(char *str, ODR o)
92 char line[512], *buf, *ptr, *original;
94 Z_GenericRecord *r = 0;
102 ptr = strchr(str, '\n');
106 strncpy(line, str, ptr - str);
110 while (*buf && isspace(*buf))
113 memmove(original, str, strlen(str));
116 if (sscanf(buf, "(%d,%[^)])", &type, value) != 2)
118 yaz_log(LOG_WARN, "Bad data in '%s'", buf);
121 if (!type && *value == '0')
123 if (!(buf = strchr(buf, ')')))
126 while (*buf && isspace(*buf))
132 r = (Z_GenericRecord *)odr_malloc(o, sizeof(*r));
133 r->elements = (Z_TaggedElement **)
134 odr_malloc(o, sizeof(Z_TaggedElement*) * GRS_MAX_FIELDS);
137 r->elements[r->num_elements] = t = (Z_TaggedElement *) odr_malloc(o, sizeof(Z_TaggedElement));
138 t->tagType = (int *)odr_malloc(o, sizeof(int));
140 t->tagValue = (Z_StringOrNumeric *)
141 odr_malloc(o, sizeof(Z_StringOrNumeric));
142 if ((ivalue = atoi(value)))
144 t->tagValue->which = Z_StringOrNumeric_numeric;
145 t->tagValue->u.numeric = (int *)odr_malloc(o, sizeof(int));
146 *t->tagValue->u.numeric = ivalue;
150 t->tagValue->which = Z_StringOrNumeric_string;
151 t->tagValue->u.string = (char *)odr_malloc(o, strlen(value)+1);
152 strcpy(t->tagValue->u.string, value);
154 t->tagOccurrence = 0;
156 t->appliedVariant = 0;
157 t->content = c = (Z_ElementData *)odr_malloc(o, sizeof(Z_ElementData));
160 c->which = Z_ElementData_subtree;
161 c->u.subtree = read_grs1(str, o);
165 c->which = Z_ElementData_string;
166 /* buf[strlen(buf)-1] = '\0';*/
167 buf[strlen(buf)] = '\0';
168 c->u.string = odr_strdup(o, buf);
177 static void oid2str(Odr_oid *o, WRBUF buf)
179 for (; *o >= 0; o++) {
181 sprintf(ibuf, "%d", *o);
182 wrbuf_puts(buf, ibuf);
184 wrbuf_putc(buf, '.');
189 static int rpn2pquery(Z_RPNStructure *s, WRBUF buf)
192 case Z_RPNStructure_simple: {
193 Z_Operand *o = s->u.simple;
196 case Z_Operand_APT: {
197 Z_AttributesPlusTerm *at = o->u.attributesPlusTerm;
199 if (at->attributes) {
203 for (i = 0; i < at->attributes->num_attributes; i++) {
204 wrbuf_puts(buf, "@attr ");
205 if (at->attributes->attributes[i]->attributeSet) {
206 oid2str(at->attributes->attributes[i]->attributeSet, buf);
207 wrbuf_putc(buf, ' ');
209 sprintf(ibuf, "%d=", *at->attributes->attributes[i]->attributeType);
210 assert(at->attributes->attributes[i]->which == Z_AttributeValue_numeric);
211 wrbuf_puts(buf, ibuf);
212 sprintf(ibuf, "%d ", *at->attributes->attributes[i]->value.numeric);
213 wrbuf_puts(buf, ibuf);
216 switch (at->term->which) {
217 case Z_Term_general: {
218 wrbuf_putc(buf, '"');
219 wrbuf_write(buf, (char*) at->term->u.general->buf, at->term->u.general->len);
220 wrbuf_puts(buf, "\" ");
231 case Z_RPNStructure_complex: {
232 Z_Complex *c = s->u.complex;
234 switch (c->roperator->which) {
235 case Z_Operator_and: wrbuf_puts(buf, "@and "); break;
236 case Z_Operator_or: wrbuf_puts(buf, "@or "); break;
237 case Z_Operator_and_not: wrbuf_puts(buf, "@not "); break;
238 case Z_Operator_prox: abort();
241 if (!rpn2pquery(c->s1, buf))
243 if (!rpn2pquery(c->s2, buf))
253 WRBUF zquery2pquery(Z_Query *q)
255 WRBUF buf = wrbuf_alloc();
257 if (q->which != Z_Query_type_1 && q->which != Z_Query_type_101)
259 if (q->u.type_1->attributeSetId) {
260 /* Output attribute set ID */
261 wrbuf_puts(buf, "@attrset ");
262 oid2str(q->u.type_1->attributeSetId, buf);
263 wrbuf_putc(buf, ' ');
265 return rpn2pquery(q->u.type_1->RPNStructure, buf) ? buf : 0;
269 int bend_sort(void *handle, bend_sort_rr *rr)
280 char **input_setnames;
281 Zfront_handle *zhandle = (Zfront_handle *)handle;
289 input_setnames = rr->input_setnames;
290 for (i = 0; i < rr->num_input_setnames; i++)
292 av_push(aref, newSVpv(*input_setnames++, 0));
295 hv_store(href, "INPUT", 5, newRV( (SV*) aref), 0);
296 hv_store(href, "OUTPUT", 6, newSVpv(rr->output_setname, 0), 0);
297 hv_store(href, "HANDLE", 6, zhandle->handle, 0);
298 hv_store(href, "STATUS", 6, newSViv(0), 0);
302 XPUSHs(sv_2mortal(newRV( (SV*) href)));
306 perl_call_sv(sort_ref, G_SCALAR | G_DISCARD);
310 temp = hv_fetch(href, "ERR_CODE", 8, 1);
311 err_code = newSVsv(*temp);
313 temp = hv_fetch(href, "ERR_STR", 7, 1);
314 err_str = newSVsv(*temp);
316 temp = hv_fetch(href, "STATUS", 6, 1);
317 status = newSVsv(*temp);
328 rr->errcode = SvIV(err_code);
329 rr->sort_status = SvIV(status);
330 ptr = SvPV(err_str, len);
331 ODR_err_str = (char *)odr_malloc(rr->stream, len + 1);
332 strcpy(ODR_err_str, ptr);
333 rr->errstring = ODR_err_str;
343 int bend_search(void *handle, bend_search_rr *rr)
360 Zfront_handle *zhandle = (Zfront_handle *)handle;
367 basenames = rr->basenames;
368 for (i = 0; i < rr->num_bases; i++)
370 av_push(aref, newSVpv(*basenames++, 0));
373 hv_store(href, "SETNAME", 7, newSVpv(rr->setname, 0), 0);
374 hv_store(href, "REPL_SET", 8, newSViv(rr->replace_set), 0);
375 hv_store(href, "ERR_CODE", 8, newSViv(0), 0);
376 hv_store(href, "ERR_STR", 7, newSVpv("", 0), 0);
377 hv_store(href, "HITS", 4, newSViv(0), 0);
378 hv_store(href, "DATABASES", 9, newRV( (SV*) aref), 0);
379 hv_store(href, "HANDLE", 6, zhandle->handle, 0);
380 hv_store(href, "PID", 3, newSViv(getpid()), 0);
381 query = zquery2pquery(rr->query);
384 hv_store(href, "QUERY", 5, newSVpv((char *)query->buf, query->pos), 0);
392 XPUSHs(sv_2mortal(newRV( (SV*) href)));
396 n = perl_call_sv(search_ref, G_SCALAR | G_DISCARD);
400 temp = hv_fetch(href, "HITS", 4, 1);
401 hits = newSVsv(*temp);
403 temp = hv_fetch(href, "ERR_CODE", 8, 1);
404 err_code = newSVsv(*temp);
406 temp = hv_fetch(href, "ERR_STR", 7, 1);
407 err_str = newSVsv(*temp);
409 temp = hv_fetch(href, "HANDLE", 6, 1);
410 point = newSVsv(*temp);
418 rr->hits = SvIV(hits);
419 rr->errcode = SvIV(err_code);
420 ptr = SvPV(err_str, len);
421 ODR_errstr = (char *)odr_malloc(rr->stream, len + 1);
422 strcpy(ODR_errstr, ptr);
423 rr->errstring = ODR_errstr;
424 /* ODR_point = (SV *)odr_malloc(rr->stream, sizeof(*point));
425 memcpy(ODR_point, point, sizeof(*point));
426 zhandle->handle = ODR_point;*/
427 zhandle->handle = point;
432 sv_free( (SV*) aref);
433 sv_free( (SV*) href);
435 wrbuf_free(query, 1);
440 WRBUF oid2dotted(int *oid)
443 WRBUF buf = wrbuf_alloc();
446 for (; *oid != -1 ; oid++)
451 wrbuf_putc(buf, '.');
457 sprintf(ibuf, "%d", *oid);
458 wrbuf_puts(buf, ibuf);
464 int dotted2oid(char *dotted, int *buffer)
478 if (n == MAX_OID) /* Terminate if more than MAX_OID entries */
484 sscanf(ibuf, "%d", oid++);
497 sscanf(ibuf, "%d", oid++);
504 int bend_fetch(void *handle, bend_fetch_rr *rr)
523 Zfront_handle *zhandle = (Zfront_handle *)handle;
525 Z_RecordComposition *composition;
526 Z_ElementSetNames *simple;
535 hv_store(href, "SETNAME", 7, newSVpv(rr->setname, 0), 0);
536 temp = hv_store(href, "OFFSET", 6, newSViv(rr->number), 0);
537 oid_dotted = oid2dotted(rr->request_format_raw);
538 hv_store(href, "REQ_FORM", 8, newSVpv((char *)oid_dotted->buf, oid_dotted->pos), 0);
539 hv_store(href, "REP_FORM", 8, newSVpv((char *)oid_dotted->buf, oid_dotted->pos), 0);
540 hv_store(href, "BASENAME", 8, newSVpv("", 0), 0);
541 hv_store(href, "RECORD", 6, newSVpv("", 0), 0);
542 hv_store(href, "LAST", 4, newSViv(0), 0);
543 hv_store(href, "ERR_CODE", 8, newSViv(0), 0);
544 hv_store(href, "ERR_STR", 7, newSVpv("", 0), 0);
545 hv_store(href, "SUR_FLAG", 8, newSViv(0), 0);
546 hv_store(href, "HANDLE", 6, zhandle->handle, 0);
547 hv_store(href, "PID", 3, newSViv(getpid()), 0);
550 composition = rr->comp;
551 if (composition->which == Z_RecordComp_simple)
553 simple = composition->u.simple;
554 if (simple->which == Z_ElementSetNames_generic)
556 hv_store(href, "COMP", 4, newSVpv(simple->u.generic, 0), 0);
571 XPUSHs(sv_2mortal(newRV( (SV*) href)));
575 perl_call_sv(fetch_ref, G_SCALAR | G_DISCARD);
579 temp = hv_fetch(href, "BASENAME", 8, 1);
580 basename = newSVsv(*temp);
582 temp = hv_fetch(href, "RECORD", 6, 1);
583 record = newSVsv(*temp);
585 temp = hv_fetch(href, "LAST", 4, 1);
586 last = newSVsv(*temp);
588 temp = hv_fetch(href, "ERR_CODE", 8, 1);
589 err_code = newSVsv(*temp);
591 temp = hv_fetch(href, "ERR_STR", 7, 1),
592 err_string = newSVsv(*temp);
594 temp = hv_fetch(href, "SUR_FLAG", 8, 1);
595 sur_flag = newSVsv(*temp);
597 temp = hv_fetch(href, "REP_FORM", 8, 1);
598 rep_form = newSVsv(*temp);
600 temp = hv_fetch(href, "HANDLE", 6, 1);
601 point = newSVsv(*temp);
609 ptr = SvPV(basename, length);
610 ODR_basename = (char *)odr_malloc(rr->stream, length + 1);
611 strcpy(ODR_basename, ptr);
612 rr->basename = ODR_basename;
614 ptr = SvPV(rep_form, length);
615 ODR_oid_buf = (int *)odr_malloc(rr->stream, (MAX_OID + 1) * sizeof(int));
616 if (dotted2oid(ptr, ODR_oid_buf) == -1) /* Maximum number of OID elements exceeded */
618 printf("Net::Z3950::SimpleServer: WARNING: OID structure too long, max length is %d\n", MAX_OID);
620 rr->output_format_raw = ODR_oid_buf;
622 ptr = SvPV(record, length);
623 oid = oid_getentbyoid(ODR_oid_buf);
624 if (oid->value == VAL_GRS1) /* Treat GRS-1 records separately */
626 rr->record = (char *) read_grs1(ptr, rr->stream);
631 ODR_record = (char *)odr_malloc(rr->stream, length + 1);
632 strcpy(ODR_record, ptr);
633 rr->record = ODR_record;
636 zhandle->handle = point;
638 rr->last_in_set = SvIV(last);
642 rr->errcode = SvIV(err_code);
643 ptr = SvPV(err_string, length);
644 ODR_errstr = (char *)odr_malloc(rr->stream, length + 1);
645 strcpy(ODR_errstr, ptr);
646 rr->errstring = ODR_errstr;
648 rr->surrogate_flag = SvIV(sur_flag);
650 wrbuf_free(oid_dotted, 1);
664 int bend_present(void *handle, bend_present_rr *rr)
674 Z_RecordComposition *composition;
675 Z_ElementSetNames *simple;
678 Zfront_handle *zhandle = (Zfront_handle *)handle;
680 /* WRBUF oid_dotted; */
687 hv_store(href, "HANDLE", 6, zhandle->handle, 0);
688 hv_store(href, "ERR_CODE", 8, newSViv(0), 0);
689 hv_store(href, "ERR_STR", 7, newSVpv("", 0), 0);
690 hv_store(href, "START", 5, newSViv(rr->start), 0);
691 hv_store(href, "SETNAME", 7, newSVpv(rr->setname, 0), 0);
692 hv_store(href, "NUMBER", 6, newSViv(rr->number), 0);
693 /*oid_dotted = oid2dotted(rr->request_format_raw);
694 hv_store(href, "REQ_FORM", 8, newSVpv((char *)oid_dotted->buf, oid_dotted->pos), 0);*/
695 hv_store(href, "HITS", 4, newSViv(0), 0);
696 hv_store(href, "PID", 3, newSViv(getpid()), 0);
699 composition = rr->comp;
700 if (composition->which == Z_RecordComp_simple)
702 simple = composition->u.simple;
703 if (simple->which == Z_ElementSetNames_generic)
705 hv_store(href, "COMP", 4, newSVpv(simple->u.generic, 0), 0);
722 XPUSHs(sv_2mortal(newRV( (SV*) href)));
726 perl_call_sv(present_ref, G_SCALAR | G_DISCARD);
730 temp = hv_fetch(href, "ERR_CODE", 8, 1);
731 err_code = newSVsv(*temp);
733 temp = hv_fetch(href, "ERR_STR", 7, 1);
734 err_string = newSVsv(*temp);
736 temp = hv_fetch(href, "HITS", 4, 1);
737 hits = newSVsv(*temp);
739 temp = hv_fetch(href, "HANDLE", 6, 1);
740 point = newSVsv(*temp);
747 rr->errcode = SvIV(err_code);
748 rr->hits = SvIV(hits);
750 ptr = SvPV(err_string, len);
751 ODR_errstr = (char *)odr_malloc(rr->stream, len + 1);
752 strcpy(ODR_errstr, ptr);
753 rr->errstring = ODR_errstr;
754 /* wrbuf_free(oid_dotted, 1);*/
755 zhandle->handle = point;
760 sv_free( (SV*) href);
766 int bend_esrequest(void *handle, bend_esrequest_rr *rr)
768 perl_call_sv(esrequest_ref, G_VOID | G_DISCARD | G_NOARGS);
773 int bend_delete(void *handle, bend_delete_rr *rr)
775 perl_call_sv(delete_ref, G_VOID | G_DISCARD | G_NOARGS);
780 int bend_scan(void *handle, bend_scan_rr *rr)
782 perl_call_sv(scan_ref, G_VOID | G_DISCARD | G_NOARGS);
787 bend_initresult *bend_init(bend_initrequest *q)
789 bend_initresult *r = (bend_initresult *) odr_malloc (q->stream, sizeof(*r));
796 Zfront_handle *zhandle = (Zfront_handle *) xmalloc (sizeof(*zhandle));
808 /*q->bend_sort = bend_sort;*/
811 q->bend_search = bend_search;
815 q->bend_present = bend_present;
817 /*q->bend_esrequest = bend_esrequest;*/
818 /*q->bend_delete = bend_delete;*/
821 q->bend_fetch = bend_fetch;
823 /*q->bend_scan = bend_scan;*/
825 hv_store(href, "IMP_NAME", 8, newSVpv("", 0), 0);
826 hv_store(href, "IMP_VER", 7, newSVpv("", 0), 0);
827 hv_store(href, "ERR_CODE", 8, newSViv(0), 0);
828 hv_store(href, "PEER_NAME", 9, newSVpv(q->peer_name, 0), 0);
829 hv_store(href, "HANDLE", 6, newSVsv(&sv_undef), 0);
830 hv_store(href, "PID", 3, newSViv(getpid()), 0);
834 XPUSHs(sv_2mortal(newRV( (SV*) href)));
838 if (init_ref != NULL)
840 perl_call_sv(init_ref, G_SCALAR | G_DISCARD);
845 temp = hv_fetch(href, "IMP_NAME", 8, 1);
846 name = newSVsv(*temp);
848 temp = hv_fetch(href, "IMP_VER", 7, 1);
849 ver = newSVsv(*temp);
851 temp = hv_fetch(href, "ERR_CODE", 8, 1);
852 status = newSVsv(*temp);
854 temp = hv_fetch(href, "HANDLE", 6, 1);
855 handle= newSVsv(*temp);
861 zhandle->handle = handle;
862 r->errcode = SvIV(status);
864 ptr = SvPV(name, len);
865 q->implementation_name = (char *)xmalloc(len + 1);
866 strcpy(q->implementation_name, ptr);
867 /* q->implementation_name = SvPV(name, len);*/
868 ptr = SvPV(ver, len);
869 q->implementation_version = (char *)xmalloc(len + 1);
870 strcpy(q->implementation_version, ptr);
876 void bend_close(void *handle)
879 Zfront_handle *zhandle = (Zfront_handle *)handle;
886 if (close_ref == NULL)
892 hv_store(href, "HANDLE", 6, zhandle->handle, 0);
896 XPUSHs(sv_2mortal(newRV((SV *)href)));
900 perl_call_sv(close_ref, G_SCALAR | G_DISCARD);
914 #line 912 "SimpleServer.c"
915 XS(XS_Net__Z3950__SimpleServer_set_init_handler)
919 Perl_croak(aTHX_ "Usage: Net::Z3950::SimpleServer::set_init_handler(arg)");
922 #line 908 "SimpleServer.xs"
923 init_ref = newSVsv(arg);
924 #line 922 "SimpleServer.c"
929 XS(XS_Net__Z3950__SimpleServer_set_close_handler)
933 Perl_croak(aTHX_ "Usage: Net::Z3950::SimpleServer::set_close_handler(arg)");
936 #line 915 "SimpleServer.xs"
937 close_ref = newSVsv(arg);
938 #line 936 "SimpleServer.c"
943 XS(XS_Net__Z3950__SimpleServer_set_sort_handler)
947 Perl_croak(aTHX_ "Usage: Net::Z3950::SimpleServer::set_sort_handler(arg)");
950 #line 922 "SimpleServer.xs"
951 sort_ref = newSVsv(arg);
952 #line 950 "SimpleServer.c"
957 XS(XS_Net__Z3950__SimpleServer_set_search_handler)
961 Perl_croak(aTHX_ "Usage: Net::Z3950::SimpleServer::set_search_handler(arg)");
964 #line 928 "SimpleServer.xs"
965 search_ref = newSVsv(arg);
966 #line 964 "SimpleServer.c"
971 XS(XS_Net__Z3950__SimpleServer_set_fetch_handler)
975 Perl_croak(aTHX_ "Usage: Net::Z3950::SimpleServer::set_fetch_handler(arg)");
978 #line 935 "SimpleServer.xs"
979 fetch_ref = newSVsv(arg);
980 #line 978 "SimpleServer.c"
985 XS(XS_Net__Z3950__SimpleServer_set_present_handler)
989 Perl_croak(aTHX_ "Usage: Net::Z3950::SimpleServer::set_present_handler(arg)");
992 #line 942 "SimpleServer.xs"
993 present_ref = newSVsv(arg);
994 #line 992 "SimpleServer.c"
999 XS(XS_Net__Z3950__SimpleServer_set_esrequest_handler)
1003 Perl_croak(aTHX_ "Usage: Net::Z3950::SimpleServer::set_esrequest_handler(arg)");
1006 #line 949 "SimpleServer.xs"
1007 esrequest_ref = newSVsv(arg);
1008 #line 1006 "SimpleServer.c"
1013 XS(XS_Net__Z3950__SimpleServer_set_delete_handler)
1017 Perl_croak(aTHX_ "Usage: Net::Z3950::SimpleServer::set_delete_handler(arg)");
1020 #line 956 "SimpleServer.xs"
1021 delete_ref = newSVsv(arg);
1022 #line 1020 "SimpleServer.c"
1027 XS(XS_Net__Z3950__SimpleServer_set_scan_handler)
1031 Perl_croak(aTHX_ "Usage: Net::Z3950::SimpleServer::set_scan_handler(arg)");
1034 #line 963 "SimpleServer.xs"
1035 scan_ref = newSVsv(arg);
1036 #line 1034 "SimpleServer.c"
1041 XS(XS_Net__Z3950__SimpleServer_start_server)
1045 #line 969 "SimpleServer.xs"
1051 #line 1049 "SimpleServer.c"
1054 #line 975 "SimpleServer.xs"
1055 argv_buf = (char **)xmalloc((items + 1) * sizeof(char *));
1057 for (i = 0; i < items; i++)
1059 ptr = SvPV(ST(i), len);
1060 *argv_buf = (char *)xmalloc(len + 1);
1061 strcpy(*argv_buf++, ptr);
1065 RETVAL = statserv_main(items, argv, bend_init, bend_close);
1066 #line 1064 "SimpleServer.c"
1067 XSprePUSH; PUSHi((IV)RETVAL);
1075 XS(boot_Net__Z3950__SimpleServer)
1078 char* file = __FILE__;
1080 XS_VERSION_BOOTCHECK ;
1082 newXS("Net::Z3950::SimpleServer::set_init_handler", XS_Net__Z3950__SimpleServer_set_init_handler, file);
1083 newXS("Net::Z3950::SimpleServer::set_close_handler", XS_Net__Z3950__SimpleServer_set_close_handler, file);
1084 newXS("Net::Z3950::SimpleServer::set_sort_handler", XS_Net__Z3950__SimpleServer_set_sort_handler, file);
1085 newXS("Net::Z3950::SimpleServer::set_search_handler", XS_Net__Z3950__SimpleServer_set_search_handler, file);
1086 newXS("Net::Z3950::SimpleServer::set_fetch_handler", XS_Net__Z3950__SimpleServer_set_fetch_handler, file);
1087 newXS("Net::Z3950::SimpleServer::set_present_handler", XS_Net__Z3950__SimpleServer_set_present_handler, file);
1088 newXS("Net::Z3950::SimpleServer::set_esrequest_handler", XS_Net__Z3950__SimpleServer_set_esrequest_handler, file);
1089 newXS("Net::Z3950::SimpleServer::set_delete_handler", XS_Net__Z3950__SimpleServer_set_delete_handler, file);
1090 newXS("Net::Z3950::SimpleServer::set_scan_handler", XS_Net__Z3950__SimpleServer_set_scan_handler, file);
1091 newXS("Net::Z3950::SimpleServer::start_server", XS_Net__Z3950__SimpleServer_start_server, file);