X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=action_list_graphs.c;h=29e3d8b887839b3c3424578280e38e68e89c691a;hb=586ff0da90125e8449db2ee1b5894c5883255daa;hp=fc4ec14e31501227277f76da8be362300ec7e9a3;hpb=816c38cf8560599b827df4edc01227c4348162c3;p=collection4.git diff --git a/action_list_graphs.c b/action_list_graphs.c index fc4ec14..29e3d8b 100644 --- a/action_list_graphs.c +++ b/action_list_graphs.c @@ -4,6 +4,7 @@ #include #include "action_list_graphs.h" +#include "graph.h" #include "graph_list.h" #include "utils_params.h" @@ -65,12 +66,17 @@ static int print_graph_inst_html (graph_config_t *cfg, /* {{{ */ graph_instance_t *inst, __attribute__((unused)) void *user_data) { - char buffer[1024]; + char params[1024]; + char desc[1024]; - memset (buffer, 0, sizeof (buffer)); - inst_get_params (cfg, inst, buffer, sizeof (buffer)); + memset (params, 0, sizeof (params)); + inst_get_params (cfg, inst, params, sizeof (params)); - printf ("
  • %s
  • \n", buffer, buffer); + memset (desc, 0, sizeof (desc)); + inst_describe (cfg, inst, desc, sizeof (desc)); + + printf ("
  • %s
  • \n", + params, desc); return (0); } /* }}} int print_graph_inst_html */ @@ -81,11 +87,11 @@ static int print_graph_html (graph_config_t *cfg, /* {{{ */ char buffer[1024]; memset (buffer, 0, sizeof (buffer)); - gl_graph_get_title (cfg, buffer, sizeof (buffer)); + graph_get_title (cfg, buffer, sizeof (buffer)); - printf ("
  • %s\n
  • \n"); return (0); } /* }}} int print_graph_html */