Update CQL parser to use CQL 1.1 modifiers for booleans and
[yaz-moved-to-github.git] / include / yaz / cql.h
index b1125e3..6d6782c 100644 (file)
@@ -1,5 +1,5 @@
-/* $Id: cql.h,v 1.4 2003-05-27 09:46:26 mike Exp $
-   Copyright (C) 2002-2003
+/* $Id: cql.h,v 1.6 2004-03-10 16:34:29 adam Exp $
+   Copyright (C) 2002-2004
    Index Data Aps
 
 This file is part of the YAZ toolkit.
@@ -12,6 +12,8 @@ See the file LICENSE.
 #include <stdio.h>
 #include <yaz/yconfig.h>
 
+YAZ_BEGIN_CDECL
+
 typedef struct cql_parser *CQL_parser;
 
 /**
@@ -98,11 +100,6 @@ struct cql_node {
             struct cql_node *modifiers;
             struct cql_node *prefixes;
         } boolean;
-        struct {
-            char *name;
-            char *value;
-            struct cql_node *next;
-        } mod;
     } u;
 };
 
@@ -132,10 +129,6 @@ 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);
@@ -187,5 +180,7 @@ int cql_transform_error(cql_transform_t ct, const char **addinfo);
 YAZ_EXPORT
 const char *cql_strerror(int code);
 
+YAZ_END_CDECL
+
 #endif
 /* CQL_H_INCLUDED */