+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
+ \param p retrieval handle
+ \param schema record schema (SRU) / element set name (Z39.50)
+ \param syntax record syntax (format)
+ \param match_schema matched schema (if conversion was successful)
+ \param match_syntax matced syntax OID if conversion was successful)
+ \param rc record conversion reference (if conversion was successful)
+ \param backend_schema backend scchema (if conversion was successful)
+ \param backend_syntax backend syntax (if conversion was successful)
+ \retval 0 success, schema and syntax matches
+ \retval -1 failure, use yaz_retrieval_get_error() for reason
+ \retval 1 schema does not match
+ \retval 2 syntax does not match
+ \retval 3 both match but not together
+*/
+YAZ_EXPORT
+int yaz_retrieval_request(yaz_retrieval_t p,
+ const char *schema, Odr_oid *syntax,
+ const char **match_schema, Odr_oid **match_syntax,
+ yaz_record_conv_t *rc,
+ const char **backend_schema,
+ Odr_oid **backend_syntax);