Backward compatible edg_wll_StatsRequestToXML.
authorJiří Filipovič <fila@ics.muni.cz>
Tue, 22 Jun 2010 09:12:31 +0000 (09:12 +0000)
committerJiří Filipovič <fila@ics.muni.cz>
Tue, 22 Jun 2010 09:12:31 +0000 (09:12 +0000)
org.glite.lb.common/interface/xml_parse.h
org.glite.lb.common/src/xml_parse.c.T

index 4a832ea..43ea63f 100644 (file)
@@ -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);
 
index 23b54cf..797c9e6 100644 (file)
@@ -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;