LICENSE file in egate root.
[egate.git] / include / iso2709.h
index 8d9e8b6..9c35d51 100644 (file)
@@ -1,14 +1,32 @@
 /*
-   Record management
-
-   Europagate, 1994-1995.
-
-   $Log: iso2709.h,v $
-   Revision 1.3  1995/02/10 17:05:14  adam
-   New function iso2709_display to display MARC records in a
-   line-by-line format. The iso2709_cvt function no longer
-   prints the record to stderr.
-
+ * Record management
+ *
+ * Europagate, 1994-1995.
+ *
+ * $Log: iso2709.h,v $
+ * Revision 1.10  1995/03/30 07:32:46  adam
+ * New log-level: GW_LOG_NOTICE. New 2709 function: iso2709_mk.
+ *
+ * Revision 1.9  1995/03/29  11:44:25  adam
+ * New functions: iso2709_a_.. for record manipulation.
+ *
+ * Revision 1.8  1995/03/28  16:06:42  adam
+ * New function: iso2709_out.
+ *
+ * Revision 1.7  1995/03/27  12:50:40  adam
+ * New level: GW_LOG_ERRNO.
+ *
+ * Revision 1.6  1995/03/08  12:36:35  adam
+ * New function: dbc2709_cvt.
+ *
+ * Revision 1.5  1995/02/23  08:32:12  adam
+ * Changed header.
+ *
+ * Revision 1.3  1995/02/10  17:05:14  adam
+ * New function iso2709_display to display MARC records in a
+ * line-by-line format. The iso2709_cvt function no longer
+ * prints the record to stderr.
+ *
  * Revision 1.2  1995/02/10  16:50:25  adam
  * Indicator field moved to 'struct iso2709_dir' from 'struct
  * iso2709_field'.
 #define ISO2709_H
 
 typedef struct iso2709_rec *Iso2709Rec;
+typedef struct iso2709_anchor *Iso2709Anchor;
 
 char *iso2709_read (FILE *inf);
 Iso2709Rec iso2709_cvt (const char *buf);
+Iso2709Rec iso2709_mk (void);
 void iso2709_rm (Iso2709Rec rec);
 void iso2709_display (Iso2709Rec rec, FILE *out);
+int iso2709_out (Iso2709Rec p, char **buf, int size);
 
+Iso2709Anchor iso2709_a_mk (Iso2709Rec rec);
+void iso2709_a_rm (Iso2709Anchor anchor);
+int iso2709_a_first (Iso2709Anchor anchor);
+int iso2709_a_next_line (Iso2709Anchor anchor);
+int iso2709_a_next_field (Iso2709Anchor anchor);
+int iso2709_a_next (Iso2709Anchor anchor);
+int iso2709_a_info_field (Iso2709Anchor anchor,
+                    char **tag, char **indicator,
+                    char **identifier, char **data);
+int iso2709_a_info_line (Iso2709Anchor anchor,
+                    char **tag, char **indicator);
+int iso2709_a_delete_field (Iso2709Anchor anchor);
+int iso2709_a_delete_line (Iso2709Anchor anchor);
+int iso2709_a_insert (Iso2709Anchor anchor, 
+                      const char *tag, const char *indicator,
+                      const char *identifier, const char *data);
+int iso2709_a_search (Iso2709Anchor anchor,
+                      const char *tag_p, const char *indicator_p,
+                      const char *identifier_p);
 #endif
+