X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=blobdiff_plain;f=src%2Fyaz-z-assoc.cpp;h=f97838a765430bed7c0a9df3eacd01c0b855fd01;hp=3bd680beb00d60afe7fe230d62b38451a18e24d4;hb=fa96bc0dcc16f6ac3e33b5144664e51cb7d09874;hpb=ca58a20d661f245f8c3974fae6b61b50dada80f2 diff --git a/src/yaz-z-assoc.cpp b/src/yaz-z-assoc.cpp index 3bd680b..f97838a 100644 --- a/src/yaz-z-assoc.cpp +++ b/src/yaz-z-assoc.cpp @@ -2,7 +2,7 @@ * Copyright (c) 1998-2007, Index Data. * See the file LICENSE for details. * - * $Id: yaz-z-assoc.cpp,v 1.41 2007-04-12 15:00:33 adam Exp $ + * $Id: yaz-z-assoc.cpp,v 1.42 2007-04-16 21:54:23 adam Exp $ */ #include @@ -374,30 +374,18 @@ void Z_Assoc::get_otherInfoAPDU(Z_APDU *apdu, Z_OtherInformation ***oip) } } -void Z_Assoc::set_otherInformationString ( +void Z_Assoc::set_otherInformationString( Z_APDU *apdu, - const char *oidname, int categoryValue, - const char *str) + const int *oid, int categoryValue, const char *str) { Z_OtherInformation **otherInformation; get_otherInfoAPDU(apdu, &otherInformation); if (!otherInformation) return; - set_otherInformationString(otherInformation, oidname, categoryValue, str); -} - -void Z_Assoc::set_otherInformationString ( - Z_OtherInformation **otherInformation, - const char *oidname, int categoryValue, - const char *str) -{ - int *oid = yaz_string_to_oid_odr(yaz_oid_std(), CLASS_USERINFO, oidname, - odr_encode()); - if (!oid) - return ; set_otherInformationString(otherInformation, oid, categoryValue, str); } + void Z_Assoc::set_otherInformationString ( Z_OtherInformation **otherInformation, const int *oid, int categoryValue, const char *str)