IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 30, 2007, 5:06:36 PM (19 years ago)
Author:
jhoblitt
Message:

remove $class_id & $comment params from Nebulous::Server->create() and Nebulous::Client->create*() and all supporting functions and tests

File:
1 edited

Legend:

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

    r12963 r13096  
    44 * Copyright (C) 2005  Joshua Hoblitt
    55 *
    6  * $Id: nebclient.c,v 1.43 2007-04-23 23:10:07 jhoblitt Exp $
     6 * $Id: nebclient.c,v 1.44 2007-05-01 03:06:36 jhoblitt Exp $
    77 */
    88
     
    8383}
    8484
    85 char *nebCreate(nebServer *server, const char *key, unsigned int class, const char *volume, const char *comment, char **URI)
     85char *nebCreate(nebServer *server, const char *key, const char *volume, char **URI)
    8686{
    8787    struct ns1__create_USCOREobjectResponse response;
     
    9797
    9898    if (soap_call_ns1__create_USCOREobject(server->soap, server->endpoint, NULL,
    99             (char *)key, class, (char *)volume, (char *)comment,
    100             (char **)&response) != SOAP_OK) {
     99            (char *)key, (char *)volume, (char **)&response) != SOAP_OK) {
    101100        nebSetServerErr(server);
    102101
     
    123122}
    124123
    125 int nebOpenCreate(nebServer *server, const char *key, unsigned int class, const char *volume, const char *comment, char **URI)
     124int nebOpenCreate(nebServer *server, const char *key, const char *volume, char **URI)
    126125{
    127126    char            *filename;
     
    136135    }
    137136
    138     filename = nebCreate(server, key, class, volume, comment, URI);
     137    filename = nebCreate(server, key, volume, URI);
    139138
    140139    file = open(filename, O_RDWR|O_TRUNC, 0660);
     
    522521    }
    523522
    524     destFH = nebOpenCreate(server, newKey, 0, NULL, NULL, NULL);
     523    destFH = nebOpenCreate(server, newKey, NULL, NULL);
    525524    if (destFH < 0) {
    526525        // propigate nebCreate() error
     
    640639    resultArray    = response.result->__ptr;
    641640
    642     if (resultElements != 8) {
     641    if (resultElements != 6) {
    643642        nebSetErr(server, "server didn't return the proper number of stat elements");
    644643        return NULL;
     
    647646    nullstrncpy(stat->so_id, resultArray[0], 256);
    648647    nullstrncpy(stat->ext_id, resultArray[1], 256);
    649     nullstrncpy(stat->class_id, resultArray[2], 256);
    650     nullstrncpy(stat->comment, resultArray[3], 256);
    651     nullstrncpy(stat->read_lock, resultArray[4], 256);
    652     nullstrncpy(stat->write_lock, resultArray[5], 256);
    653     nullstrncpy(stat->epoch, resultArray[6], 256);
    654     nullstrncpy(stat->mtime, resultArray[7], 256);
     648    nullstrncpy(stat->read_lock, resultArray[2], 256);
     649    nullstrncpy(stat->write_lock, resultArray[3], 256);
     650    nullstrncpy(stat->epoch, resultArray[4], 256);
     651    nullstrncpy(stat->mtime, resultArray[5], 256);
    655652
    656653    return stat;
Note: See TracChangeset for help on using the changeset viewer.