char ***name, char ***val);
YAZ_EXPORT void yaz_array_to_uri(char **path, ODR o,
char **name, char **value);
+YAZ_EXPORT void yaz_array_to_uri_c(char **path, ODR o,
+ const char **name, const char **value);
/** \brief encodes URI component
\param dst destination string (should be at least 3*strlen(uri)+1)
*dst = '\0';
}
-void yaz_array_to_uri(char **path, ODR o, char **name, char **value)
+void yaz_array_to_uri_c(char **path, ODR o, const char **name, const char **value)
{
size_t i, szp = 0, sz = 1;
for(i = 0; name[i]; i++)
(*path)[szp] = '\0';
}
+void yaz_array_to_uri(char **path, ODR o, char **name, char **value)
+{
+ yaz_array_to_uri_c(path, o, (const char **) name, (const char **)value);
+}
+
int yaz_uri_to_array(const char *path, ODR o, char ***name, char ***val)
{
int no = 2;