]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-conf: Move conf.[ch] to conf/ subdirectory
authorMartin Schwenke <martin@meltin.net>
Mon, 19 Aug 2019 02:17:20 +0000 (12:17 +1000)
committerAnoop C S <anoopcs@samba.org>
Fri, 28 Jun 2024 13:13:52 +0000 (18:43 +0530)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
20 files changed:
ctdb/conf/cluster_conf.c
ctdb/conf/cluster_conf.h
ctdb/conf/conf.c [moved from ctdb/common/conf.c with 99% similarity]
ctdb/conf/conf.h [moved from ctdb/common/conf.h with 100% similarity]
ctdb/conf/conf_tool.c
ctdb/conf/ctdb_config.c
ctdb/conf/ctdb_config.h
ctdb/conf/database_conf.c
ctdb/conf/database_conf.h
ctdb/conf/event_conf.c
ctdb/conf/event_conf.h
ctdb/conf/failover_conf.c
ctdb/conf/failover_conf.h
ctdb/conf/legacy_conf.c
ctdb/conf/legacy_conf.h
ctdb/conf/logging_conf.c
ctdb/conf/logging_conf.h
ctdb/event/event_config.c
ctdb/tests/src/conf_test.c
ctdb/wscript

index a5cebf46ea0eb065366f411df231aeeb761f73b9..b49a24400265a6eac0737b9df1b4e67068878ba7 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "lib/util/debug.h"
 
-#include "common/conf.h"
+#include "conf/conf.h"
 
 #include "conf/cluster_conf.h"
 
index 38c378fd57185d7d2e3b1e5019b32065bd3626a3..9775b6fc080f420c4dc79842e0c2fbff709a63e0 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef __CTDB_CLUSTER_CONF_H__
 #define __CTDB_CLUSTER_CONF_H__
 
-#include "common/conf.h"
+#include "conf/conf.h"
 
 #define CLUSTER_CONF_SECTION "cluster"
 
similarity index 99%
rename from ctdb/common/conf.c
rename to ctdb/conf/conf.c
index a8ff724e73fc1e0adba2293f062d25444c5cd76c..67046c715e24fe692caed2c0785377762b89079f 100644 (file)
@@ -26,7 +26,7 @@
 #include "lib/util/tini.h"
 #include "lib/util/debug.h"
 
-#include "common/conf.h"
+#include "conf/conf.h"
 
 struct conf_value {
        enum conf_type type;
similarity index 100%
rename from ctdb/common/conf.h
rename to ctdb/conf/conf.h
index 797d9c77630201d073a63681264dfac52f7be9ce..28f6c1090d007779af58f0a2a3d9461d597d5941 100644 (file)
@@ -25,9 +25,9 @@
 
 #include "common/logging.h"
 #include "common/cmdline.h"
-#include "common/conf.h"
 #include "common/path.h"
 
+#include "conf/conf.h"
 #include "conf/logging_conf.h"
 #include "conf/cluster_conf.h"
 #include "conf/database_conf.h"
index a97dfd59284acb0fa5860b9be84ccb1e879e06d6..1e7fa72fa59b430eaced5ce569b43b8521d1e2a9 100644 (file)
@@ -22,8 +22,8 @@
 #include "lib/util/debug.h"
 
 #include "common/path.h"
-#include "common/conf.h"
 
+#include "conf/conf.h"
 #include "conf/logging_conf.h"
 #include "conf/cluster_conf.h"
 #include "conf/database_conf.h"
index 7ccda7d5d53d5b0be7c5c98c8ab393d82d3c35bf..99f676c5cccb0bf609f144681ab0cb0ac3e14120 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef __CTDB_CONFIG_H__
 #define __CTDB_CONFIG_H__
 
-#include "common/conf.h"
+#include "conf/conf.h"
 
 struct ctdb_config {
        /* Cluster */
index 78510e0f2cd924b81572843995655b7a06fca888..2d0d705ed4a57b08101284a70509be5f21667966 100644 (file)
@@ -29,9 +29,9 @@
 #include "lib/util/debug.h"
 #include "lib/util/samba_util.h"
 
-#include "common/conf.h"
 #include "common/path.h"
 
+#include "conf/conf.h"
 #include "conf/database_conf.h"
 
 #define DATABASE_CONF_VOLATILE_DB_DIR_DEFAULT   CTDB_VARDIR "/volatile"
index 6fa579c150211e70b56bef025cccde2267f18baa..e8baffd578dadf39d802215019390311f53ba0e0 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef __CTDB_DATABASE_CONF_H__
 #define __CTDB_DATABASE_CONF_H__
 
-#include "common/conf.h"
+#include "conf/conf.h"
 
 #define DATABASE_CONF_SECTION "database"
 
index 8bb2c1dab49c9e9945b18564d104561e54acb800..6b2aeb76c28cca8ba60726e36920445ed0cb308a 100644 (file)
@@ -23,9 +23,9 @@
 
 #include "lib/util/debug.h"
 
-#include "common/conf.h"
 #include "common/path.h"
 
+#include "conf/conf.h"
 #include "conf/event_conf.h"
 
 static bool event_conf_validate_debug_script(const char *key,
index 964a18a077eb52cc7b34f134df93e30a32df0ab6..177307b7209c77b5f1d0acfbebe06a645caa0118 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef __CTDB_EVENT_CONF_H__
 #define __CTDB_EVENT_CONF_H__
 
-#include "common/conf.h"
+#include "conf/conf.h"
 
 #define EVENT_CONF_SECTION             "event"
 
index 90d0a0ab6d96bd182f34e78fe0526e6b3fcb00a2..3f9f749fcae9e08d765535464ade3edec196c409 100644 (file)
@@ -21,7 +21,7 @@
 
 #include "lib/util/debug.h"
 
-#include "common/conf.h"
+#include "conf/conf.h"
 
 #include "conf/failover_conf.h"
 
index d154daa3428995a07ee46f43e401a0379a63df38..d7ac0ac507db86d10d86165ba8623c28d1582631 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef __CTDB_FAILOVER_CONF_H__
 #define __CTDB_FAILOVER_CONF_H__
 
-#include "common/conf.h"
+#include "conf/conf.h"
 
 #define FAILOVER_CONF_SECTION "failover"
 
index 56cc5bce2da737f8afa797e30d78cba2319f6189..f892d78ea5848594dd01abd8ea7af96a025ffd69 100644 (file)
@@ -21,9 +21,9 @@
 
 #include "lib/util/debug.h"
 
-#include "common/conf.h"
 #include "common/logging.h"
 
+#include "conf/conf.h"
 #include "conf/legacy_conf.h"
 
 #define LEGACY_SCRIPT_LOG_LEVEL_DEFAULT "ERROR"
index b6b4b5738f66b027f469b3110a4873b5b9b052b8..99a06efdc1af46362832d04245c48fc4c4c5c1a2 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef __CTDB_LEGACY_CONF_H__
 #define __CTDB_LEGACY_CONF_H__
 
-#include "common/conf.h"
+#include "conf/conf.h"
 
 #define LEGACY_CONF_SECTION "legacy"
 
index f5071485ca31415f6e2af7131b8cef56d71fddfa..fb1c3735c0e717d8b489f1f40ef2865b80dfca3e 100644 (file)
@@ -21,9 +21,9 @@
 
 #include <talloc.h>
 
-#include "common/conf.h"
 #include "common/logging.h"
 
+#include "conf/conf.h"
 #include "conf/logging_conf.h"
 
 #define LOGGING_LOCATION_DEFAULT       "file:" LOGDIR "/log.ctdb"
index fab478df2f68956c8c0737f58ecf1441b6121556..8f8d1062d4894ef439f30897c426496ba2f6bd69 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef __LOGGING_CONF_H__
 #define __LOGGING_CONF_H__
 
-#include "common/conf.h"
+#include "conf/conf.h"
 
 #define LOGGING_CONF_SECTION   "logging"
 
index 81c475c68ca2d73816884fa2720f228c066b1613..8617ebaad30dc2b7de5d79d21de8602e5ce964b8 100644 (file)
@@ -21,9 +21,9 @@
 
 #include <talloc.h>
 
-#include "common/conf.h"
 #include "common/path.h"
 
+#include "conf/conf.h"
 #include "conf/logging_conf.h"
 #include "conf/event_conf.h"
 
index 9b3bd8f0cc1757b84edea0274be59fd45a6a9918..a38a51bf37e28a32142862533993e714d4b30165 100644 (file)
@@ -21,7 +21,7 @@
 
 #include <assert.h>
 
-#include "common/conf.c"
+#include "conf/conf.c"
 
 static void test1(void)
 {
index 0122ecb294ea38ee47d128113a14df9f7851f8e9..a557d0a872eb5b4cc47a49477f45fa5205ea0c96 100644 (file)
@@ -437,7 +437,6 @@ def build(bld):
                         source=bld.SUBDIR('common',
                                           '''cmdline.c
                                              comm.c
-                                             conf.c
                                              db_hash.c
                                              event_script.c
                                              hash_count.c
@@ -531,7 +530,8 @@ def build(bld):
                      install_path='${CTDB_HELPER_BINDIR}')
 
     bld.SAMBA_SUBSYSTEM('ctdb-conf',
-                        source='''conf/logging_conf.c
+                        source='''conf/conf.c
+                                  conf/logging_conf.c
                                   conf/cluster_conf.c
                                   conf/database_conf.c
                                   conf/event_conf.c