IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13200


Ignore:
Timestamp:
May 3, 2007, 11:26:55 AM (19 years ago)
Author:
jhoblitt
Message:

update nebStat() to add the instances fields

Location:
trunk/Nebulous/nebclient/src
Files:
2 edited

Legend:

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

    r13096 r13200  
    44 * Copyright (C) 2005  Joshua Hoblitt
    55 *
    6  * $Id: nebclient.c,v 1.44 2007-05-01 03:06:36 jhoblitt Exp $
     6 * $Id: nebclient.c,v 1.45 2007-05-03 21:26:55 jhoblitt Exp $
    77 */
    88
     
    639639    resultArray    = response.result->__ptr;
    640640
    641     if (resultElements != 6) {
     641    if (resultElements != 7) {
    642642        nebSetErr(server, "server didn't return the proper number of stat elements");
    643643        return NULL;
     
    650650    nullstrncpy(stat->epoch, resultArray[4], 256);
    651651    nullstrncpy(stat->mtime, resultArray[5], 256);
     652    stat->instances = atoi(resultArray[6]);
    652653
    653654    return stat;
  • trunk/Nebulous/nebclient/src/nebclient.h

    r13096 r13200  
    44 * Copyright (C) 2005  Joshua Hoblitt
    55 *
    6  * $Id: nebclient.h,v 1.31 2007-05-01 03:06:36 jhoblitt Exp $
     6 * $Id: nebclient.h,v 1.32 2007-05-03 21:26:55 jhoblitt Exp $
    77 */
    88
     
    4141    char            epoch[256];         ///< creation time stamp
    4242    char            mtime[256];         ///< modification time stamp
     43    int             instances;          ///< number of instances
    4344} nebObjectStat;
    4445
Note: See TracChangeset for help on using the changeset viewer.