X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsrwutil.c;h=560976be9216899bd53cf693a995135d3ea428e3;hp=5e5eab6d8774fe749c356d5f6f99e325763339e1;hb=02c2c415822721c98afff674fc9672d004bd92a2;hpb=0d6309b35855b9e9b8f09c4c75dcd71483c5da5f diff --git a/src/srwutil.c b/src/srwutil.c index 5e5eab6..560976b 100644 --- a/src/srwutil.c +++ b/src/srwutil.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: srwutil.c,v 1.52 2006-10-24 09:18:34 adam Exp $ + * $Id: srwutil.c,v 1.53 2006-10-27 11:22:09 adam Exp $ */ /** * \file srwutil.c @@ -329,6 +329,16 @@ void yaz_add_srw_diagnostic(ODR o, Z_SRW_diagnostic **d, } +void yaz_add_sru_update_diagnostic(ODR o, Z_SRW_diagnostic **d, + int *num, int code, const char *addinfo) +{ + char uri[40]; + + sprintf(uri, "info:srw/diagnostic/12/%d", code); + yaz_add_srw_diagnostic_uri(o, d, num, uri, 0, addinfo); +} + + static void grab_charset(ODR o, const char *content_type, char **charset) { if (charset)