From: Aleš Křenek Date: Fri, 5 Feb 2010 12:46:24 +0000 (+0000) Subject: cheat on job indices (be compatible with 1.x) X-Git-Tag: glite-jobid_R_1_0_1_1~22 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=0df56f8f14da5bcaa1f471bdad14b3abe0918e36;p=jra1mw.git cheat on job indices (be compatible with 1.x) --- diff --git a/org.glite.lb.client/examples/done_failed_events.c b/org.glite.lb.client/examples/done_failed_events.c index 46463c2..c4131be 100644 --- a/org.glite.lb.client/examples/done_failed_events.c +++ b/org.glite.lb.client/examples/done_failed_events.c @@ -26,7 +26,7 @@ int main(int argc,char **argv) { time_t from,to; int i, err = 0; - edg_wll_QueryRec cond[3]; /* [2] is terminator */ + edg_wll_QueryRec cond[3],jcond[2]; /* [2] is terminator */ edg_wll_Event *events = NULL; edg_wll_InitContext(&ctx); @@ -60,6 +60,12 @@ int main(int argc,char **argv) { to = mktime(&tm); + memset(jcond,0,sizeof jcond); + + jcond[0].attr = EDG_WLL_QUERY_ATTR_OWNER; + jcond[0].op = EDG_WLL_QUERY_OP_UNEQUAL; + jcond[0].value.c = "nonexistent"; + memset(cond,0,sizeof cond); cond[0].attr = EDG_WLL_QUERY_ATTR_TIME; cond[0].op = EDG_WLL_QUERY_OP_WITHIN; @@ -69,7 +75,7 @@ int main(int argc,char **argv) { cond[1].attr = EDG_WLL_QUERY_ATTR_EVENT_TYPE; cond[1].value.i = EDG_WLL_EVENT_DONE; - if (edg_wll_QueryEventsProxy(ctx,NULL,cond,&events)) { + if (edg_wll_QueryEvents(ctx,jcond,cond,&events)) { char *et,*ed; et = ed = NULL;