X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=client%2Fadmin.c;h=eaca6ecf410667b9e12b31778f9b7a89ebcebbcf;hb=7a4064cd15f6c6b34c1180e1bc51f0d0e90da320;hp=134812fea72c45237dacd62bc3ca554bab895689;hpb=9dfcbb70828f8d5b524c9bb45852246ae1dd6878;p=yaz-moved-to-github.git diff --git a/client/admin.c b/client/admin.c index 134812f..eaca6ec 100644 --- a/client/admin.c +++ b/client/admin.c @@ -1,8 +1,8 @@ /* - * Copyright (C) 1995-2005, Index Data ApS + * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: admin.c,v 1.22 2006-10-04 16:59:33 mike Exp $ + * $Id: admin.c,v 1.24 2007-04-12 13:52:57 adam Exp $ */ #include @@ -27,7 +27,7 @@ #include #include #include - +#include #include #include "admin.h" @@ -47,20 +47,19 @@ int sendAdminES(int type, char* param1) Z_APDU *apdu = zget_APDU(out, Z_APDU_extendedServicesRequest ); Z_ExtendedServicesRequest *req = apdu->u.extendedServicesRequest; Z_External *r; - int oid[OID_SIZE]; + int *oid; Z_ESAdminOriginPartToKeep *toKeep; Z_ESAdminOriginPartNotToKeep *notToKeep; - oident update_oid; printf ("Admin request\n"); fflush(stdout); - /* Set up the OID for the external */ - update_oid.proto = PROTO_Z3950; - update_oid.oclass = CLASS_EXTSERV; - update_oid.value = VAL_ADMINSERVICE; + oid = yaz_string_to_oid_odr(yaz_oid_std(), + CLASS_EXTSERV, + OID_STR_ADMIN, + out); + - oid_ent_to_oid (&update_oid, oid); - req->packageType = odr_oiddup(out,oid); + req->packageType = oid; req->packageName = "1.Extendedserveq"; /* Allocate the external */