IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 24, 2009, 4:11:30 PM (17 years ago)
Author:
jhoblitt
Message:

add nebPrune()

File:
1 edited

Legend:

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

    r24916 r24923  
    859859
    860860
     861int nebPrune(nebServer *server, const char *key)
     862{
     863    int response;
     864
     865    REQUIRE_SERVER;
     866
     867    if (!key) {
     868        nebSetErr(server, "parameter 'key' may not be NULL");
     869
     870        return -1;
     871    }
     872
     873    // FIXME is this leaking memory when response goes out of scope?  the gsoap
     874    // manual seems to 'suggest' that this is temporary data that gets cleaed
     875    // up on the next soap function call
     876    if (soap_call_ns1__prune_USCOREobject(server->soap, server->endpoint,
     877            NULL, (char *)key, &response) != SOAP_OK) {
     878        nebSetServerErr(server);
     879        return -1;
     880    }
     881
     882    return response;
     883}
     884
     885
    861886char *nebErr(nebServer *server)
    862887{
Note: See TracChangeset for help on using the changeset viewer.