IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 31, 2007, 12:44:19 PM (19 years ago)
Author:
jhoblitt
Message:

make dettoolConfig.c's option handling functions global

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pxtools.h

    r13564 r13575  
    3232# include "pxdata.h"
    3333
    34 // load these values from the db in the init stage
    35 # define P2_TYPE_OBJECT 1
    36 # define P2_STATE_READY 2
    37 # define RECIPE "PHASE2"
    3834# define MAX_ROWS 10e9
     35# define PXTOOL_MODE_NONE 0x0
    3936
    4037typedef struct {
     
    5754psExit pxerrorGetExitStatus ();
    5855
     56void pxUsage(FILE *stream, int argc, char **argv, psMetadata *modes);
     57void pxUsageMode(FILE *stream, int argc, char **argv, const char *modeName, psMetadata *argSet);
     58bool pxGetOptions(FILE *stream, int argc, char **argv, pxConfig *config, psMetadata *modes, psMetadata *argSets);
     59
     60#define PXTOOL_ADD_MODE(option, comment, modeval, argset) \
     61{ \
     62    if (!psMetadataAddMetadata(argSets, PS_LIST_TAIL, option, 0, comment, argset)) {;\
     63        psError(PS_ERR_UNKNOWN, false, "failed to add argset for %s", option); \
     64    } \
     65    psFree(argset); \
     66\
     67    if (!psMetadataAddU32(modes, PS_LIST_TAIL, option, 0, comment, modeval)) {;\
     68        psError(PS_ERR_UNKNOWN, false, "failed to add argset for %s", option); \
     69    } \
     70}
     71
    5972#endif // PXTOOLS_H
Note: See TracChangeset for help on using the changeset viewer.