projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tstlog uses -r instead of -s o control log file max
[yaz-moved-to-github.git]
/
src
/
srwutil.c
diff --git
a/src/srwutil.c
b/src/srwutil.c
index
624efaa
..
9c21af5
100644
(file)
--- a/
src/srwutil.c
+++ b/
src/srwutil.c
@@
-2,7
+2,7
@@
* Copyright (C) 1995-2006, Index Data ApS
* See the file LICENSE for details.
*
* Copyright (C) 1995-2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: srwutil.c,v 1.46 2006-08-16 22:47:10 adam Exp $
+ * $Id: srwutil.c,v 1.50 2006-09-06 15:21:26 adam Exp $
*/
/**
* \file srwutil.c
*/
/**
* \file srwutil.c
@@
-80,7
+80,7
@@
static void yaz_array_to_uri_ex(char **path, ODR o, char **name, char **value,
void yaz_array_to_uri(char **path, ODR o, char **name, char **value)
{
void yaz_array_to_uri(char **path, ODR o, char **name, char **value)
{
- return yaz_array_to_uri_ex(path, o, name, value, 0);
+ yaz_array_to_uri_ex(path, o, name, value, 0);
}
int yaz_uri_array(const char *path, ODR o, char ***name, char ***val)
}
int yaz_uri_array(const char *path, ODR o, char ***name, char ***val)
@@
-753,6
+753,16
@@
Z_SRW_extra_record *yaz_srw_get_extra_record(ODR o)
return res;
}
return res;
}
+Z_SRW_PDU *yaz_srw_get_core_v_1_1(ODR o)
+{
+ Z_SRW_PDU *p = (Z_SRW_PDU *) odr_malloc(o, sizeof(*p));
+ p->srw_version = odr_strdup(o, "1.1");
+ p->username = 0;
+ p->password = 0;
+ p->extra_args = 0;
+ return p;
+}
+
Z_SRW_PDU *yaz_srw_get(ODR o, int which)
{
Z_SRW_PDU *sr = yaz_srw_get_core_v_1_1(o);
Z_SRW_PDU *yaz_srw_get(ODR o, int which)
{
Z_SRW_PDU *sr = yaz_srw_get_core_v_1_1(o);