projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added odr_strdup_null which calls nmem_strdup_null. This function accepts
[yaz-moved-to-github.git]
/
src
/
cclp.h
diff --git
a/src/cclp.h
b/src/cclp.h
index
a45052d
..
24930f3
100644
(file)
--- a/
src/cclp.h
+++ b/
src/cclp.h
@@
-2,9
+2,13
@@
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: cclp.h,v 1.1 2007-04-25 20:52:19 adam Exp $
+ * $Id: cclp.h,v 1.5 2007-05-01 12:22:11 adam Exp $
*/
*/
+/**
+ * \file cclp.h
+ * \brief CCL header with private definitions
+ */
#include <yaz/ccl.h>
#define CCL_TOK_EOL 0
#include <yaz/ccl.h>
#define CCL_TOK_EOL 0
@@
-20,6
+24,7
@@
#define CCL_TOK_NOT 10
#define CCL_TOK_SET 11
#define CCL_TOK_NOT 10
#define CCL_TOK_SET 11
+typedef struct ccl_qualifier *ccl_qualifier_t;
/** CCL token */
struct ccl_token {
/** CCL token */
struct ccl_token {
@@
-48,13
+53,13
@@
struct ccl_parser {
CCL_bibset bibset;
/** names of and operator */
CCL_bibset bibset;
/** names of and operator */
- char *ccl_token_and;
+ const char **ccl_token_and;
/** names of or operator */
/** names of or operator */
- char *ccl_token_or;
+ const char **ccl_token_or;
/** names of not operator */
/** names of not operator */
- char *ccl_token_not;
+ const char **ccl_token_not;
/** names of set operator */
/** names of set operator */
- char *ccl_token_set;
+ const char **ccl_token_set;
/** 1=CCL parser is case sensitive, 0=case insensitive */
int ccl_case_sensitive;
};
/** 1=CCL parser is case sensitive, 0=case insensitive */
int ccl_case_sensitive;
};
@@
-84,6
+89,15
@@
struct ccl_rpn_node *ccl_parser_find_token(CCL_parser cclp,
struct ccl_token *list);
struct ccl_token *list);
+YAZ_EXPORT
+ccl_qualifier_t ccl_qual_search(CCL_parser cclp, const char *name,
+ size_t name_len, int seq);
+
+YAZ_EXPORT
+struct ccl_rpn_attr *ccl_qual_get_attr(ccl_qualifier_t q);
+
+YAZ_EXPORT
+const char *ccl_qual_get_name(ccl_qualifier_t q);
/*
* Local variables:
/*
* Local variables: