X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fretrieval.h;h=f71f32f30167380e51e8c7bce6a5615e90c65f5b;hp=66bc8776729f8d1be3c8250d4e0a26c50d930818;hb=95a76bd311b56586f2f3e9bb6e2e2a6c3f2dbce4;hpb=379504a233e3e2cc85bca1e7b6d864f1395aec7c diff --git a/include/yaz/retrieval.h b/include/yaz/retrieval.h index 66bc877..f71f32f 100644 --- a/include/yaz/retrieval.h +++ b/include/yaz/retrieval.h @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data. + * Copyright (C) 1995-2012 Index Data. * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -61,7 +61,7 @@ YAZ_EXPORT void yaz_retrieval_destroy(yaz_retrieval_t p); \retval 0 success \retval -1 failure - On failure, use yaz_retrieval_get_error to get error string. + On failure, call yaz_retrieval_get_error to get error string. For retrieval: \verbatim @@ -87,6 +87,21 @@ YAZ_EXPORT void yaz_retrieval_destroy(yaz_retrieval_t p); */ YAZ_EXPORT int yaz_retrieval_configure(yaz_retrieval_t p, const xmlNode *node); + + +/** configures retrieval with user-defined conversion types + \param p retrieval handle + \param node xmlNode pointer (root element of XML config) + \param types record conversion types + \retval 0 success + \retval -1 failure + + On failure, use yaz_retrieval_get_error to get error string. +*/ +YAZ_EXPORT +int yaz_retrieval_configure_t(yaz_retrieval_t p, const xmlNode *node, + struct yaz_record_conv_type *types); + #endif /** performs retrieval request based on schema and format