X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=client%2Fadmin.c;fp=client%2Fadmin.c;h=eaca6ecf410667b9e12b31778f9b7a89ebcebbcf;hp=30afef236f050b6194c8dd50fb3e76b992e1dc73;hb=7a4064cd15f6c6b34c1180e1bc51f0d0e90da320;hpb=3bfe867a001cb4e4f88d47541f77a21027719bd5 diff --git a/client/admin.c b/client/admin.c index 30afef2..eaca6ec 100644 --- a/client/admin.c +++ b/client/admin.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: admin.c,v 1.23 2007-01-03 08:42:13 adam 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 */