-/* $Id: ZOOM.xs,v 1.49 2007-10-29 12:06:57 mike Exp $ */
-
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#include <yaz/diagsrw.h>
#include <yaz/xmalloc.h>
#include <yaz/log.h>
+#include <yaz/yaz-version.h>
/* Used by the *_setl() functions */
typedef char opaquechar;
diagset
# See "typemap" for discussion of the "const char *" return-type.
-#
-### but should use datachunk for in some (not all!) cases.
const char *
-ZOOM_record_get(rec, type, len)
+ZOOM_record_get_string(rec, type)
ZOOM_record rec
const char* type
- int &len
+ INIT:
+ int len;
+ CODE:
+ RETVAL = ZOOM_record_get(rec, type, &len);
+ OUTPUT:
+ RETVAL
+
+struct datachunk
+ZOOM_record_get_binary(rec, type)
+ ZOOM_record rec
+ const char* type
+ CODE:
+ RETVAL.data = (char*) ZOOM_record_get(rec, type, &RETVAL.len);
OUTPUT:
RETVAL
- len
void
ZOOM_record_destroy(rec)
ZOOM_scanset_term(scan, pos, occ, len)
ZOOM_scanset scan
size_t pos
- int& occ
- int& len
+ size_t& occ
+ size_t& len
OUTPUT:
RETVAL
occ
ZOOM_scanset_display_term(scan, pos, occ, len)
ZOOM_scanset scan
size_t pos
- int& occ
- int& len
+ size_t& occ
+ size_t& len
OUTPUT:
RETVAL
occ
INIT:
SV *realconns;
I32 n, i;
- int res;
ZOOM_connection *cs;
CODE:
/*printf("* in ZOOM_event(%p)\n", conns);*/