+/** \brief writes record in mode - given by yaz_marc_xml mode
+ \param mt handle
+ \param wrbuf WRBUF for output
+ This function calls yaz_marc_write_iso2709, yaz_marc_write_marcxml,
+ etc.. depending on mode given by yaz_marc_xml.
+ Returns 0=OK, -1=ERROR
+*/
+YAZ_EXPORT int yaz_marc_write_mode(yaz_marc_t mt, WRBUF wrbuf);
+
+/** \brief sets leader spec (for modifying bytes in 24 byte leader)
+ \param mt handle
+ \param leader_spec
+ \retval 0 OK
+ \retval -1 ERROR
+
+ Spec takes form pos=val,pos=val,...
+ where value is either a number (decimal char value) or a
+ string in 'a', e.g. 9='a'
+
+*/
+YAZ_EXPORT int yaz_marc_leader_spec(yaz_marc_t mt, const char *leader_spec);