X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fcql.h;h=bf881879010286d856991d63ba672981cecab881;hb=ec7571c09ddbe4580775d3a8a60271a657ae02a6;hp=458d630fd579f8abe9ec7692a9a7921b7f09cf3c;hpb=861508216f18c9e932adf4b421b47bd8e4738327;p=yaz-moved-to-github.git diff --git a/include/yaz/cql.h b/include/yaz/cql.h index 458d630..bf88187 100644 --- a/include/yaz/cql.h +++ b/include/yaz/cql.h @@ -1,5 +1,5 @@ -/* - * Copyright (c) 1995-2007, Index Data +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2008 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: @@ -24,7 +24,6 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* $Id: cql.h,v 1.19 2007-11-14 21:03:59 adam Exp $ */ /** \file cql.h \brief Header with public definitions about CQL. @@ -121,6 +120,8 @@ struct cql_node { char *relation_uri; /** relation modifiers */ struct cql_node *modifiers; + /** term list */ + struct cql_node *extra_terms; } st; /** which == CQL_NODE_BOOL */ struct { @@ -299,6 +300,14 @@ int cql_transform_buf(cql_transform_t ct, YAZ_EXPORT int cql_transform_error(cql_transform_t ct, const char **addinfo); +/** \brief sets error and addinfo for transform + \param ct CQL transform handle + \param error error code + \param addinfo additional info + */ +YAZ_EXPORT +void cql_transform_set_error(cql_transform_t ct, int error, const char *addinfo); + /** \brief returns the CQL message corresponding to a given error code. \param code error code \returns text message