IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 4, 2006, 1:43:34 PM (20 years ago)
Author:
jhoblitt
Message:

add pxAdminMode enum

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pxadminConfig.c

    r7037 r9255  
    44
    55#include <pmConfig.h>
     6
    67#include "pxtools.h"
     8#include "pxadmin.h"
    79
    810pxConfig *pxAdminConfig(pxConfig *config, int argc, char **argv)
     
    2325
    2426    int N;
    25     config->mode = PX_MODE_NONE;
     27    config->mode = PXADMIN_MODE_NONE;
    2628    if ((N = psArgumentGet(argc, argv, "-create"))) {
    2729        psArgumentRemove(N, &argc, argv);
     
    2931            psAbort(argv[0], "only one mode selection is allowed");
    3032        }
    31         config->mode = PX_MODE_CREATE;
     33        config->mode = PXADMIN_MODE_CREATE;
    3234    }
    3335    if ((N = psArgumentGet(argc, argv, "-delete"))) {
     
    3638            psAbort(argv[0], "only one mode selection is allowed");
    3739        }
    38         config->mode = PX_MODE_DELETE;
     40        config->mode = PXADMIN_MODE_DELETE;
    3941    }
    4042    if ((N = psArgumentGet(argc, argv, "-recreate"))) {
     
    4345            psAbort(argv[0], "only one mode selection is allowed");
    4446        }
    45         config->mode = PX_MODE_RECREATE;
     47        config->mode = PXADMIN_MODE_RECREATE;
    4648    }
    4749
     
    5456            "delete and recreate the P2 tables", "");
    5557
    56     if (config->mode == PX_MODE_NONE) {
     58    if (config->mode == PXADMIN_MODE_NONE) {
    5759        fprintf (stderr, "admin mode not specified\n");
    5860        psArgumentHelp(arguments);
Note: See TracChangeset for help on using the changeset viewer.