From 41a35ca4946b829fd190decf27de1abe1372866e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 17 Jul 2013 13:09:05 +0200 Subject: [PATCH] Move struct datbase def to settings.h from session.h --- src/pazpar2_config.c | 1 - src/session.h | 11 ----------- src/settings.h | 8 ++++++++ 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/pazpar2_config.c b/src/pazpar2_config.c index 79e7ad2..447c396 100644 --- a/src/pazpar2_config.c +++ b/src/pazpar2_config.c @@ -45,7 +45,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "settings.h" #include "eventl.h" #include "http.h" -#include "session.h" struct conf_config { diff --git a/src/session.h b/src/session.h index 732efbc..de5427f 100644 --- a/src/session.h +++ b/src/session.h @@ -26,9 +26,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include "facet_limit.h" -#include "termlists.h" #include "reclists.h" -#include "http.h" struct record; struct client; @@ -54,15 +52,6 @@ enum pazpar2_error_code { PAZPAR2_LAST_ERROR }; -// Represents a database -struct database { - char *id; - int num_settings; - struct setting **settings; - struct database *next; -}; - - // Represents a database as viewed from one session, possibly with settings overriden // for that session struct session_database diff --git a/src/settings.h b/src/settings.h index b0da583..d36a5a2 100644 --- a/src/settings.h +++ b/src/settings.h @@ -66,6 +66,14 @@ struct setting struct setting *next; }; +// Represents a database +struct database { + char *id; + int num_settings; + struct setting **settings; + struct database *next; +}; + struct settings_array { // Array of pointer setting, index is looked up in setting_dictionary -- 1.7.10.4