From 3a11ce395f6a64ec2ccd388dc9143f074c7ace60 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Filipovi=C4=8D?= Date: Tue, 22 Jun 2010 09:12:31 +0000 Subject: [PATCH] Backward compatible edg_wll_StatsRequestToXML. --- org.glite.lb.common/interface/xml_parse.h | 4 +++- org.glite.lb.common/src/xml_parse.c.T | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/org.glite.lb.common/interface/xml_parse.h b/org.glite.lb.common/interface/xml_parse.h index 4a832ea..43ea63f 100644 --- a/org.glite.lb.common/interface/xml_parse.h +++ b/org.glite.lb.common/interface/xml_parse.h @@ -89,7 +89,9 @@ extern int edg_wll_NotifRequestToXML( edg_wll_Context ctx, const char *function, extern int edg_wll_QuerySequenceCodeToXML(edg_wll_Context ctx, glite_jobid_const_t jobId, char **message); -extern int edg_wll_StatsRequestToXML(edg_wll_Context,const char *,const edg_wll_QueryRec *,edg_wll_JobStatCode,edg_wll_JobStatCode,int,time_t *,time_t *,char **); +extern int edg_wll_StatsRequestToXML(edg_wll_Context,const char *,const edg_wll_QueryRec *,edg_wll_JobStatCode,int,time_t *,time_t *,char **); + +extern int edg_wll_StatsDurationFTRequestToXML(edg_wll_Context,const char *,const edg_wll_QueryRec *,edg_wll_JobStatCode,edg_wll_JobStatCode,int,time_t *,time_t *,char **); extern edg_wll_ErrorCode edg_wll_ParseStatsResult(edg_wll_Context ctx, char *messageBody, time_t *from, time_t *to, float *rate, float *duration, int *res_from, int *res_to); diff --git a/org.glite.lb.common/src/xml_parse.c.T b/org.glite.lb.common/src/xml_parse.c.T index 23b54cf..797c9e6 100644 --- a/org.glite.lb.common/src/xml_parse.c.T +++ b/org.glite.lb.common/src/xml_parse.c.T @@ -2975,6 +2975,19 @@ int edg_wll_QuerySequenceCodeToXML( /* construct Message-Body of Request-Line for edg_wll_StateRate function */ int edg_wll_StatsRequestToXML( + edg_wll_Context ctx, + const char *function, + const edg_wll_QueryRec *cond, + edg_wll_JobStatCode major, + int minor, + time_t *from, + time_t *to, + char **message) +{ + return edg_wll_StatsDurationFTRequestToXML(ctx, function, cond, major, EDG_WLL_JOB_UNDEF, minor, from, to, message); +} + +int edg_wll_StatsDurationFTRequestToXML( edg_wll_Context ctx, const char *function, const edg_wll_QueryRec *cond, @@ -2983,7 +2996,7 @@ int edg_wll_StatsRequestToXML( int minor, time_t *from, time_t *to, - char **message) + char **message) { char *pomA=NULL, *pomB=NULL, *pomC=NULL; const edg_wll_QueryRec **conditions; -- 1.8.2.3