- printf ("<li>%s/%s", gl->host, gl->plugin);
- if (gl->plugin_instance != NULL)
- printf ("-%s", gl->plugin_instance);
- printf ("/%s", gl->type);
- if (gl->type_instance != NULL)
- printf ("-%s", gl->type_instance);
- printf ("</li>\n");
+ memset (buffer, 0, sizeof (buffer));
+ gl_instance_get_params (cfg, inst, buffer, sizeof (buffer));
+
+ printf ("<li><a href=\"test.fcgi?action=graph;%s\">%s</a></li>\n", buffer, buffer);
+
+ return (0);
+} /* }}} int print_graph_inst_html */
+
+static int print_graph_html (graph_config_t *cfg, /* {{{ */
+ __attribute__((unused)) void *user_data)
+{
+ char buffer[1024];
+
+ memset (buffer, 0, sizeof (buffer));
+ gl_graph_get_title (cfg, buffer, sizeof (buffer));
+
+ printf ("<li>%s\n<ul>\n", buffer);
+ gl_graph_instance_get_all (cfg, print_graph_inst_html, /* user_data = */ NULL);
+ printf ("</ul>\n");