From: Jiří Filipovič Date: Tue, 22 Jun 2010 09:12:31 +0000 (+0000) Subject: Backward compatible edg_wll_StatsRequestToXML. X-Git-Tag: glite-lb-types_R_1_1_1_1_emi_0~15 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=3a11ce395f6a64ec2ccd388dc9143f074c7ace60;p=jra1mw.git Backward compatible edg_wll_StatsRequestToXML. --- 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;