-#define RESULT_LIMIT 50
-
-struct callback_data_s
-{
- graph_config_t *cfg;
- int limit;
- _Bool first;
-};
-typedef struct callback_data_s callback_data_t;
-
-static int print_graph_inst_html (graph_config_t *cfg, /* {{{ */
- graph_instance_t *inst,
- void *user_data)
-{
- callback_data_t *data = user_data;
- char params[1024];
- char desc[1024];
-
- if (data->cfg != cfg)
- {
- if (data->cfg != NULL)
- printf (" </ul></li>\n");
-
- memset (desc, 0, sizeof (desc));
- graph_get_title (cfg, desc, sizeof (desc));
- html_escape_buffer (desc, sizeof (desc));
-
- printf (" <li class=\"graph\">%s\n"
- " <ul class=\"instance_list\">\n", desc);
-
- data->cfg = cfg;
- }
-
- memset (params, 0, sizeof (params));
- inst_get_params (cfg, inst, params, sizeof (params));
- html_escape_buffer (params, sizeof (params));
-
- memset (desc, 0, sizeof (desc));
- inst_describe (cfg, inst, desc, sizeof (desc));
- html_escape_buffer (desc, sizeof (desc));
-
- printf (" <li class=\"instance\"><a href=\"%s?action=show_graph;%s\">%s</a></li>\n",
- script_name (), params, desc);
-
- if (data->limit > 0)
- data->limit--;
-
- /* Abort scan if limit is reached. */
- if (data->limit == 0)
- return (1);
-
- return (0);
-} /* }}} int print_graph_inst_html */
-
-struct page_data_s