From 6f43d71628db3c9acb9e0693216885685566b7d3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Oct 2008 10:48:48 +0200 Subject: directory: moved code to update.c The source directory.c mixes several libraries: directory object management, database management and database update, resulting in a 1000+ line monster. Move the whole database update code to update.c. --- src/sig_handlers.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sig_handlers.c') diff --git a/src/sig_handlers.c b/src/sig_handlers.c index e4ac21f22..854188c51 100644 --- a/src/sig_handlers.c +++ b/src/sig_handlers.c @@ -20,6 +20,7 @@ #include "sig_handlers.h" #include "playlist.h" #include "directory.h" +#include "update.h" #include "command.h" #include "signal_check.h" #include "log.h" -- cgit v1.2.3 From 729523ec80f35a683c982054628cd47d2161d3d4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Oct 2008 11:07:35 +0200 Subject: directory: moved code to database.c Taming the directory.c monster, part II: move the database management stuff to database. directory.c should only contain code which works on directory objects. --- src/sig_handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sig_handlers.c') diff --git a/src/sig_handlers.c b/src/sig_handlers.c index 854188c51..1c09eda5b 100644 --- a/src/sig_handlers.c +++ b/src/sig_handlers.c @@ -19,7 +19,7 @@ #include "sig_handlers.h" #include "playlist.h" -#include "directory.h" +#include "database.h" #include "update.h" #include "command.h" #include "signal_check.h" -- cgit v1.2.3 From 4629f646077109f7c6185aab92560da52c237412 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Oct 2008 11:07:55 +0200 Subject: database: renamed functions, "db_" prefix and no CamelCase Yet another CamelCase removal patch. --- src/sig_handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sig_handlers.c') diff --git a/src/sig_handlers.c b/src/sig_handlers.c index 1c09eda5b..5a4ebe57d 100644 --- a/src/sig_handlers.c +++ b/src/sig_handlers.c @@ -36,7 +36,7 @@ int handlePendingSignals(void) DEBUG("got SIGHUP, rereading DB\n"); signal_clear(SIGHUP); if (!isUpdatingDB()) { - readDirectoryDB(); + db_load(); playlistVersionChange(); } if (cycle_log_files() < 0) -- cgit v1.2.3