IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 1, 2009, 2:29:20 PM (17 years ago)
Author:
jhoblitt
Message:

add nebChmod()

File:
1 edited

Legend:

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

    r23935 r24289  
    832832}
    833833
     834
     835int nebChmod(nebServer *server, const char *key, mode_t mode)
     836{
     837    int response;
     838
     839    REQUIRE_SERVER;
     840
     841    if (!key) {
     842        nebSetErr(server, "parameter 'key' may not be NULL");
     843
     844        return -1;
     845    }
     846
     847    // FIXME is this leaking memory when response goes out of scope?  the gsoap
     848    // manual seems to 'suggest' that this is temporary data that gets cleaed
     849    // up on the next soap function call
     850    if (soap_call_ns1__chmod_USCOREobject(server->soap, server->endpoint,
     851            NULL, (char *)key, mode, &response) != SOAP_OK) {
     852        nebSetServerErr(server);
     853        return -1;
     854    }
     855
     856    return 0;
     857}
     858
     859
    834860char *nebErr(nebServer *server)
    835861{
Note: See TracChangeset for help on using the changeset viewer.