IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 12, 2008, 11:13:41 AM (18 years ago)
Author:
jhoblitt
Message:

first attempt at supporting multiple databases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/nebclient/src/nebclient.c

    r20344 r20965  
    44 * Copyright (C) 2005  Joshua Hoblitt
    55 *
    6  * $Id: nebclient.c,v 1.54 2008-10-23 22:30:44 bills Exp $
     6 * $Id: nebclient.c,v 1.55 2008-12-12 21:13:41 jhoblitt Exp $
    77 */
    88
     
    253253    }
    254254
    255     if (!nebDeleteInstance(server, locations->URI[0])) {
     255    if (!nebDeleteInstance(server, key, locations->URI[0])) {
    256256        nebObjectInstancesFree(locations);
    257257
     
    539539
    540540    for (int i = 0; i < locations->n; i++) {
    541         if (!nebDeleteInstance(server, locations->URI[i])) {
     541        if (!nebDeleteInstance(server, key, locations->URI[i])) {
    542542            nebSetErr(server, "can not delete instance");
    543543            nebObjectInstancesFree(locations);
     
    655655}
    656656
    657 bool nebDeleteInstance(nebServer *server, const char *URI)
     657bool nebDeleteInstance(nebServer *server, const char *key, const char *URI)
    658658{
    659659    int             response;
     
    676676
    677677    if (soap_call_ns1__delete_USCOREinstance(server->soap, server->endpoint,
    678             NULL, (char *)URI, &response) != SOAP_OK) {
     678            NULL, (char *)key, (char *)URI, &response) != SOAP_OK) {
    679679        nebFree(filename);
    680680
Note: See TracChangeset for help on using the changeset viewer.