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
Do not reset querytype if session resets (HTTP/SRU).
[yaz-moved-to-github.git]
/
src
/
cclp.h
diff --git
a/src/cclp.h
b/src/cclp.h
index
0cc5b5b
..
24930f3
100644
(file)
--- a/
src/cclp.h
+++ b/
src/cclp.h
@@
-2,7
+2,7
@@
* 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.2 2007-04-27 09:50:35 adam Exp $
+ * $Id: cclp.h,v 1.5 2007-05-01 12:22:11 adam Exp $
*/
/**
*/
/**
@@
-24,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 {
@@
-52,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;
};
@@
-88,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: