From 15279357255dbcccab890a29c7ceecc144ba3e63 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sat, 26 Jun 2010 12:36:05 +0200 Subject: [PATCH] Rename: src/action_show_graph.[ch] -> src/action_show_instance.[ch] --- src/Makefile.am | 2 +- src/{action_show_graph.c => action_show_instance.c} | 6 +++--- src/{action_show_graph.h => action_show_instance.h} | 2 +- src/main.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) rename src/{action_show_graph.c => action_show_instance.c} (98%) rename src/{action_show_graph.h => action_show_instance.h} (80%) diff --git a/src/Makefile.am b/src/Makefile.am index ea4e837..ed5393a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -18,7 +18,7 @@ collection_fcgi_SOURCES = main.c \ action_graph.c action_graph.h \ action_list_graphs.c action_list_graphs.h \ action_search_json.c action_search_json.h \ - action_show_graph.c action_show_graph.h \ + action_show_instance.c action_show_instance.h \ common.c common.h \ filesystem.c filesystem.h \ graph_types.h \ diff --git a/src/action_show_graph.c b/src/action_show_instance.c similarity index 98% rename from src/action_show_graph.c rename to src/action_show_instance.c index 8cde5c2..a45fb49 100644 --- a/src/action_show_graph.c +++ b/src/action_show_instance.c @@ -6,7 +6,7 @@ #include #include -#include "action_show_graph.h" +#include "action_show_instance.h" #include "common.h" #include "graph.h" #include "graph_ident.h" @@ -220,7 +220,7 @@ static int show_graph (void *user_data) /* {{{ */ return (show_instance_list (user_data)); } /* }}} int show_graph */ -int action_show_graph (void) /* {{{ */ +int action_show_instance (void) /* {{{ */ { page_callbacks_t pg_callbacks = PAGE_CALLBACKS_INIT; show_graph_data_t pg_data; @@ -245,6 +245,6 @@ int action_show_graph (void) /* {{{ */ html_print_page (title, &pg_callbacks, &pg_data); return (0); -} /* }}} int action_graph */ +} /* }}} int action_show_instance */ /* vim: set sw=2 sts=2 et fdm=marker : */ diff --git a/src/action_show_graph.h b/src/action_show_instance.h similarity index 80% rename from src/action_show_graph.h rename to src/action_show_instance.h index 5b5e78a..33e8a73 100644 --- a/src/action_show_graph.h +++ b/src/action_show_instance.h @@ -1,7 +1,7 @@ #ifndef ACTION_SHOW_GRAPH_H #define ACTION_SHOW_GRAPH_H 1 -int action_show_graph (void); +int action_show_instance (void); #endif /* ACTION_SHOW_GRAPH_H */ /* vim: set sw=2 sts=2 et fdm=marker : */ diff --git a/src/main.c b/src/main.c index 5fd34d1..208318d 100644 --- a/src/main.c +++ b/src/main.c @@ -16,7 +16,7 @@ #include "action_graph.h" #include "action_list_graphs.h" #include "action_search_json.h" -#include "action_show_graph.h" +#include "action_show_instance.h" /* Include this last, so the macro magic of doesn't interfere * with our own header files. */ @@ -37,7 +37,7 @@ static const action_t actions[] = { "graph", action_graph }, { "list_graphs", action_list_graphs }, { "search_json", action_search_json }, - { "show_graph", action_show_graph }, + { "show_graph", action_show_instance }, { "usage", action_usage } }; static const size_t actions_num = sizeof (actions) / sizeof (actions[0]); -- 2.11.0