index 8417291bc2f05a5691cc44a906215e609cccc81a..240e96f7cb48e673f61a51afd1ba2f8165190059 100644 (file)
--- a/program/src/rrd_graph.c
+++ b/program/src/rrd_graph.c
conv_if(SVG, IF_SVG);
conv_if(EPS, IF_EPS);
conv_if(PDF, IF_PDF);
+ conv_if(XML, IF_XML);
+ conv_if(CSV, IF_CSV);
+ conv_if(TSV, IF_TSV);
+ conv_if(SSV, IF_SSV);
+ conv_if(JSON, IF_JSON);
return (enum gfx_if_en)(-1);
}
cairo_svg_surface_restrict_to_version
(im->surface, CAIRO_SVG_VERSION_1_1);
break;
+ case IF_XML:
+ case IF_CSV:
+ case IF_TSV:
+ case IF_SSV:
+ case IF_JSON:
+ break;
};
cairo_destroy(im->cr);
im->cr = cairo_create(im->surface);
** - options parsing now in rrd_graph_options()
** - script parsing now in rrd_graph_script()
*/
+
+/* have no better idea where to put it - rrd.h does not work */
+int rrd_graph_xport(image_desc_t *);
+
rrd_info_t *rrd_graph_v(
int argc,
char **argv)
return NULL;
}
+ if (im.imgformat >= IF_XML) {
+ rrd_graph_xport(&im);
+ } else {
+
/* Everything is now read and the actual work can start */
if (graph_paint(&im) == -1) {
im_free(&im);
return NULL;
}
-
+ }
/* The image is generated and needs to be output.
** Also, if needed, print a line with information about the image.