From 2b5a9a4fe8debcf3bac51e137737a0123bd35749 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Mon, 23 May 2005 09:31:34 +0000 Subject: [PATCH] glite_lb_plugin removed from default build (unclear dependencies with JP) --- org.glite.lb.server/Makefile | 2 +- org.glite.lb.server/src/ws_query.c | 70 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+), 1 deletion(-) diff --git a/org.glite.lb.server/Makefile b/org.glite.lb.server/Makefile index 7d50247..78f3b3d 100644 --- a/org.glite.lb.server/Makefile +++ b/org.glite.lb.server/Makefile @@ -167,7 +167,7 @@ glite_lb_plugin.la: lb_plugin.lo default all: compile -compile: glite_lb_bkserverd glite_lb_bkindex ${STATIC_LIB_BK} glite_lb_plugin.la +compile: glite_lb_bkserverd glite_lb_bkindex ${STATIC_LIB_BK} check: compile test.xml test.query -echo check.query not complete yet diff --git a/org.glite.lb.server/src/ws_query.c b/org.glite.lb.server/src/ws_query.c index 473b8d3..8e2f4e7 100644 --- a/org.glite.lb.server/src/ws_query.c +++ b/org.glite.lb.server/src/ws_query.c @@ -116,3 +116,73 @@ int edgwll2__UserJobs( return SOAP_OK; } + + +/* +int edgwll2__QueryEvents( + struct soap *soap, + struct edgwll__QueryConditions *jc, + struct edgwll__QueryConditions *ec, + struct edgwll2__QueryEventsResponse *out) +{ + edg_wll_Context ctx = (edg_wll_Context) glite_gsplugin_get_udata(soap); + edg_wll_Event *eventsOut = NULL; + edg_wll_QueryRec **qrj = NULL, + **qre = NULL; + + int fl, + i, j, + ret = SOAP_FAULT; + + +x out->states = soap_malloc(soap, sizeof(*out->states)); +x out->jobs = soap_malloc(soap, sizeof(*out->jobs)); +x if ( !out->states || !out->jobs ) goto cleanup; +x memset(out->states, 0, sizeof(*(out->states))); +x memset(out->jobs, 0, sizeof(*(out->jobs))); + + edg_wll_ResetError(ctx); + if ( edg_wll_SoapToQueryCondsExt(jc, &qrj) ) { + edg_wll_SetError(ctx, ENOMEM, "Couldn't create internal structures"); + goto cleanup; + } + if ( edg_wll_SoapToQueryCondsExt(ec, &qre) ) { + edg_wll_SetError(ctx, ENOMEM, "Couldn't create internal structures"); + goto cleanup; + } + + if ( edg_wll_QueryEventsServer( ctx, ctx->noAuth, (const edg_wll_QueryRec **) jc, + (const edg_wll_QueryRec **) ec, &eventsOut) ) + goto cleanup; + + if ( edg_wll_EventsQueryResToSoap(soap, eventsOut, out) ) goto cleanup; + ret = SOAP_OK; + +cleanup: + if ( qrj ) { + for ( i = 0; qrj[i]; i++ ) { + for ( j = 0; qrj[i][j].attr; j++ ) + edg_wll_QueryRecFree(&qrj[i][j]); + free(qrj[i]); + } + free(qrj); + } + + if ( qre ) { + for ( i = 0; qre[i]; i++ ) { + for ( j = 0; qre[i][j].attr; j++ ) + edg_wll_QueryRecFree(&qre[i][j]); + free(qre[i]); + } + free(qr); + } + if ( eventsOut ) { + for ( i = 0; eventsOut[i].type; i++ ) + edg_wll_FreeEvent(&eventsOut[i]); + free(eventssOut); + } + if ( ret == SOAP_FAULT ) edg_wll_ErrToFault(ctx, soap); + + return ret; +} +*/ -- 1.8.2.3