-/** \brief writes record in MarcXchange format */
-YAZ_EXPORT int yaz_marc_write_marcxchange(yaz_marc_t mt, WRBUF wrbuf);
-/** \brief writes record in ISO2709 format */
+
+/** \brief writes record in MarcXchange XML
+ \param mt handle
+ \param wrbuf WRBUF for output
+ \param format record format (e.g. "MARC21")
+ \param type record type (e.g. Bibliographic)
+
+ Returns 0=OK, -1=ERROR
+*/
+YAZ_EXPORT int yaz_marc_write_marcxchange(yaz_marc_t mt, WRBUF wrbuf,
+ const char *format,
+ const char *type);
+
+/** \brief writes record in ISO2709 format
+ \param mt handle
+ \param wrbuf WRBUF for output
+ Returns 0=OK, -1=ERROR
+*/