IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 13, 2008, 12:11:09 PM (18 years ago)
Author:
jhoblitt
Message:

add nebSwap()

File:
1 edited

Legend:

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

    r19552 r20110  
    44 * Copyright (C) 2005  Joshua Hoblitt
    55 *
    6  * $Id: nebclient.c,v 1.50 2008-09-15 21:23:36 jhoblitt Exp $
     6 * $Id: nebclient.c,v 1.51 2008-10-13 22:11:09 jhoblitt Exp $
    77 */
    88
     
    592592}
    593593
     594bool nebSwap(nebServer *server, const char *key1, const char *key2)
     595{
     596    struct ns1__create_USCOREobjectResponse response;
     597
     598    REQUIRE_SERVER;
     599
     600    if (!key1) {
     601        nebSetErr(server, "parameter 'key' may not be NULL");
     602
     603        return false;
     604    }
     605
     606    if (!key2) {
     607        nebSetErr(server, "parameter 'newKey' may not be NULL");
     608
     609        return false;
     610    }
     611
     612    if (soap_call_ns1__swap_USCOREobjects(server->soap, server->endpoint,
     613            NULL, (char *)key1, (char *)key2, (char **)&response) != SOAP_OK) {
     614        return false;
     615    }
     616
     617    return true;
     618}
     619
    594620bool nebDeleteInstance(nebServer *server, const char *URI)
    595621{
Note: See TracChangeset for help on using the changeset viewer.