First stab at a marc map as a fast alternat to XSLT
[pazpar2-moved-to-github.git] / src / marcmap.h
diff --git a/src/marcmap.h b/src/marcmap.h
new file mode 100644 (file)
index 0000000..11eb34e
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef MARCMAP_H
+#define MARCMAP_H
+
+struct marcmap
+{ 
+    char *field;
+    char subfield;
+    char *pz;
+    struct marcmap *next;
+};
+
+struct marcmap *marcmap_load(char *filename, NMEM nmem);
+xmlDoc *marcmap_apply(struct marcmap *marcmap, xmlDoc *xml_in);
+
+#endif