X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fcql.h;h=41c831592cc11db0daee2ef5344bd8f0eab84dba;hb=8746c08e36ba07edc839f1396c17a27ea2915dc0;hp=b9b5f4d5b0445311966aebcfd0e5a1cf57c68d72;hpb=79275c8b7ec33ad44f787051d0c47ca57daba8c5;p=yaz-moved-to-github.git diff --git a/include/yaz/cql.h b/include/yaz/cql.h index b9b5f4d..41c8315 100644 --- a/include/yaz/cql.h +++ b/include/yaz/cql.h @@ -1,5 +1,5 @@ -/* $Id: cql.h,v 1.5 2003-12-16 14:36:28 adam Exp $ - Copyright (C) 2002-2003 +/* $Id: cql.h,v 1.7 2004-03-15 21:39:06 adam Exp $ + Copyright (C) 2002-2004 Index Data Aps This file is part of the YAZ toolkit. @@ -88,23 +88,18 @@ struct cql_node { union { struct { char *index; + char *index_uri; char *term; char *relation; + char *relation_uri; struct cql_node *modifiers; - struct cql_node *prefixes; } st; struct { char *value; struct cql_node *left; struct cql_node *right; struct cql_node *modifiers; - struct cql_node *prefixes; } boolean; - struct { - char *name; - char *value; - struct cql_node *next; - } mod; } u; }; @@ -125,19 +120,17 @@ YAZ_EXPORT struct cql_node *cql_node_mk_sc(const char *index, const char *relation, const char *term); + + +YAZ_EXPORT +struct cql_node *cql_apply_prefix(struct cql_node *cn, + const char *relation, + const char *term); YAZ_EXPORT struct cql_node *cql_node_mk_boolean(const char *op); YAZ_EXPORT void cql_node_destroy(struct cql_node *cn); YAZ_EXPORT -struct cql_node *cql_node_prefix(struct cql_node *n, - const char *prefix, - const char *uri); -YAZ_EXPORT -struct cql_node *cql_node_mk_mod(const char *name, - const char *value); - -YAZ_EXPORT struct cql_node *cql_node_dup (struct cql_node *cp); YAZ_EXPORT struct cql_node *cql_parser_result(CQL_parser cp); @@ -189,6 +182,9 @@ int cql_transform_error(cql_transform_t ct, const char **addinfo); YAZ_EXPORT const char *cql_strerror(int code); +YAZ_EXPORT +const char *cql_uri(); + YAZ_END_CDECL #endif