X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fprt-ext.c;h=80d34181f0cff529da8ef1a27838c293da2965e3;hb=96c68285e01bfb51a4d03cede9dd1a673c854d30;hp=ba73b6e44e1dcb9b43372b228f8b761920373b7e;hpb=7a4064cd15f6c6b34c1180e1bc51f0d0e90da320;p=yaz-moved-to-github.git diff --git a/src/prt-ext.c b/src/prt-ext.c index ba73b6e..80d3418 100644 --- a/src/prt-ext.c +++ b/src/prt-ext.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: prt-ext.c,v 1.8 2007-04-12 13:52:57 adam Exp $ + * $Id: prt-ext.c,v 1.9 2007-04-13 09:55:41 adam Exp $ */ /** @@ -320,6 +320,27 @@ Z_External *z_ext_record_oid(ODR o, const int *oid, const char *buf, int len) return thisext; } +Z_External *z_ext_record_xml(ODR o, const char *buf, int len) +{ + const int *oid = yaz_string_to_oid(yaz_oid_std(), + CLASS_RECSYN, OID_STR_XML); + return z_ext_record_oid(o, oid, buf, len); +} + +Z_External *z_ext_record_sutrs(ODR o, const char *buf, int len) +{ + const int *oid = yaz_string_to_oid(yaz_oid_std(), + CLASS_RECSYN, OID_STR_SUTRS); + return z_ext_record_oid(o, oid, buf, len); +} + +Z_External *z_ext_record_usmarc(ODR o, const char *buf, int len) +{ + const int *oid = yaz_string_to_oid(yaz_oid_std(), + CLASS_RECSYN, OID_STR_USMARC); + return z_ext_record_oid(o, oid, buf, len); +} + /* * Local variables: * c-basic-offset: 4