Optional CCL module. Moved atoi_n to marcdisp.h from yaz-util.h.
[yaz-moved-to-github.git] / include / yaz / ccl.h
index d800412..2f984e8 100644 (file)
  * CCL - header file
  *
  * $Log: ccl.h,v $
- * Revision 1.7  2000-11-01 14:47:00  adam
+ * Revision 1.9  2001-03-07 13:24:40  adam
+ * Member and_not in Z_Operator is kept for backwards compatibility.
+ * Added support for definition of CCL operators in field spec file.
+ *
+ * Revision 1.8  2000/11/16 09:58:02  adam
+ * Implemented local AttributeSet setting for CCL field maps.
+ *
+ * Revision 1.7  2000/11/01 14:47:00  adam
  * Added CCL support for WIN32.
  *
  * Revision 1.6  2000/10/17 19:50:28  adam
@@ -149,6 +156,7 @@ YAZ_BEGIN_CDECL
 /* attribute pair (type, value) */
 struct ccl_rpn_attr {
     struct ccl_rpn_attr *next;
+    char *set;
     int type;
     int value;
 };
@@ -310,11 +318,18 @@ YAZ_EXPORT void ccl_rpn_delete (struct ccl_rpn_node *rpn);
 YAZ_EXPORT void ccl_pr_tree (struct ccl_rpn_node *rpn, FILE *fd_out);
 
 /* Add CCL qualifier */
-YAZ_EXPORT void ccl_qual_add (CCL_bibset b, const char *name, int no, int *attr);
+YAZ_EXPORT void ccl_qual_add (CCL_bibset b, const char *name, int no,
+                             int *attr);
+
+YAZ_EXPORT void ccl_qual_add_set (CCL_bibset b, const char *name, int no,
+                                 int *attr, char **attsets);
 
 /* Read CCL qualifier list spec from file inf */
 YAZ_EXPORT void ccl_qual_file (CCL_bibset bibset, FILE *inf);
 
+/* Read CCL qualifier list spec from file inf */
+YAZ_EXPORT int ccl_qual_fname (CCL_bibset bibset, const char *fname);
+
 /* Add CCL qualifier by using single-line spec */
 YAZ_EXPORT void ccl_qual_fitem (CCL_bibset bibset, const char *cp, const char *qual_name);
 
@@ -341,6 +356,10 @@ YAZ_EXPORT CCL_parser ccl_parser_create (void);
 /* Destroy CCL parser */
 YAZ_EXPORT void ccl_parser_destroy (CCL_parser p);
 
+YAZ_EXPORT char *ccl_strdup (const char *str);
+
+YAZ_EXPORT const char *ccl_qual_search_special (CCL_bibset b,
+                                               const char *name);
 
 #ifndef ccl_assert
 #define ccl_assert(x) ;