From bf5ca77e08ca75fba83c7c5a9a7bb288692ae6d6 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 6 Jul 2010 17:55:03 +0200 Subject: [PATCH] "show graph" action: If the "q" parameter is given, only show matching instances. --- src/action_show_graph.c | 81 ++++++++++++++++++++++++++++++++++++-- src/action_show_instance.c | 3 +- 2 files changed, 78 insertions(+), 6 deletions(-) diff --git a/src/action_show_graph.c b/src/action_show_graph.c index 9b9f5da..47d22c9 100644 --- a/src/action_show_graph.c +++ b/src/action_show_graph.c @@ -51,6 +51,7 @@ struct show_graph_data_s { graph_config_t *cfg; + const char *search_term; }; typedef struct show_graph_data_s show_graph_data_t; @@ -83,10 +84,26 @@ static int show_time_selector (__attribute__((unused)) void *user_data) /* {{{ * return (0); } /* }}} int show_time_selector */ -static int left_menu (__attribute__((unused)) void *user_data) /* {{{ */ +static int left_menu (void *user_data) /* {{{ */ { - printf ("\n