X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Frpn2solr.h;h=630137e881117dba4c5a499cc00866a38ba56d21;hb=ce627148dbba2878565b8d9da33f6b25f33da4bd;hp=0c67ae9f2ca6db9899a981520d83fa524a62c645;hpb=0c46d2e66bdeea1600e700124a81a5d0a65d349e;p=yaz-moved-to-github.git diff --git a/include/yaz/rpn2solr.h b/include/yaz/rpn2solr.h index 0c67ae9..630137e 100644 --- a/include/yaz/rpn2solr.h +++ b/include/yaz/rpn2solr.h @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2013 Index Data. + * Copyright (C) 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: @@ -37,7 +37,23 @@ YAZ_BEGIN_CDECL -/** \brief transforms RPN query to SOLR output stream +/** \brief transforms RPN query to SOLR output stream (re-entrant) + \param ct SOLR transform handle + \param addinfo additional info on error + \param pr print function + \param client_data opaque data to be passed to print handler + \param q RPN Query + \retval 0 success + \retval !=0 failure (error code) + */ +YAZ_EXPORT +int solr_transform_rpn2solr_stream_r(solr_transform_t ct, + WRBUF addinfo, + void (*pr)(const char *buf, void *client_data), + void *client_data, + Z_RPNQuery *q); + +/** \brief transforms RPN query to SOLR output stream (NOT re-entrant) \param ct SOLR transform handle \param pr print function \param client_data opaque data to be passed to print handler