X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=action_list_graphs.c;h=d7cea47f41f8635475c6e00bdf991e799a3fc422;hb=57811ec03166433462141458b43b1347199e0519;hp=0663b98dbbcfd6f1aad2bd06fc8cf423a0e31e77;hpb=477b8a38dc1b3d0ae5e726f765722c962b2fcb46;p=collection4.git diff --git a/action_list_graphs.c b/action_list_graphs.c index 0663b98..d7cea47 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" @@ -20,7 +21,7 @@ static int print_graph_inst_json (__attribute__((unused)) graph_config_t *cfg, / first = user_data; - ident = gl_instance_get_selector (inst); + ident = inst_get_selector (inst); if (ident == NULL) return (-1); @@ -65,12 +66,16 @@ 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)); - gl_instance_get_params (cfg, inst, buffer, sizeof (buffer)); + memset (params, 0, sizeof (params)); + inst_get_params (cfg, inst, params, sizeof (params)); + + memset (desc, 0, sizeof (desc)); + inst_describe (cfg, inst, desc, sizeof (desc)); - printf ("
  • %s
  • \n", buffer, buffer); + printf ("
  • %s
  • \n", params, desc); return (0); } /* }}} int print_graph_inst_html */ @@ -81,7 +86,7 @@ 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