* Sebastian Hammer, Adam Dickmeiss
*
* $Log: retrieve.c,v $
- * Revision 1.4 1999-02-02 14:51:07 adam
+ * Revision 1.5 1999-02-17 11:29:56 adam
+ * Fixed in record_fetch. Minor updates to API.
+ *
+ * Revision 1.4 1999/02/02 14:51:07 adam
* Updated WIN32 code specific sections. Changed header.
*
* Revision 1.3 1998/10/28 10:54:40 adam
retrieveCtrl.dh = zh->dh;
(*rt->retrieve)(&retrieveCtrl);
*output_format = retrieveCtrl.output_format;
- *rec_bufp = retrieveCtrl.rec_buf;
*rec_lenp = retrieveCtrl.rec_len;
+ *rec_bufp = odr_malloc (stream, *rec_lenp);
+ memcpy (*rec_bufp, retrieveCtrl.rec_buf, *rec_lenp);
if (fc.fd != -1)
close (fc.fd);
rec_rm (&rec);
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: zebraapi.h,v $
- * Revision 1.5 1998-09-22 10:48:19 adam
+ * Revision 1.6 1999-02-17 11:29:57 adam
+ * Fixed in record_fetch. Minor updates to API.
+ *
+ * Revision 1.5 1998/09/22 10:48:19 adam
* Minor changes in search API.
*
* Revision 1.4 1998/09/02 13:53:18 adam
#include <oid.h>
#include <proto.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Retrieval Record Descriptor */
typedef struct {
int errCode; /* non-zero if error when fetching this */
/* do authentication */
YAZ_EXPORT int zebra_auth (ZebraHandle zh, const char *user, const char *pass);
+#ifdef __cplusplus
+}
+#endif