From: Florian Forster Date: Wed, 9 Jun 2010 17:03:42 +0000 (+0200) Subject: action_list_graphs.c: Group instances by the graph object. X-Git-Tag: v4.0.0~286 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=8f210aa3a93bafab43eba645c9bc2babab999b93;p=collection4.git action_list_graphs.c: Group instances by the graph object. --- diff --git a/action_list_graphs.c b/action_list_graphs.c index 16d5cc4..c239222 100644 --- a/action_list_graphs.c +++ b/action_list_graphs.c @@ -43,16 +43,16 @@ static int print_graph_json (const graph_list_t *gl, void *user_data) /* {{{ */ return (0); } /* }}} int print_graph_json */ -static int print_graph_inst_html (__attribute__((unused)) graph_config_t *cfg, /* {{{ */ +static int print_graph_inst_html (graph_config_t *cfg, /* {{{ */ graph_instance_t *inst, __attribute__((unused)) void *user_data) { char buffer[1024]; memset (buffer, 0, sizeof (buffer)); - gl_instance_get_ident (inst, buffer, sizeof (buffer)); + gl_instance_get_params (cfg, inst, buffer, sizeof (buffer)); - printf ("
  • %s
  • \n", buffer); + printf ("
  • %s
  • \n", buffer, buffer); return (0); } /* }}} int print_graph_inst_html */ @@ -60,7 +60,12 @@ static int print_graph_inst_html (__attribute__((unused)) graph_config_t *cfg, / static int print_graph_html (graph_config_t *cfg, /* {{{ */ __attribute__((unused)) void *user_data) { - printf ("
  • %p\n