Changeset 30353 for trunk/ippTools/src/pztool.c
- Timestamp:
- Jan 24, 2011, 2:43:37 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pztool.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pztool.c
r30227 r30353 47 47 static bool advanceMode(pxConfig *config); 48 48 49 static bool updatepzexpMode(pxConfig *config); 49 50 static bool updatenewexpMode(pxConfig *config); 50 51 … … 85 86 MODECASE(PZTOOL_MODE_TOADVANCE, toadvanceMode); 86 87 MODECASE(PZTOOL_MODE_ADVANCE, advanceMode); 88 MODECASE(PZTOOL_MODE_UPDATEPZEXP, updatepzexpMode); 87 89 MODECASE(PZTOOL_MODE_UPDATENEWEXP, updatenewexpMode); 88 90 default: … … 894 896 || (strncmp(state, "stop", 5) == 0) 895 897 || (strncmp(state, "reg", 4) == 0) 898 || (strncmp(state, "drop", 5) == 0) 896 899 ) 897 900 ) { … … 910 913 } 911 914 915 static bool updatepzexpMode(pxConfig *config) 916 { 917 PS_ASSERT_PTR_NON_NULL(config, false); 918 PXOPT_LOOKUP_STR(exp_name, config->args, "-exp_name", true, false); 919 PXOPT_LOOKUP_STR(camera, config->args, "-camera", true, false); 920 PXOPT_LOOKUP_STR(telescope,config->args, "-telescope",true, false); 921 PXOPT_LOOKUP_STR(state, config->args, "-set_state",true, false); 922 923 if (!pzDownloadExpSetState(config,exp_name,camera,telescope,state)) { 924 psError(PS_ERR_UNKNOWN, false, "failed to change state for %s:%s:%s", exp_name, camera, telescope); 925 return false; 926 } 927 return true; 928 } 929 930 912 931 static bool updatenewexpMode(pxConfig *config) 913 932 { … … 952 971 953 972 973 974 954 975 #if 0 955 976 static psArray *pzArrayAddArray(psArray *array, psArray *input)
Note:
See TracChangeset
for help on using the changeset viewer.
