convert soap stateCode to edg_wll stateCode
authorMiloš Mulač <mulac@civ.zcu.cz>
Thu, 30 Jun 2005 13:52:57 +0000 (13:52 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Thu, 30 Jun 2005 13:52:57 +0000 (13:52 +0000)
org.glite.lb.server/examples/ws_query_ex.c

index 7208cc3..aae1624 100644 (file)
@@ -94,7 +94,11 @@ int main(int argc,char** argv)
                printf("Query succesfull...\n");
                printf("%-65s%s\n\n", "jobid", "state");
                for ( i = 0; i < out.__sizejobs; i++ ) {
-                       char *s = edg_wll_StatToString(out.states[i]->state);
+                       edg_wll_JobStatCode statCode;
+
+
+                       edg_wll_SoapToJobStatCode(out.states[i]->state, &statCode);
+                       char *s = edg_wll_StatToString(statCode);
                        printf("%-65s%s\n", out.jobs[i], s);
                        free(s);
                }