X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fcql.h;h=8da61d086341934e2b44e15cbd97b67a25cd60b0;hp=8cc3c858f72a7e87c5bc0ac93123748963c49bc3;hb=f6def128a97444384d6c0939eaa04fb0e931d6df;hpb=c7e6e65dc7e8204798a41f6326a9e04632f1f507 diff --git a/include/yaz/cql.h b/include/yaz/cql.h index 8cc3c85..8da61d0 100644 --- a/include/yaz/cql.h +++ b/include/yaz/cql.h @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2008 Index Data. + * Copyright (C) 1995-2010 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: @@ -250,6 +250,19 @@ cql_transform_t cql_transform_open_FILE (FILE *f); YAZ_EXPORT cql_transform_t cql_transform_open_fname(const char *fname); + +/** \brief defines CQL transform pattern + \param ct CQL transform handle + \param pattern pattern string + \param value pattern value + \returns 0 for succes; -1 for failure +*/ +YAZ_EXPORT +int cql_transform_define_pattern(cql_transform_t ct, const char *pattern, + const char *value); + + + /** \brief destroys a CQL transform handle \param ct CQL transform handle */ @@ -355,6 +368,7 @@ YAZ_END_CDECL /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab